From unknown Sat Jun 21 03:22:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57109 <57109@debbugs.gnu.org> To: bug#57109 <57109@debbugs.gnu.org> Subject: Status: arm-none-eabi-toolchain atomic support is broken Reply-To: bug#57109 <57109@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:22:01 +0000 retitle 57109 arm-none-eabi-toolchain atomic support is broken reassign 57109 guix submitter 57109 Jean Pierre De Jesus DIAZ severity 57109 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 10 07:15:12 2022 Received: (at submit) by debbugs.gnu.org; 10 Aug 2022 11:15:12 +0000 Received: from localhost ([127.0.0.1]:46265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLjg8-0003dp-0q for submit@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 ) id 1oLjg2-0003da-SN for submit@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 ) id 1oLjg2-0005aI-1r for bug-guix@gnu.org; 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 ) id 1oLjfy-0004p7-Ct for bug-guix@gnu.org; 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@gnu.org" From: Jean Pierre De Jesus DIAZ Subject: arm-none-eabi-toolchain atomic support is broken Message-ID: 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@jeandudey.tech; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jean Pierre De Jesus DIAZ Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 ' \ | 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 16 10:14:54 2022 Received: (at submit) by debbugs.gnu.org; 16 Aug 2022 14:14:54 +0000 Received: from localhost ([127.0.0.1]:47924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNxLK-0005Hc-5x for submit@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 ) id 1oNxLG-0005HN-4X for submit@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 ) id 1oNxLF-0006er-Pt for bug-guix@gnu.org; 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 ) id 1oNxLA-0002WB-65 for bug-guix@gnu.org; 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@gnu.org" From: Jean Pierre De Jesus DIAZ Subject: Re: arm-none-eabi-toolchain atomic support is broken Message-ID: In-Reply-To: References: 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@jeandudey.tech; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jean Pierre De Jesus DIAZ Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 ' \ | 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 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 ' \ >=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 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 18 10:26:52 2022 Received: (at submit) by debbugs.gnu.org; 18 Aug 2022 14:26:52 +0000 Received: from localhost ([127.0.0.1]:56418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOgTw-0008QG-Ia for submit@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 ) id 1oOgTr-0008Q1-Qq for submit@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 ) id 1oOgTr-00019e-Lb for bug-guix@gnu.org; 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 ) id 1oOgTp-0004FH-9Y for bug-guix@gnu.org; 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: From: Csepp To: Jean Pierre De Jesus DIAZ Subject: Re: bug#57109: arm-none-eabi-toolchain atomic support is broken Date: Thu, 18 Aug 2022 16:24:01 +0200 In-reply-to: Message-ID: <878rnlbpbe.fsf@riseup.net> 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@riseup.net; 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@gnu.org, 57109@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Jean Pierre De Jesus DIAZ via Bug reports for GNU Guix 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 ' \ > | 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 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 ' \ >>=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. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 08 05:26:28 2024 Received: (at 57109) by debbugs.gnu.org; 8 Sep 2024 09:26:29 +0000 Received: from localhost ([127.0.0.1]:57993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snEBg-0000Vw-HF for submit@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 ) id 1snEBe-0000Vi-Im for 57109@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@debbugs.gnu.org From: Rutherther Subject: Re: arm-none-eabi-toolchain atomic support is broken Message-ID: <877cbmv6mj.fsf@protonmail.com> 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 , Csepp X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Jean Pierre De Jesus DIAZ via Bug reports for GNU Guix = 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 ' \ > > | 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