From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CFAXGLZrhWWj8wAAkFu2QA (envelope-from ) for ; Fri, 22 Dec 2023 11:57:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 8D9oErZrhWW+SwAAe85BDQ (envelope-from ) for ; Fri, 22 Dec 2023 11:57:58 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail header.b=l62OKpaw; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703242678; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Exq+9sf0aLDvn9AfwHnexvwacPzrSjB6PWroy/OHjcE=; b=SN+Mel+x5gDPxsAfJOwFyVgtgBxWk3WfHU7HPIuLE/H/VCKT7fxDLieL4/2bqrvU7t3N8N qT7cxYj7CKEg2cwfU9GUCZo8VLAeRISt6oE4CivFYJ9Rb2abpC2a57KWBMQxZ0qC/VcBZR 1EPuP6+9nyrANo/9y5ACG68ek9dKtPyI8DKCky1pGXHcFyJR2bHEDfNpv3ccA7rSAlozWl Mh62t/ti07yhHVvtPQ+k6SmFAn4jBCRMb4VLbKccjs5W4x3tHYPDhjIJEl2DVZiUq4SSum D4xwM0XO2BlvTGOLzBEQKnbX6zBKwE8g3ZxTeC7pfKUG5yFr/Y7QIlZyo66WTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail header.b=l62OKpaw; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703242678; a=rsa-sha256; cv=none; b=Coe0i/oZvdxWsHu3ugNb4osyth59Pn2pC4FLzPER7CURyhOxNCH4vXIwG0kXsWsXDs9z+m 0zQby3lcds5idN+m8Nor01mS3lHNBG8t260V2/0r/TL480s0kT0ewQd3DJ7Z9NS7MPot6V w1xVrY3zHepL7TXBf4FqMGYZLRKf61SUuRC01zjyfYIvaoPM8Jz1ttk6aR2dOhu3zMwNN1 B40q8O03BL7J/0+HT5as8fiCQzt4FQ2l70ad6WldPJx4+zNjrpAmk4sYfEHtqSz1PkH5pM /gFVDydKulidfE3pZhOREeViu9yP1V4T/yG6KY4rIcyEnPHzW3JtVlRWiDMI6A== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D314517E95 for ; Fri, 22 Dec 2023 11:57:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGdDK-0003Q9-Kv; Fri, 22 Dec 2023 05:57:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGdDI-0003Q0-5b for guix-devel@gnu.org; Fri, 22 Dec 2023 05:57:08 -0500 Received: from mail-4018.proton.ch ([185.70.40.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGdDC-0000fA-UW for guix-devel@gnu.org; Fri, 22 Dec 2023 05:57:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail; t=1703242613; x=1703501813; bh=Exq+9sf0aLDvn9AfwHnexvwacPzrSjB6PWroy/OHjcE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=l62OKpawU+2ZgysxwEliXNdX0EdpZA0BpUV2JXkTdklgop881tPaiGFtlnoDoiAyr 8prxlvaj4OcE0vza+w97z1PJC8eslys9WSyaMjV8mlbPA2JpbrvZPBfYTYO87COlbK jqfwNWzKkqfOdMCnR4m7ENxSPYNYtOAgBcOtb09/be3CfNQADhxoe6w5lc8fBR/q7A JM8G8OSkt6bF+WMiK3aVuE7lwTMG6nQbMIYnPF8bCLKs5kpNDlxcEwVFx2QzfzKw01 CmZBLrBeCJeDlSDUsdJrsvGEcB38RlM2WHbv1SjGkQoyg9pLZDepgmFsYzM6Ol8IHY qdJYp2coijFaQ== Date: Fri, 22 Dec 2023 10:56:42 +0000 To: Stefan From: Attila Lendvai Cc: guix-devel@gnu.org Subject: Re: A different way to build GCC to overcome issues, especially with C++ for embedded systems Message-ID: In-Reply-To: <5cc66f03-9068-2f67-0ec3-2c0f5c563898@vodafonemail.de> References: <0db7f8a7-906f-6552-26e8-93162f6d266e@vodafonemail.de> <5cc66f03-9068-2f67-0ec3-2c0f5c563898@vodafonemail.de> Feedback-ID: 28384833: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.18; envelope-from=attila@lendvai.name; helo=mail-4018.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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.90 X-Spam-Score: -6.90 X-Migadu-Queue-Id: D314517E95 X-TUID: CRPcEEMm2atB TL;DR it's probably due to some cmake mess. and i gave up on compiling this= ; if i really want to, i'll do it in a debian chroot. > > i tried with your gcc =E2=80=A6 but it errors out with: > > > > $ make > > [ 1%] Linking ASM executable bs2_default.elf > > arm-none-eabi-gcc: error: nosys.specs: No such file or directory > > > That file is located here: /gnu/store/=E2=80=A6-newlib-arm-none-eabi-4.3.= 0/arm-none-eabi/lib/nosys.specs that didn't help: ~/workspace/guix/guix/pre-inst-env guix shell gcc-toolchain cmake make pkg-= config -e '(@ (gnu packages embedded2) gcc12-cross-newlib-arm-none-eabi-too= lchain)' cd ~/workspace/bios/pico-serprog cmake . COMPILER_PATH=3D/gnu/store/i9kpjzbagdlpm8bs10gxmm21b271s056-newlib-3.0.0-0.= 3ccfb40/arm-none-eabi/lib/ LDFLAGS=3D-B/gnu/store/i9kpjzbagdlpm8bs10gxmm21b= 271s056-newlib-3.0.0-0.3ccfb40/arm-none-eabi/lib/ make it leads to the same problem. but then i tried to compile the pico-sdk subproject as a standalone project= , and then it succeeds (but fails with a different error later). therefore = i think it's due to some cmake mess that i don't want to get deeper into. s= o, the rest is just FYI: git clone https://github.com/raspberrypi/pico-sdk ~/workspace/guix/guix/pre-inst-env guix shell gcc-toolchain cmake make pkg-= config -e '(@ (gnu packages embedded2) gcc12-cross-newlib-arm-none-eabi-too= lchain)' cmake . make $ make [ 0%] Building ASM object src/rp2_common/boot_stage2/CMakeFiles/bs2_defaul= t.dir/compile_time_choice.S.obj [ 0%] Linking ASM executable bs2_default.elf [ 0%] Built target bs2_default [ 0%] Creating directories for 'ELF2UF2Build' [ 0%] No download step for 'ELF2UF2Build' [ 0%] No update step for 'ELF2UF2Build' [ 0%] No patch step for 'ELF2UF2Build' [ 0%] Performing configure step for 'ELF2UF2Build' -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /gnu/store/3yqw7js9slid5q3d1f5bpbk92vann10= 9-profile/bin/gcc -- Check for working C compiler: /gnu/store/3yqw7js9slid5q3d1f5bpbk92vann10= 9-profile/bin/gcc - broken CMake Error at /gnu/store/4bn07jsqk6lxp0qdxv7kkc3krz3afnna-cmake-3.25.1/sha= re/cmake-3.25/Modules/CMakeTestCCompiler.cmake:70 (message): The C compiler "/gnu/store/3yqw7js9slid5q3d1f5bpbk92vann109-profile/bin/gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/alendvai/workspace/bios/pico-sdk/elf2uf2/CMakeFiles/C= MakeScratch/TryCompile-fg3QLY Run Build Command(s):/gnu/store/3yqw7js9slid5q3d1f5bpbk92vann109-profil= e/bin/make -f Makefile cmTC_12bac/fast && make[3]: Entering directory '/hom= e/alendvai/workspace/bios/pico-sdk/elf2uf2/CMakeFiles/CMakeScratch/TryCompi= le-fg3QLY' /gnu/store/3yqw7js9slid5q3d1f5bpbk92vann109-profile/bin/make -f CMakeF= iles/cmTC_12bac.dir/build.make CMakeFiles/cmTC_12bac.dir/build make[4]: Entering directory '/home/alendvai/workspace/bios/pico-sdk/elf= 2uf2/CMakeFiles/CMakeScratch/TryCompile-fg3QLY' Building C object CMakeFiles/cmTC_12bac.dir/testCCompiler.c.o /gnu/store/3yqw7js9slid5q3d1f5bpbk92vann109-profile/bin/gcc -o CMake= Files/cmTC_12bac.dir/testCCompiler.c.o -c /home/alendvai/workspace/bios/pic= o-sdk/elf2uf2/CMakeFiles/CMakeScratch/TryCompile-fg3QLY/testCCompiler.c as: unrecognized option '--64' make[4]: *** [CMakeFiles/cmTC_12bac.dir/build.make:78: CMakeFiles/cmTC_= 12bac.dir/testCCompiler.c.o] Error 1 make[4]: Leaving directory '/home/alendvai/workspace/bios/pico-sdk/elf2= uf2/CMakeFiles/CMakeScratch/TryCompile-fg3QLY' make[3]: *** [Makefile:127: cmTC_12bac/fast] Error 2 make[3]: Leaving directory '/home/alendvai/workspace/bios/pico-sdk/elf2= uf2/CMakeFiles/CMakeScratch/TryCompile-fg3QLY' the root cause of the messy error message above is the following: as: unrecognized option '--64' this happens with the host gcc (or due to some misconfiguration the host gc= c is used wrongly). $ file src/rp2_common/boot_stage2/bs2_default.elf src/rp2_common/boot_stage2/bs2_default.elf: ELF 32-bit LSB executable, ARM,= EABI5 version 1 (SYSV), statically linked, not stripped =20 -- =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CPerfection is achieved, not when there is nothing more to add, but= when there is nothing left to take away.=E2=80=9D =09=E2=80=94 Antoine de Saint-Exupery (1900=E2=80=931944)