GNU bug report logs - #57109
arm-none-eabi-toolchain atomic support is broken

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Jean Pierre De Jesus DIAZ <me@HIDDEN>; dated Wed, 10 Aug 2022 11:16:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 57109 <at> debbugs.gnu.org:


Received: (at 57109) by debbugs.gnu.org; 8 Sep 2024 09:26:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 08 05:26:28 2024
Received: from localhost ([127.0.0.1]:57993 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1snEBg-0000Vw-HF
	for submit <at> debbugs.gnu.org; Sun, 08 Sep 2024 05:26:28 -0400
Received: from mail-4322.protonmail.ch ([185.70.43.22]:36339)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rutherther@HIDDEN>) id 1snEBe-0000Vi-Im
 for 57109 <at> debbugs.gnu.org; Sun, 08 Sep 2024 05:26:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1725787578; x=1726046778;
 bh=GuZZIwWV9e794Yew12RXv7iczmaWgeune+vh2N5DRGw=;
 h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:
 Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;
 b=uIUI/FApvvdeRywmpwriVflX52dnklFU/FwwmqU9/aduWI6u27Ed7zhWvfdj/4yUG
 a6ZMjXBJLr61dYx774aY+B4rEVweVWs6m/hNq/zuVbjhMeEJBxCwoJmqQV/HDjpBfc
 +44dObup/61/vcC/Ws4vTThE1D0biFgyoQNnlFOtoBoMeSiOVXud/pDCN51S3gVq5W
 sgXetzTnfXU8/wm8SIdg4chboTyS15Iuli5dCGnIY2QPL9O8CN/+ubs0xliF3+p9oC
 JIgFOeBhN4jD6MKcOOnUZdc8y5hhP4/5SnHUITKowLQVjNoMrwgiQkHK35KyNGGw5W
 IMoagVMTGaSWg==
Date: Sun, 08 Sep 2024 09:26:15 +0000
To: 57109 <at> debbugs.gnu.org
From: Rutherther <rutherther@HIDDEN>
Subject: Re: arm-none-eabi-toolchain atomic support is broken
Message-ID: <877cbmv6mj.fsf@HIDDEN>
Feedback-ID: 8107604:user:proton
X-Pm-Message-ID: f6e410c2d6bbe10b3354e701e40cea6e6e8bd9f2
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57109
Cc: Jean Pierre De Jesus DIAZ <me@HIDDEN>, Csepp <raingloom@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


> Jean Pierre De Jesus DIAZ via Bug reports for GNU Guix <bug-guix@HIDDEN>=
 writes:
>=20
> > The following works though. No newlib or anything:
> >
> > guix shell --expression=3D'((@ (gnu packages cross-base) cross-gcc) "ar=
m-none-eabi")' -- \
> >    bash -c "echo '#include <stdatomic.h>' \
> >  | arm-none-eabi-gcc -x c -o /dev/null -c -"
> >
> >
> > =C3=A2=C2=80=C2=94
> > Jean-Pierre De Jesus DIAZ
> >

The reason this works is that the stdatomic.h is used from gcc itself,
instead of the stdatomic.h coming from newlib. It works even with the
arm-none-eabi gcc's coming from `gnu packages embedded`.

The newlib one seems to be broken, though I am unable to find any
discussion on newlib's part. I've tried toolchain coming from
developer.arm.com directly (through nixpkgs that packages the binaries)
and found out that they use stdatomic.h coming from gcc even in full toolch=
ain.

The problem in the Guix ones is that since those use
CROSS_C_INCLUDE_PATH. The paths here get priority to the ones coming from g=
cc
itself. This then means the newlib stdatomic.h shadows the one coming
from (arm-none-eabi-)gcc:lib.

The toolchain from developer.arm.com does not have this issue, since it
relies on the paths directly from gcc, having the one with newlib as
last. When I try directly including stdatomic.h from newlib, I also
get this error even with that toolchain.

