mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] ./src/internal/atomic.h:229:14: error: size of array 'a_cas_p_undefined_but_pointer_not_32bit' is negative on PowerPC
@ 2022-07-22  7:12 Thomas Petazzoni
  2022-07-22 16:29 ` Szabolcs Nagy
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2022-07-22  7:12 UTC (permalink / raw)
  To: musl


We've "recently" started in Buildroot the build testing of fully random
configurations, so we're now testing many more cases and seeing new
build failures.

As part of this, we're now seeing build failures of musl on PowerPC
32-bit architectures. So far, we've seen the problem on power4
(-mcpu=power4), power5 (-mcpu=power5) and power6 (-mcpu=power6), 970
(-mcpu=970), power8 (-mcpu=power8), 620 (-mcpu=620), 630 (-mcpu=630).

The failure is:

./src/internal/atomic.h:229:14: error: size of array 'a_cas_p_undefined_but_pointer_not_32bit' is negative
  229 | typedef char a_cas_p_undefined_but_pointer_not_32bit[-sizeof(char) == 0xffffffff ? 1 : -1];
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can see the full musl build log at: (power4) (power5) (power6) (970) (power8) (620) (630)

I have not investigated the problem so far. I'm not super familiar with
PowerPC, but it seems like these cores are all 64-bit capable, but here
we build for them in 32-bit mode. Maybe this is the case that isn't
handled or supported by musl?

Thanks a lot for your support!

Best regards,

Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-29 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22  7:12 [musl] ./src/internal/atomic.h:229:14: error: size of array 'a_cas_p_undefined_but_pointer_not_32bit' is negative on PowerPC Thomas Petazzoni
2022-07-22 16:29 ` Szabolcs Nagy
2022-07-29 15:34   ` Thomas Petazzoni

Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).