From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10797 invoked from network); 22 Jul 2022 07:12:40 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 22 Jul 2022 07:12:40 -0000 Received: (qmail 3090 invoked by uid 550); 22 Jul 2022 07:12:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 2029 invoked from network); 22 Jul 2022 07:12:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1658473945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nKCAYi7tJw0Qe+Mnz/5bKdSHiYpTK9/npA5ND7gXgSY=; b=CqcUaOW8wKRItjuAOQ80eHbamt7QrZMbuuuU8FdwB50Y2Fns8iyTYxBnkPF2SKOeWG+1qV mui4SfDX65OLasKBPRs5lG/ZcIevBEehB9uPsjwVHfuvtA5eizPlW0oaC+C8x6UKlcynda uRSR+2uynvKUKtFU9H6UHu7X5wo5yLzvznXgSyJ+ffsn+We5/OYHURfyASS4NT43384aDw loUNp7pdUkyRwTgzf/I0qcd7qa4PM5LkUtcTyf2tbWTjXhhCi64G8Wo6361k/bhMXy0cKa Ng+UoNOdO2h5+RZgGgphyWkBYtjoL4DSDRsWKqhtIyJDNkz0tHtKP2KMC3Uagg== Date: Fri, 22 Jul 2022 09:12:24 +0200 From: Thomas Petazzoni To: "musl@lists.openwall.com" Message-ID: <20220722091224.344b2b22@windsurf> Organization: Bootlin X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [musl] ./src/internal/atomic.h:229:14: error: size of array 'a_cas_p_undefined_but_pointer_not_32bit' is negative on PowerPC Hello, 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: http://autobuild.buildroot.net/results/3f1956fbc1746ac25b537ed023e6393ff715f4c9/build-end.log (power4) http://autobuild.buildroot.net/results/eeb3d66480e6fb4cd031e7803859480b6d0c72f3/build-end.log (power5) http://autobuild.buildroot.net/results/4e41d2ce80ba56f933b1a4ac2dec367d634b0b54/build-end.log (power6) http://autobuild.buildroot.net/results/5c7/5c7f71852b8ad201c0615838b7fa6f8bb15cc55b/build-end.log (970) http://autobuild.buildroot.net/results/bac/bac4489b489f9b62b5f00be6a3aaac2db90e4ca1/build-end.log (power8) http://autobuild.buildroot.net/results/97c/97c6c4bd683e6c7022a62343888dfa8b9d3bab04/build-end.log (620) http://autobuild.buildroot.net/results/e2e/e2ed03711a8f2ae7b80efd56114457f8476449cc/build-end.log (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 -- Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com