A solution could be to prepend the include path from gcc:lib into the
CROSS_C_INCLUDE_PATH to make it take priority, and prefer the packages
coming from there, or to stop relying on the env vars.

See the toolchain from Nix, the one not using env vars:
```
#include <...> search starts here:
 /nix/store/v9njly0h3i308dgyxzcqb6lqf71q8mkl-gcc-arm-embedded-12.3.rel1/bin=
/../lib/gcc/arm-none-eabi/12.3.1/include
 /nix/store/v9njly0h3i308dgyxzcqb6lqf71q8mkl-gcc-arm-embedded-12.3.rel1/bin=
/../lib/gcc/arm-none-eabi/12.3.1/include-fixed
 /nix/store/v9njly0h3i308dgyxzcqb6lqf71q8mkl-gcc-arm-embedded-12.3.rel1/bin=
/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/include
```

See Guix one:
```
#include <...> search starts here:
 /gnu/store/h5jxagsf8236ff3lbfcd4yk1qhk2bs4p-profile/arm-none-eabi/include
 /gnu/store/pjc5ysriqs6w99ihkza7xgwm8clfpgp0-gcc-cross-sans-libc-arm-none-e=
abi-7-2018-q2-update-1.261907-lib/lib/gcc/arm-none-eabi/7.3.1/include
 /gnu/store/pjc5ysriqs6w99ihkza7xgwm8clfpgp0-gcc-cross-sans-libc-arm-none-e=
abi-7-2018-q2-update-1.261907-lib/lib/gcc/arm-none-eabi/7.3.1/include-fixed
```

Regards,
Rutherther





Information forwarded to bug-guix@HIDDEN:
bug#57109; Package guix. Full text available.

Message received at 57109 <at> debbugs.gnu.org:


Received: (at 57109) by debbugs.gnu.org; 18 Aug 2022 14:26:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 10:26:55 2022
Received: from localhost ([127.0.0.1]:56420 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOgU2-0008QX-3N
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2022 10:26:55 -0400
Received: from mx0.riseup.net ([198.252.153.6]:44518)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raingloom@HIDDEN>) id 1oOgTq-0008Pv-Sk
 for 57109 <at> debbugs.gnu.org; Thu, 18 Aug 2022 10:26:52 -0400
Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
 client-signature RSA-PSS (2048 bits) client-digest SHA256)
 (Client CN "mail.riseup.net", Issuer "R3" (not verified))
 by mx0.riseup.net (Postfix) with ESMTPS id 4M7nJF2whTz9t3g;
 Thu, 18 Aug 2022 14:26:37 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1660832797; bh=wDEue0mrlzTPglBzxpVubIXTbbPfXRPV/sdUo4vRmFA=;
 h=References:From:To:Cc:Subject:Date:In-reply-to:From;
 b=Uei0bvLhYX69YMqJooVgjvFcQqprJ+RjBNK3wRX+aj3SJ5mqPTeg9oLmFOb9MKfh4
 NYcx2D4S8R51H6DDvn08rTPG6bZFSFteZLXJGirI7ymCGG5fn/R2n6c6Nus3eH2x38
 HnfKJJbYU1Qz0pjavhC0LBTcamNsnS+jBZ2QRaBs=
X-Riseup-User-ID: 4AB2429B410082E9254E897BFB8CB1E3E10422091FFB30096ED6DB9CC6040E41
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews2.riseup.net (Postfix) with ESMTPSA id 4M7nJD53Skz1yWj;
 Thu, 18 Aug 2022 14:26:36 +0000 (UTC)
References: <FxrTtbkN-kgBnsg2G8jk10dUAf5LGSIhQQKxosEukaNtGlCbHPCXA3HyNf6hzdYYe-qIRF6DlER0-Ma2XjMmzN8GDcwYPNP-5LylnDLavcY=@jeandudey.tech>
 <W3bwtjXOE9kR8_Y5FAONpXogV-HS5-FwbXBLauTFI0N5PN6CVuez0dh2ToQBJGSb02mCOLJ0CPotmEtWG-1LbWZON4no9bk6H1yqT4yeh10=@jeandudey.tech>
