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 30177 invoked from network); 29 Jul 2022 15:34:34 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 29 Jul 2022 15:34:34 -0000 Received: (qmail 10215 invoked by uid 550); 29 Jul 2022 15:34:31 -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 10174 invoked from network); 29 Jul 2022 15:34:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1659108859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gIpE3wIPtMNa0oco9lu0w+1ts6Zqbu/IsIIHXMqPtnQ=; b=gvtdBRfncE+T2HF3TNbxpyD2Eg8Z+9+38U0xDgvZP5Cz3V3Z+fX4fcuQX+puuBgmUzdYRF wae0GQMYnpG3nhy4WtMsbvQkmsOfxNnwFoUEFaBZpHfKEJENybpTzmJWqDGdrA+/w7T5/q XjUk5xljl3uYdAi54ntKaZVurz7v+jOJaBu5ODl4Me1jDunHmPWCozmlVLUqpKMQTnRIMD 5HfdADEQK7+29OnhX8KyKrA5+82niatFX0pQDIgB9nhXQg/2KlwMWB2dQztdRxs7Iud+iy 2/e4hLmfGHe9JKr3XK9qMXiSh/8/mW1+YSWTig87MnNxLEuSu5lAZDtp/DypmA== Date: Fri, 29 Jul 2022 17:34:17 +0200 From: Thomas Petazzoni To: "musl@lists.openwall.com" Cc: Joel Stanley , =?UTF-8?B?Q8OpZHJpYw==?= Le Goater Message-ID: <20220729173417.206a8fd3@windsurf> In-Reply-To: <20220722162900.GB1320090@port70.net> References: <20220722091224.344b2b22@windsurf> <20220722162900.GB1320090@port70.net> Organization: Bootlin X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) Importance: high X-Priority: 1 (Highest) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] ./src/internal/atomic.h:229:14: error: size of array 'a_cas_p_undefined_but_pointer_not_32bit' is negative on PowerPC Hello, On Fri, 22 Jul 2022 18:29:00 +0200 Szabolcs Nagy wrote: > * Thomas Petazzoni [2022-07-22 09:12:24 +0= 200]: > > Hello, > >=20 > > 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. > >=20 > > 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=3Dpower4), power5 (-mcpu=3Dpower5) and power6 (-mcpu=3Dpower6), = 970 > > (-mcpu=3D970), power8 (-mcpu=3Dpower8), 620 (-mcpu=3D620), 630 (-mcpu= =3D630). > >=20 > > The failure is: > >=20 > > ./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(ch= ar) =3D=3D 0xffffffff ? 1 : -1]; > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =20 >=20 > the compiler is not configured for 32-bit target abi, but the triplet > (powerpc-buildroot-linux-musl) selects the 32-bit target in musl. >=20 > please use powerpc64* --target triplet when configuring musl or configure > gcc to default to 32-bit abi if that's what you want. >=20 > (the bug would be more obvious looking at gcc -v) Thanks a lot for the feedback. I have added in Cc Joel and C=C3=A9dric, who help maintain the PowerPC support in Buildroot. Joel has submitted just today a patch series to Buildroot that I believe should help address this particular issue. Joel, do you confirm? Thanks a lot! Thomas --=20 Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com