From: Csepp <raingloom@HIDDEN>
To: Jean Pierre De Jesus DIAZ <me@HIDDEN>
Subject: Re: bug#57109: arm-none-eabi-toolchain atomic support is broken
Date: Thu, 18 Aug 2022 16:24:01 +0200
In-reply-to: <W3bwtjXOE9kR8_Y5FAONpXogV-HS5-FwbXBLauTFI0N5PN6CVuez0dh2ToQBJGSb02mCOLJ0CPotmEtWG-1LbWZON4no9bk6H1yqT4yeh10=@jeandudey.tech>
Message-ID: <878rnlbpbe.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57109
Cc: bug-guix@HIDDEN, 57109 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


Jean Pierre De Jesus DIAZ via Bug reports for GNU Guix <bug-guix@HIDDEN> w=
rites:

> The following works though. No newlib or anything:
>
> guix shell --expression=3D'((@ (gnu packages cross-base) cross-gcc) "arm-=
none-eabi")' -- \
>    bash -c "echo '#include <stdatomic.h>' \
>  | arm-none-eabi-gcc -x c -o /dev/null -c -"
>
>
> =E2=80=94
> Jean-Pierre De Jesus DIAZ
>
>
> ------- Original Message -------
> On Wednesday, August 10th, 2022 at 1:14 PM, Jean Pierre De Jesus DIAZ <me=
@jeandudey.tech> wrote:
>
>
>> The atomic supports for this toolchain is broken:
>>=20
>> A minimal test case:
>>=20
>> guix shell arm-none-eabi-toolchain -- \
>> bash -c "echo '#include <stdatomic.h>' \
>>=20
>> | arm-none-eabi-gcc -x c -o /dev/null -c -"
>>=20
>> Something similar found online:
>>=20
>> https://sourceware.org/legacy-ml/newlib/2017/msg00150.html
>>=20
>> However no solution.
>>=20
>> This happens with all versions of the arm-none-eabi-toolchain
>> packages.
>>=20
>> =E2=80=94
>> Jean-Pierre De Jesus DIAZ

Might be a good idea to add a (regression) test for this in advance.
Wish I could help, but my expermientation with cross compilation with
Guix were largely fruitless.




Information forwarded to bug-guix@HIDDEN:
bug#57109; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Aug 2022 14:26:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 10:26:52 2022
Received: from localhost ([127.0.0.1]:56418 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oOgTw-0008QG-Ia
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2022 10:26:52 -0400
Received: from lists.gnu.org ([209.51.188.17]:50026)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raingloom@HIDDEN>) id 1oOgTr-0008Q1-Qq
 for submit <at> debbugs.gnu.org; Thu, 18 Aug 2022 10:26:47 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53814)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>)
 id 1oOgTr-00019e-Lb
 for bug-guix@HIDDEN; Thu, 18 Aug 2022 10:26:43 -0400
Received: from mx0.riseup.net ([198.252.153.6]:35198)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>)
 id 1oOgTp-0004FH-9Y
 for bug-guix@HIDDEN; Thu, 18 Aug 2022 10:26:43 -0400
Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
 client-signature RSA-PSS (2048 bits) client-digest SHA256)
 (Client CN "mail.riseup.net", Issuer "R3" (not verified))
 by mx0.riseup.net (Postfix) with ESMTPS id 4M7nJF2whTz9t3g;
 Thu, 18 Aug 2022 14:26:37 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1660832797; bh=wDEue0mrlzTPglBzxpVubIXTbbPfXRPV/sdUo4vRmFA=;
 h=References:From:To:Cc:Subject:Date:In-reply-to:From;
 b=Uei0bvLhYX69YMqJooVgjvFcQqprJ+RjBNK3wRX+aj3SJ5mqPTeg9oLmFOb9MKfh4
 NYcx2D4S8R51H6DDvn08rTPG6bZFSFteZLXJGirI7ymCGG5fn/R2n6c6Nus3eH2x38
 HnfKJJbYU1Qz0pjavhC0LBTcamNsnS+jBZ2QRaBs=
X-Riseup-User-ID: 4AB2429B410082E9254E897BFB8CB1E3E10422091FFB30096ED6DB9CC6040E41
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews2.riseup.net (Postfix) with ESMTPSA id 4M7nJD53Skz1yWj;
 Thu, 18 Aug 2022 14:26:36 +0000 (UTC)
References: <FxrTtbkN-kgBnsg2G8jk10dUAf5LGSIhQQKxosEukaNtGlCbHPCXA3HyNf6hzdYYe-qIRF6DlER0-Ma2XjMmzN8GDcwYPNP-5LylnDLavcY=@jeandudey.tech>
 <W3bwtjXOE9kR8_Y5FAONpXogV-HS5-FwbXBLauTFI0N5PN6CVuez0dh2ToQBJGSb02mCOLJ0CPotmEtWG-1LbWZON4no9bk6H1yqT4yeh10=@jeandudey.tech>
From: Csepp <raingloom@HIDDEN>
To: Jean Pierre De Jesus DIAZ <me@HIDDEN>
Subject: Re: bug#57109: arm-none-eabi-toolchain atomic support is broken
Date: Thu, 18 Aug 2022 16:24:01 +0200
In-reply-to: <W3bwtjXOE9kR8_Y5FAONpXogV-HS5-FwbXBLauTFI0N5PN6CVuez0dh2ToQBJGSb02mCOLJ0CPotmEtWG-1LbWZON4no9bk6H1yqT4yeh10=@jeandudey.tech>
Message-ID: <878rnlbpbe.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@HIDDEN;
 helo=mx0.riseup.net
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: bug-guix@HIDDEN, 57109 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


Jean Pierre De Jesus DIAZ via Bug reports for GNU Guix <bug-guix@HIDDEN> w=
rites:

> The following works though. No newlib or anything:
>
> guix shell --expression=3D'((@ (gnu packages cross-base) cross-gcc) "arm-=
none-eabi")' -- \
>    bash -c "echo '#include <stdatomic.h>' \
>  | arm-none-eabi-gcc -x c -o /dev/null -c -"
>
>
> =E2=80=94
> Jean-Pierre De Jesus DIAZ
>
>
> ------- Original Message -------
> On Wednesday, August 10th, 2022 at 1:14 PM, Jean Pierre De Jesus DIAZ <me=
@jeandudey.tech> wrote:
>
>
>> The atomic supports for this toolchain is broken:
>>=20
>> A minimal test case:
>>=20
>> guix shell arm-none-eabi-toolchain -- \
>> bash -c "echo '#include <stdatomic.h>' \
>>=20
>> | arm-none-eabi-gcc -x c -o /dev/null -c -"
>>=20
>> Something similar found online:
>>=20
>> https://sourceware.org/legacy-ml/newlib/2017/msg00150.html
>>=20
>> However no solution.
>>=20
>> This happens with all versions of the arm-none-eabi-toolchain
>> packages.
>>=20
>> =E2=80=94
>> Jean-Pierre De Jesus DIAZ

Might be a good idea to add a (regression) test for this in advance.
Wish I could help, but my expermientation with cross compilation with
Guix were largely fruitless.




Information forwarded to bug-guix@HIDDEN:
bug#57109; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Aug 2022 14:14:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 16 10:14:54 2022
Received: from localhost ([127.0.0.1]:47924 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oNxLK-0005Hc-5x
	for submit <at> debbugs.gnu.org; Tue, 16 Aug 2022 10:14:54 -0400
Received: from lists.gnu.org ([209.51.188.17]:39628)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1oNxLG-0005HN-4X
 for submit <at> debbugs.gnu.org; Tue, 16 Aug 2022 10:14:52 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46834)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1oNxLF-0006er-Pt
 for bug-guix@HIDDEN; Tue, 16 Aug 2022 10:14:49 -0400
Received: from mail-40136.proton.ch ([185.70.40.136]:45797)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1oNxLA-0002WB-65
 for bug-guix@HIDDEN; Tue, 16 Aug 2022 10:14:49 -0400
Date: Tue, 16 Aug 2022 14:14:29 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeandudey.tech;
 s=protonmail3; t=1660659273; x=1660918473;
 bh=TgIxWIOegFSg8lOyiBfML5KGxCKLbFG9da6A0RN7Hy0=;
 h=Date:To:From:Reply-To:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID;
 b=TKao8lIHxj/lMRt3IPiZ8E5tgZYmZEcxj9REUyEsKZS33trpiF26AZjFmZqqwLZ3+
 zkxrYylqJpHQqdAdT4ZMIL3PHCEsRapOrDCtZsc7PbXp2IOrhr+P6UvpkDr6o90tQi
 7umykRRVEHgzQ09chblZlica2c6apDGBrjld4UJL/LAgJFJbCwTPg1ZRDFmJT/H5Nx
 q0lF+2bOD5y6gAIdfFZvdUdlecZWNYhOfbCUw3RTosPuh/TeJpRgK3k20ZssHLY0JZ
 +GPA0XYmI1hCx3XQbzX4dD9svt09UWlL5FRCCcsqUZPcHgtP0Bl+WZ9RbEIIfmECB2
 1EjNvur7MzYEA==
To: "bug-guix@HIDDEN" <bug-guix@HIDDEN>
From: Jean Pierre De Jesus DIAZ <me@HIDDEN>
Subject: Re: arm-none-eabi-toolchain atomic support is broken
Message-ID: <W3bwtjXOE9kR8_Y5FAONpXogV-HS5-FwbXBLauTFI0N5PN6CVuez0dh2ToQBJGSb02mCOLJ0CPotmEtWG-1LbWZON4no9bk6H1yqT4yeh10=@jeandudey.tech>
In-Reply-To: <FxrTtbkN-kgBnsg2G8jk10dUAf5LGSIhQQKxosEukaNtGlCbHPCXA3HyNf6hzdYYe-qIRF6DlER0-Ma2XjMmzN8GDcwYPNP-5LylnDLavcY=@jeandudey.tech>
References: <FxrTtbkN-kgBnsg2G8jk10dUAf5LGSIhQQKxosEukaNtGlCbHPCXA3HyNf6hzdYYe-qIRF6DlER0-Ma2XjMmzN8GDcwYPNP-5LylnDLavcY=@jeandudey.tech>
Feedback-ID: 20187791:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.70.40.136; envelope-from=me@HIDDEN;
 helo=mail-40136.proton.ch
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Jean Pierre De Jesus DIAZ <me@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

The following works though. No newlib or anything:

guix shell --expression=3D'((@ (gnu packages cross-base) cross-gcc) "arm-no=
ne-eabi")' -- \
   bash -c "echo '#include <stdatomic.h>' \
 | arm-none-eabi-gcc -x c -o /dev/null -c -"


=E2=80=94
Jean-Pierre De Jesus DIAZ


------- Original Message -------
On Wednesday, August 10th, 2022 at 1:14 PM, Jean Pierre De Jesus DIAZ <me@j=
eandudey.tech> wrote:


> The atomic supports for this toolchain is broken:
>=20
> A minimal test case:
>=20
> guix shell arm-none-eabi-toolchain -- \
> bash -c "echo '#include <stdatomic.h>' \
>=20
> | arm-none-eabi-gcc -x c -o /dev/null -c -"
>=20
> Something similar found online:
>=20
> https://sourceware.org/legacy-ml/newlib/2017/msg00150.html
>=20
> However no solution.
>=20
> This happens with all versions of the arm-none-eabi-toolchain
> packages.
>=20
> =E2=80=94
> Jean-Pierre De Jesus DIAZ




Information forwarded to bug-guix@HIDDEN:
bug#57109; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Aug 2022 11:15:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 10 07:15:12 2022
Received: from localhost ([127.0.0.1]:46265 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oLjg8-0003dp-0q
	for submit <at> debbugs.gnu.org; Wed, 10 Aug 2022 07:15:12 -0400
Received: from lists.gnu.org ([209.51.188.17]:45422)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1oLjg2-0003da-SN
 for submit <at> debbugs.gnu.org; Wed, 10 Aug 2022 07:15:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50874)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1oLjg2-0005aI-1r
 for bug-guix@HIDDEN; Wed, 10 Aug 2022 07:15:06 -0400
Received: from mail-0201.mail-europe.com ([51.77.79.158]:60235)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1oLjfy-0004p7-Ct
 for bug-guix@HIDDEN; Wed, 10 Aug 2022 07:15:05 -0400
Date: Wed, 10 Aug 2022 11:14:37 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeandudey.tech;
 s=protonmail3; t=1660130089; x=1660389289;
 bh=+s4T9NgMAxZaknhITY7+s1Ytpne2BLC1Gd0Q9oCx0JM=;
 h=Date:To:From:Reply-To:Subject:Message-ID:Feedback-ID:From:To:Cc:
 Date:Subject:Reply-To:Feedback-ID:Message-ID;
 b=dIY9QRpmXZE+pUpYRKHSQdfTwx556ogthNaG1rMG023Lz78Me+zrCbhkkbsIjfBIF
 vv5/VnAVI6nWSQOx6mZKoRpAMjsS8ryInu77Zug3ctzJRLN/EwfBjjM6RgAB2lJHTh
 J76hRlm7ZWNyppglZMHJb+8nsC3GdY7BMGg7DKzn5CEp/njlQgP0+SXmIBakmZEnQS
 K5raB3r2gtVLARdmujTzCqYDJFBMMePayhz9HjgJabd3tUP9btGCkg7r20tZn9dVsk
 r+bNKAr2elV7kf7zgHbBczrSJiuhF/p7KVkaDQYKQNIS5Fwzf+KaROKcnBAFoWmj3G
 l4tUbB1R2G0aw==
To: "bug-guix@HIDDEN" <bug-guix@HIDDEN>
From: Jean Pierre De Jesus DIAZ <me@HIDDEN>
Subject: arm-none-eabi-toolchain atomic support is broken
Message-ID: <FxrTtbkN-kgBnsg2G8jk10dUAf5LGSIhQQKxosEukaNtGlCbHPCXA3HyNf6hzdYYe-qIRF6DlER0-Ma2XjMmzN8GDcwYPNP-5LylnDLavcY=@jeandudey.tech>
Feedback-ID: 20187791:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=51.77.79.158; envelope-from=me@HIDDEN;
 helo=mail-0201.mail-europe.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Jean Pierre De Jesus DIAZ <me@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

The atomic supports for this toolchain is broken:

A minimal test case:

guix shell arm-none-eabi-toolchain -- \
   bash -c "echo '#include <stdatomic.h>' \
 | arm-none-eabi-gcc -x c -o /dev/null -c -"

Something similar found online:

https://sourceware.org/legacy-ml/newlib/2017/msg00150.html

However no solution.

This happens with all versions of the arm-none-eabi-toolchain
packages.

=E2=80=94
Jean-Pierre De Jesus DIAZ




Acknowledgement sent to Jean Pierre De Jesus DIAZ <me@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#57109; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.