X-Loop: help-debbugs@HIDDEN Subject: bug#69394: cross-gcc-toolchain for riscv64 doesn't search crt1.o properly Resent-From: Ekaitz Zarraga <ekaitz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sun, 25 Feb 2024 20:11:01 +0000 Resent-Message-ID: <handler.69394.B.170889181022585 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 69394 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 69394 <at> debbugs.gnu.org X-Debbugs-Original-To: "bug-guix@HIDDEN" <bug-guix@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.170889181022585 (code B ref -1); Sun, 25 Feb 2024 20:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2024 20:10:10 +0000 Received: from localhost ([127.0.0.1]:44830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1reKp6-0005sB-TS for submit <at> debbugs.gnu.org; Sun, 25 Feb 2024 15:10:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:42164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ekaitz@HIDDEN>) id 1reKp5-0005s1-1X for submit <at> debbugs.gnu.org; Sun, 25 Feb 2024 15:10:08 -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 <ekaitz@HIDDEN>) id 1reKmX-0006Bn-5M for bug-guix@HIDDEN; Sun, 25 Feb 2024 15:07:30 -0500 Received: from dane.soverin.net ([2a10:de80:1:4091:b9e9:2215:0:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <ekaitz@HIDDEN>) id 1reKmS-0006VO-8F for bug-guix@HIDDEN; Sun, 25 Feb 2024 15:07:27 -0500 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4TjZXl20XTz5t for <bug-guix@HIDDEN>; Sun, 25 Feb 2024 20:07:19 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4TjZXk1lqrzCw for <bug-guix@HIDDEN>; Sun, 25 Feb 2024 20:07:18 +0000 (UTC) Authentication-Results: smtp.soverin.net; dkim=pass (2048-bit key; unprotected) header.d=elenq.tech header.i=@elenq.tech header.a=rsa-sha256 header.s=soverin1 header.b=i9FJtEyJ; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=soverin1; t=1708891638; 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:autocrypt:autocrypt; bh=+0jj7wIc7/d7jdKezw0ukOLsHCUtIO+sra6G+XjeaFg=; b=i9FJtEyJeqLVk3KMMPYK3XfA3G6t6dIysCaErxP7AJt/lgVeEdsGVZ5FtqaCsyzpjX3EzV xjEhQ1ER4Cmi7qpkKjqhwJiqnquC8npNNuMMnfp0apqss6a0tZXm2vyEPKXnXPfLiIavyX +63Cl/o6iCYlruu0U7o7bHrlI+5ndvqE5Q9fuUcpeCVi3bx+MJt6OIxjp3wkDICTcf2k16 rm2rqFNHy12UAKeZSaty3qc+umU4x7Ld/Z5xf9/WvqE02PXUhmf8jL+c2WiTY4tvBiwzKu z5SBFoex0zncR8aWov4eItcLPqS/yDiOt9WZ5stUVbWmM3vV/PXu1edXiQnE3w== Message-ID: <35296725-34bd-074f-0582-b066c11b06dc@HIDDEN> Date: Sun, 25 Feb 2024 21:07:17 +0100 MIME-Version: 1.0 Content-Language: en-US, es-ES, eu From: Ekaitz Zarraga <ekaitz@HIDDEN> Autocrypt: addr=ekaitz@HIDDEN; keydata= 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 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a10:de80:1:4091:b9e9:2215:0:1; envelope-from=ekaitz@HIDDEN; helo=dane.soverin.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_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-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.3 (--) Hi, I made this package: ``` (define-module (cross) #:use-module (guix packages) #:use-module (guix gexp) #:use-module (gnu packages cross-base)) (define-public gcc-cross-riscv64-linux-gnu-toolchain (cross-gcc-toolchain "riscv64-linux-gnu")) ``` And used in in the session you can read in the bottom of this email. During the session, the `crt1.o` file is not found, and the `riscv64-linux-gnu-gcc -v whatever.c` call shows `crt1.o` is passed to the compiler using only the name, while in `gcc-toolchain` it's passed using the full path to the libc. This looks like the `cross-gcc-toolchain` is missing some configuration for proper usage in a guix shell. Best, Ekaitz The session I that explains the behavior: ``` # Using gcc-toolchain here `crt1.o` is found: Ekaitz@tuxedo ~/projects/nlnet/gzip-1.2.4$ guix shell gcc-toolchain Ekaitz@tuxedo ~/projects/nlnet/gzip-1.2.4 [env]$ gcc -v deflate.c Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/gnu/store/vjjk375kysja1jz0837lypd09rdgs47c-gcc-13.2.0/libexec/gcc/x86_64-unknown-linux-gnu/13.2.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.2.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-' /gnu/store/vjjk375kysja1jz0837lypd09rdgs47c-gcc-13.2.0/libexec/gcc/x86_64-unknown-linux-gnu/13.2.0/cc1 -quiet -v deflate.c -quiet -dumpdir a- -dumpbase deflate.c -dumpbase-ext .c -mtune=generic -march=x86-64 -version -o /tmp/ccffA64a.s GNU C17 (GCC) version 13.2.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 13.2.0, GMP version 6.2.1, MPFR version 4.2.0, MPC version 1.3.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/no-gcc-local-prefix/include" ignoring nonexistent directory "/gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /gnu/store/0pr5ryw11f7pg5nhn42616k17ahdnily-profile/include /gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include /gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/include-fixed /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/include End of search list. Compiler executable checksum: cd54e13587d35c4cb99945e5484c0675 COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-' as -v --64 -o /tmp/cciGP5tQ.o /tmp/ccffA64a.s GNU assembler version 2.38 (x86_64-unknown-linux-gnu) using BFD version (GNU Binutils) 2.38 COMPILER_PATH=/gnu/store/vjjk375kysja1jz0837lypd09rdgs47c-gcc-13.2.0/libexec/gcc/x86_64-unknown-linux-gnu/13.2.0/:/gnu/store/vjjk375kysja1jz0837lypd09rdgs47c-gcc-13.2.0/libexec/gcc/x86_64-unknown-linux-gnu/13.2.0/:/gnu/store/vjjk375kysja1jz0837lypd09rdgs47c-gcc-13.2.0/libexec/gcc/x86_64-unknown-linux-gnu/:/gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/:/gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/ LIBRARY_PATH=/gnu/store/0pr5ryw11f7pg5nhn42616k17ahdnily-profile/lib/:/gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/:/gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../:/gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a.' /gnu/store/vjjk375kysja1jz0837lypd09rdgs47c-gcc-13.2.0/libexec/gcc/x86_64-unknown-linux-gnu/13.2.0/collect2 -plugin /gnu/store/vjjk375kysja1jz0837lypd09rdgs47c-gcc-13.2.0/libexec/gcc/x86_64-unknown-linux-gnu/13.2.0/liblto_plugin.so -plugin-opt=/gnu/store/vjjk375kysja1jz0837lypd09rdgs47c-gcc-13.2.0/libexec/gcc/x86_64-unknown-linux-gnu/13.2.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccdr9flx.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 -dynamic-linker /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/ld-linux-x86-64.so.2 /gnu/store/0pr5ryw11f7pg5nhn42616k17ahdnily-profile/lib/crt1.o /gnu/store/0pr5ryw11f7pg5nhn42616k17ahdnily-profile/lib/crti.o /gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/crtbegin.o -L/gnu/store/0pr5ryw11f7pg5nhn42616k17ahdnily-profile/lib -L/gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/13.2.0 -L/gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../.. -L/gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib /tmp/cciGP5tQ.o -lgcc --push-state --as-needed -lgcc_s --pop-state -L/gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib -rpath=/gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib -rpath=/gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib -lgcc_s -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /gnu/store/m57d52krll9vlzmc0cqfg6dwn7n0p52j-gcc-13.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/crtend.o /gnu/store/0pr5ryw11f7pg5nhn42616k17ahdnily-profile/lib/crtn.o ld: /gnu/store/0pr5ryw11f7pg5nhn42616k17ahdnily-profile/lib/crt1.o: in function `_start': (.text+0x17): undefined reference to `main' ... Ekaitz@tuxedo ~/projects/nlnet/gzip-1.2.4 [env]$ exit # Now with riscv64, crt1.o is passed using a relative path and it fails: Ekaitz@tuxedo ~/projects/nlnet/gzip-1.2.4$ guix shell gcc-cross-riscv64-linux-gnu-toolchain Ekaitz@tuxedo ~/projects/nlnet/gzip-1.2.4 [env]$ riscv64-linux-gnu-gcc -v deflate.c Using built-in specs. COLLECT_GCC=riscv64-linux-gnu-gcc COLLECT_LTO_WRAPPER=/gnu/store/dl52ppai6dvdlw0jybx8qj5yvclhwqgl-gcc-cross-riscv64-linux-gnu-11.3.0/libexec/gcc/riscv64-linux-gnu/11.3.0/lto-wrapper Target: riscv64-linux-gnu Configured with: Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.3.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-march=rv64gc' '-mabi=lp64d' '-misa-spec=2.2' '-march=rv64imafdc' '-dumpdir' 'a-' /gnu/store/dl52ppai6dvdlw0jybx8qj5yvclhwqgl-gcc-cross-riscv64-linux-gnu-11.3.0/libexec/gcc/riscv64-linux-gnu/11.3.0/cc1 -quiet -v deflate.c -quiet -dumpdir a- -dumpbase deflate.c -dumpbase-ext .c -march=rv64gc -mabi=lp64d -misa-spec=2.2 -march=rv64imafdc -version -o /tmp/ccjXCE2o.s GNU C17 (GCC) version 11.3.0 (riscv64-linux-gnu) compiled by GNU C version 11.3.0, GMP version 6.2.1, MPFR version 4.2.0, MPC version 1.3.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/no-gcc-local-prefix/include" ignoring nonexistent directory "/gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/../../../../../../../riscv64-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/include /gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/include-fixed /gnu/store/f0rksvsrhzbn4ss4gd4p1s677awfzz08-glibc-cross-riscv64-linux-gnu-2.35/include End of search list. GNU C17 (GCC) version 11.3.0 (riscv64-linux-gnu) compiled by GNU C version 11.3.0, GMP version 6.2.1, MPFR version 4.2.0, MPC version 1.3.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: c32f88db5f6319705b0dc5f3836ff976 COLLECT_GCC_OPTIONS='-v' '-march=rv64gc' '-mabi=lp64d' '-misa-spec=2.2' '-march=rv64imafdc' '-dumpdir' 'a-' /gnu/store/dl52ppai6dvdlw0jybx8qj5yvclhwqgl-gcc-cross-riscv64-linux-gnu-11.3.0/libexec/gcc/riscv64-linux-gnu/as -v --traditional-format -march=rv64gc -march=rv64imafdc -mabi=lp64d -misa-spec=2.2 -o /tmp/ccLQFrsU.o /tmp/ccjXCE2o.s GNU assembler version 2.38 (riscv64-linux-gnu) using BFD version (GNU Binutils) 2.38 COMPILER_PATH=/gnu/store/dl52ppai6dvdlw0jybx8qj5yvclhwqgl-gcc-cross-riscv64-linux-gnu-11.3.0/libexec/gcc/riscv64-linux-gnu/11.3.0/:/gnu/store/dl52ppai6dvdlw0jybx8qj5yvclhwqgl-gcc-cross-riscv64-linux-gnu-11.3.0/libexec/gcc/riscv64-linux-gnu/11.3.0/:/gnu/store/dl52ppai6dvdlw0jybx8qj5yvclhwqgl-gcc-cross-riscv64-linux-gnu-11.3.0/libexec/gcc/riscv64-linux-gnu/:/gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/:/gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/ CROSS_LIBRARY_PATH=/gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/:/gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/../../../../riscv64-linux-gnu/lib/:/gnu/store/f0rksvsrhzbn4ss4gd4p1s677awfzz08-glibc-cross-riscv64-linux-gnu-2.35/lib COLLECT_GCC_OPTIONS='-v' '-march=rv64gc' '-mabi=lp64d' '-misa-spec=2.2' '-march=rv64imafdc' '-dumpdir' 'a.' /gnu/store/dl52ppai6dvdlw0jybx8qj5yvclhwqgl-gcc-cross-riscv64-linux-gnu-11.3.0/libexec/gcc/riscv64-linux-gnu/11.3.0/collect2 -plugin /gnu/store/dl52ppai6dvdlw0jybx8qj5yvclhwqgl-gcc-cross-riscv64-linux-gnu-11.3.0/libexec/gcc/riscv64-linux-gnu/11.3.0/liblto_plugin.so -plugin-opt=/gnu/store/dl52ppai6dvdlw0jybx8qj5yvclhwqgl-gcc-cross-riscv64-linux-gnu-11.3.0/libexec/gcc/riscv64-linux-gnu/11.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp/cc0p0r5t.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --eh-frame-hdr -melf64lriscv -dynamic-linker /gnu/store/f0rksvsrhzbn4ss4gd4p1s677awfzz08-glibc-cross-riscv64-linux-gnu-2.35/lib/ld-linux-riscv64-lp64d.so.1 crt1.o /gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/crti.o /gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/crtbegin.o -L/gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0 -L/gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/../../../../riscv64-linux-gnu/lib -L/gnu/store/f0rksvsrhzbn4ss4gd4p1s677awfzz08-glibc-cross-riscv64-linux-gnu-2.35/lib /tmp/ccLQFrsU.o -lgcc --push-state --as-needed -lgcc_s --pop-state -L/gnu/store/f0rksvsrhzbn4ss4gd4p1s677awfzz08-glibc-cross-riscv64-linux-gnu-2.35/lib -rpath=/gnu/store/f0rksvsrhzbn4ss4gd4p1s677awfzz08-glibc-cross-riscv64-linux-gnu-2.35/lib -rpath=/gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/riscv64-linux-gnu/lib -lgcc_s -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/crtend.o /gnu/store/rn39sf79yb5wcfclkfxzwz8r71jmwi6c-gcc-cross-riscv64-linux-gnu-11.3.0-lib/lib/gcc/riscv64-linux-gnu/11.3.0/crtn.o riscv64-linux-gnu-ld: cannot find crt1.o: No such file or directory collect2: error: ld returned 1 exit status ```
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ekaitz Zarraga <ekaitz@HIDDEN> Subject: bug#69394: Acknowledgement (cross-gcc-toolchain for riscv64 doesn't search crt1.o properly) Message-ID: <handler.69394.B.170889181022585.ack <at> debbugs.gnu.org> References: <35296725-34bd-074f-0582-b066c11b06dc@HIDDEN> X-Gnu-PR-Message: ack 69394 X-Gnu-PR-Package: guix Reply-To: 69394 <at> debbugs.gnu.org Date: Sun, 25 Feb 2024 20:11:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 69394 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 69394: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D69394 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#69394: cross-gcc-toolchain for riscv64 doesn't search crt1.o properly References: <35296725-34bd-074f-0582-b066c11b06dc@HIDDEN> In-Reply-To: <35296725-34bd-074f-0582-b066c11b06dc@HIDDEN> Resent-From: Jean-Pierre De Jesus Diaz <jean@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Thu, 29 Feb 2024 14:02:02 +0000 Resent-Message-ID: <handler.69394.B69394.17092152808638 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 69394 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 69394 <at> debbugs.gnu.org Cc: ekaitz@HIDDEN Received: via spool by 69394-submit <at> debbugs.gnu.org id=B69394.17092152808638 (code B ref 69394); Thu, 29 Feb 2024 14:02:02 +0000 Received: (at 69394) by debbugs.gnu.org; 29 Feb 2024 14:01:20 +0000 Received: from localhost ([127.0.0.1]:33921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rfgyO-0002FG-HM for submit <at> debbugs.gnu.org; Thu, 29 Feb 2024 09:01:20 -0500 Received: from mail-vk1-f176.google.com ([209.85.221.176]:42187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jean@HIDDEN>) id 1rfgyM-0002F3-QO for 69394 <at> debbugs.gnu.org; Thu, 29 Feb 2024 09:01:20 -0500 Received: by mail-vk1-f176.google.com with SMTP id 71dfb90a1353d-4cba3807eedso495195e0c.0 for <69394 <at> debbugs.gnu.org>; Thu, 29 Feb 2024 06:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1709215185; x=1709819985; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=r0F62jDSd9WipwN6O93tWlmwzH9EY0xrDoL+UPbvGqk=; b=PjrniCUQCfsH0U77YshfZZtxII39UMrfw1VBxaKhDE8KWEotUhnDYZig1Yc+IGPe2F bf/gkWvbw+JNZFmjPu3LS7KBj/6RS3bsPnPuSLOyvLxJzKSdnwYNsqz1SXsWd+E9C61N DgLpEeViu0hW5bo+rjP2ancCL7Z1/baq3YA/0SYdreM0ng4XytVZrX+ct9pCCbWq7P1r +dUy+FsDTfDhi0KyAYglnFL0ry6kScIrZkpg0zhdkQ2VLZZQzU7MnrSVND6GTCOod95Q miRs/Harr4hBZqpMQBgxaMQBoSD0GzM8mPiXs9N6LvPaMdjAXxqH+2vRwCWZDdJ55Dtt mbyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709215185; x=1709819985; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=r0F62jDSd9WipwN6O93tWlmwzH9EY0xrDoL+UPbvGqk=; b=jvQeSVaOhKIQNPgMO8TJUF0GFnN3txwUfImMwklQyTAlT/p7PQI8HGZOWR+EM/QkV4 LGf0+qggpi+jxrB1a+u2/Gja+rRUdhW+QPscrSrETzSoNMKXI6uqZg3hwCVeEbC5aafF QdALF9nFu+RJXWgNrimeeSGGulXgnZh1IqdGSeaqAx8yQ6VzGaJ3hWcw2Fyc5uwagxTH W73l+zLHxIZjBEhwzo6OwCs4F6oA0xF3E9I47cYMvhmiIZE2q8j7LA2IUkqer02N06VR zvCLzm+Ej8VRwEmrIUFgSzu/3nhI+fcWGTBrkLtMGGZkD0e3uyHJ1VHWgSsQ1fKY4WuX 7lAw== X-Gm-Message-State: AOJu0YxZjt+D9hKfIo2Vv28uBY4CfP02XirmuHe9EhEV/mnaBYa+fyfY mGLImhV83BoiNcO51nsuTuNm60exsYbVjFppJsgOTU/9h/8a/yokrTUMXuUWEeKLhgNnhOJwmfG MF0zcd7/0Q7dXXO/ZxbvqrdACyaZ62Y0A8DxqZ2LKz98I0OQ2f60= X-Google-Smtp-Source: AGHT+IFxS510qpvIwEcO3E854h1Wa73t5Nl7kQPT5O77q/qgfI8+AZBwuE5NpZk/IAolZMpH6agoBZodldgwhDZZrhI= X-Received: by 2002:a05:6122:3809:b0:4d3:3584:a345 with SMTP id em9-20020a056122380900b004d33584a345mr1002733vkb.7.1709215185636; Thu, 29 Feb 2024 05:59:45 -0800 (PST) MIME-Version: 1.0 From: Jean-Pierre De Jesus Diaz <jean@HIDDEN> Date: Thu, 29 Feb 2024 13:59:35 +0000 Message-ID: <CAG1gdUqip+HzcsMrqHXi7xQH1yzzrSxuGqCkKxpyY9aGDWZ9KA@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) 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 (-) Hello Ekaitz, This problem is also present for other targets such as AVR[1] as when I introduced the cross-gcc-toolchain procedure I didn't add the NATIVE-SEARCH-PATHS and SEARCH-PATHS fields for the toolchains as: 1. SEARCH-PATHS doesn't quite work with shells right now, as it is impossible to create a profile with cross packages. E.g. trying to use gcc-cross-avr-toolchain and unity built for AVR. So it is a bit useless, unless the toolchain is used inside of GNU Guix as a NATIVE-INPUT, but STANDARD-CROSS-PACKAGES takes care of this in GNU-BUILD-SYSTEM by adding cross-gcc and cross-libc as inputs. 2. The other solution is to use NATIVE-SEARCH-PATHS but when using mixed toolchains in a single environment all of the cross compilers will share this environment variable. For example: guix shell gcc-cross-avr-toolchain gcc-cross-i686-w64-mingw32-toolchain Would have the same CROSS_* environment variables and could mix things up. Ideally one should have per target cross variables, like, CROSS_AVR_* CROSS_I686_W64_MINGW32_*, but this is not done right now. Another option is to wrap every binary of the toolchain and set the CROSS_* variables so that they can find the C standard library includes and binaries without adding search paths to avoid collisions with other toolchains for the moment and since profiles don't support cross-packages yet I think it is a fair trade-off. I think I could update https://issues.guix.gnu.org/68058 to use the latter method. [1]: https://www.reddit.com/r/GUIX/comments/18rj84f/arduino_avr_compilation_help/ -- Jean-Pierre De Jesus DIAZ Foundation Devices, Inc.
X-Loop: help-debbugs@HIDDEN Subject: bug#69394: cross-gcc-toolchain for riscv64 doesn't search crt1.o properly Resent-From: Thiago Jung Bauermann <thiago.bauermann@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Tue, 09 Apr 2024 22:52:03 +0000 Resent-Message-ID: <handler.69394.B.17127030991353 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 69394 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 69394 <at> debbugs.gnu.org Cc: ekaitz@HIDDEN, jean@HIDDEN X-Debbugs-Original-To: Jean-Pierre De Jesus Diaz via Bug reports for GNU Guix <bug-guix@HIDDEN> X-Debbugs-Original-Cc: ekaitz@HIDDEN, Jean-Pierre De Jesus Diaz <jean@HIDDEN>, 69394 <at> debbugs.gnu.org Received: via spool by submit <at> debbugs.gnu.org id=B.17127030991353 (code B ref -1); Tue, 09 Apr 2024 22:52:03 +0000 Received: (at submit) by debbugs.gnu.org; 9 Apr 2024 22:51:39 +0000 Received: from localhost ([127.0.0.1]:51705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ruKJV-0000LM-DC for submit <at> debbugs.gnu.org; Tue, 09 Apr 2024 18:51:39 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <thiago.bauermann@HIDDEN>) id 1ruK2F-0007fV-OW for submit <at> debbugs.gnu.org; Tue, 09 Apr 2024 18:33:48 -0400 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 <thiago.bauermann@HIDDEN>) id 1ruK21-0000cm-OJ for bug-guix@HIDDEN; Tue, 09 Apr 2024 18:33:33 -0400 Received: from mail-il1-x135.google.com ([2607:f8b0:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <thiago.bauermann@HIDDEN>) id 1ruK1z-0007yP-W7 for bug-guix@HIDDEN; Tue, 09 Apr 2024 18:33:33 -0400 Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-36a06a409caso25174795ab.3 for <bug-guix@HIDDEN>; Tue, 09 Apr 2024 15:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712702010; x=1713306810; darn=gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=4rQXnDmgczeWqtTtuw0azkFyXglYmumdNQEd6pHwTy8=; b=Uyy9hq7EMZP7zPI3Mni9BMxm9HHzn5G3eGpHuPgiXFpK8C3wmpMniIeicaqrd0vU6C YKGpW29gyFSJLsLTFlkV9RZO4mf/A5vNsuom7w+BaBkELqteGwhfhATEvS4Kfb9tG6O/ eMu+fy8lDNpQvpeYpy0N/q+zC/TrMliKT8pjm6czYwUJECB0rHe9QydSbZXYNsxWMnTA ODioMPV8iECWhtsw7q/Bz75CI32zsLIB24rt71c+6NKPUidGXP0aII+LS/MekyxH9TYp SXT4ux0yLQnIImzzB0pIIrL6ADIwuM1uX2/5BK4qu/EM6ulQ+5mwsTs34feDUtJuxAow o7oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712702010; x=1713306810; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4rQXnDmgczeWqtTtuw0azkFyXglYmumdNQEd6pHwTy8=; b=wdEc9LI4BtuKWLuSho5p6dJL/qSOSsKbLIfjGDtaZxbZQZV8YnHKjF7J+o5Wa2O3Nv NiO7Zku78nNWYZTIWdCYkjwnHmWtxvbBxMMB4iAHE5xRHSZeUKoPNDHDBBZmwLuo3GAx heY7aphTiS4p7EzQ0w8+Vx5qRRxiSTvqv48o65jctEyNTztb7TjjcNvwUWlcDTf/kDSf 0drMUJUERo+cWIzS8IEHba9EIQ1ieyZFsM7XE6R90GHzr9fiprOE0HWY8JGSQ5pln62l vBTThqxuTypm4yYtqSMiRzfmbY3GY2T/zWQqqR++ss+r16Ujt0DDC5SQoXJ9+6VMOF1/ paPg== X-Gm-Message-State: AOJu0YyL2jc03gRX/ns4rJCueXO7ORyo3h22bvXeyTzFNYVYm8dZrjfD i+t9ThwHWo9i7zRTxuhj+LRsS3DuH2lHA4HL7WuOmwoik6OU8lbkwcE5qJpiye+vHqX7GxZPi/8 1 X-Google-Smtp-Source: AGHT+IGVyr+sRi7QUOjvMxmxkUDxLc5WKdwb6FlCacemveUEs8KY8NUZt7qQDCWM/JIdtaVMOOth2w== X-Received: by 2002:a05:6e02:18c7:b0:36a:353d:b511 with SMTP id s7-20020a056e0218c700b0036a353db511mr1923224ilu.11.1712702009885; Tue, 09 Apr 2024 15:33:29 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:40d9:8292:7448:72f1]) by smtp.gmail.com with ESMTPSA id m5-20020a63fd45000000b005f410b67e60sm3331517pgj.22.2024.04.09.15.33.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 15:33:29 -0700 (PDT) From: Thiago Jung Bauermann <thiago.bauermann@HIDDEN> In-Reply-To: <CAG1gdUqip+HzcsMrqHXi7xQH1yzzrSxuGqCkKxpyY9aGDWZ9KA@HIDDEN> (Jean-Pierre De Jesus Diaz via Bug reports for's message of "Thu, 29 Feb 2024 13:59:35 +0000") References: <35296725-34bd-074f-0582-b066c11b06dc@HIDDEN> <CAG1gdUqip+HzcsMrqHXi7xQH1yzzrSxuGqCkKxpyY9aGDWZ9KA@HIDDEN> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Tue, 09 Apr 2024 19:33:26 -0300 Message-ID: <87sezu88uh.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::135; envelope-from=thiago.bauermann@HIDDEN; helo=mail-il1-x135.google.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Tue, 09 Apr 2024 18:51:35 -0400 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: -0.0 (/) Hello Jean-Pierre, Today I ran into the issue reported in this bug with a custom toolchain package for aarch64-linux-gnu. I applied your patch from issue 68058 and that solved the problem! Thank you very much for your insights and proposed solutions. A couple of comments below: Jean-Pierre De Jesus Diaz via Bug reports for GNU Guix <bug-guix@HIDDEN> writes: > 2. The other solution is to use NATIVE-SEARCH-PATHS but when using > mixed toolchains > in a single environment all of the cross compilers will share this > environment variable. > > For example: > > guix shell gcc-cross-avr-toolchain gcc-cross-i686-w64-mingw32-toolchain > > Would have the same CROSS_* environment variables and could mix things up. > > Ideally one should have per target cross variables, like, CROSS_AVR_* > CROSS_I686_W64_MINGW32_*, but this is not done right now. > > Another option is to wrap every binary of the toolchain and set the > CROSS_* variables > so that they can find the C standard library includes and binaries > without adding > search paths to avoid collisions with other toolchains for the moment and since > profiles don't support cross-packages yet I think it is a fair trade-off. > > I think I could update https://issues.guix.gnu.org/68058 to use the > latter method. That would be awesome. If I understand correctly what you wrote, as things stand today many cross toolchains are unusable because of this problem (but not all? IIUC bare-metal cross toolchains aren't affected because they don't use crt*.o files, right?) So even your patch as it is currently proposed in issue 68058 would be an improvement over the status quo. IMHO, supporting more than one cross toolchain installed in the same profile would be interesting (I for one would find it useful to have both aarch64-linux-gnu and arm-linux-gnueabihf cross toolchains installed at the same time) but even if that is not possible yet, supporting just one cross toolchain installed in a profile would be an important improvement. :-) All this to say: unless there are other downsides to the patch in 68058, I think it should be committed. -- Thiago
X-Loop: help-debbugs@HIDDEN Subject: bug#69394: cross-gcc-toolchain for riscv64 doesn't search crt1.o properly Resent-From: Thiago Jung Bauermann <thiago.bauermann@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Tue, 09 Apr 2024 22:52:04 +0000 Resent-Message-ID: <handler.69394.B69394.17127030971328 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 69394 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 69394 <at> debbugs.gnu.org Cc: ekaitz@HIDDEN, jean@HIDDEN X-Debbugs-Original-To: Jean-Pierre De Jesus Diaz via Bug reports for GNU Guix <bug-guix@HIDDEN> X-Debbugs-Original-Cc: ekaitz@HIDDEN, Jean-Pierre De Jesus Diaz <jean@HIDDEN>, 69394 <at> debbugs.gnu.org Received: via spool by 69394-submit <at> debbugs.gnu.org id=B69394.17127030971328 (code B ref 69394); Tue, 09 Apr 2024 22:52:04 +0000 Received: (at 69394) by debbugs.gnu.org; 9 Apr 2024 22:51:37 +0000 Received: from localhost ([127.0.0.1]:51703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ruKJU-0000LC-IR for submit <at> debbugs.gnu.org; Tue, 09 Apr 2024 18:51:37 -0400 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]:52230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <thiago.bauermann@HIDDEN>) id 1ruK2B-0007fR-SZ for 69394 <at> debbugs.gnu.org; Tue, 09 Apr 2024 18:33:45 -0400 Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-36a3af91497so854535ab.0 for <69394 <at> debbugs.gnu.org>; Tue, 09 Apr 2024 15:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712702010; x=1713306810; darn=debbugs.gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=4rQXnDmgczeWqtTtuw0azkFyXglYmumdNQEd6pHwTy8=; b=QMoOjg2QWL9UptkpdyyfDJmAXTPcq1tV0Iu+l70KSPbyfdVAYIb44ztCD1Y2v6wueB tbweVrevKhPqp9rqJk4QwkWQS/b/mjnptq0MpUMTmMGXMi0MWahuUNs+wDFR5npbXPQF UqO/5WaSZuQ1F9qpQHJqubTaZwC2syLaLHysMWSavo/q2baJe6o/WgFRiDAp00kjcKHQ bmu/WejFo0KuyYPEsRmS/OcGso2e3HBBflYTHiBXkz1blBNlqKvj6saKP/z3SCRfVeq5 u9o0+szI8/LtRGC/JDVTWEGC7ZNyj5sOV4pYBQF6wksRaX+yQyUvBLSeLj723lnNgE3A GvlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712702010; x=1713306810; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4rQXnDmgczeWqtTtuw0azkFyXglYmumdNQEd6pHwTy8=; b=whpwNHdwB0iUlQXWoZ+YYI5xRJ6bUaVIny0B7vQXClCtDo7jZldldZViaAiS3lOoFT uTICx+2yMYEmk3STP08cDXUP4Muw9+xzuxP953i52Alc3UL0VAm7oSzCsbllbwbQzuVe SJBG0K6s5Wt8kENiJEzE5OQ4GhJ6LQVEdxIg8+AOL8OMe/XDWkc+iKOGmr0zKwEx9bAc rwesMNfCvQbLvvA+go2X/Eg4XDVsf4ACpzkHWp2q0l1Zhjfy7tM4z2ysGaxqP1WBYcOS UoQsXVl40IwCLCve61Oj55AOct8ihiE5Yr860H11HfpJG0GfXXmhKAzVQTbARnLnN6Sf qu4Q== X-Gm-Message-State: AOJu0Yy8hCzxXPmVw9E90PMsgWj5AzJJu2WfQkoCWJN1FkC/WdP/uYDk XTJBIvdrniRsfahVaEVJAYUOWa2VdjtX4PaxzwagcturIr/rEjbO3Ji6uBrzu/c= X-Google-Smtp-Source: AGHT+IGVyr+sRi7QUOjvMxmxkUDxLc5WKdwb6FlCacemveUEs8KY8NUZt7qQDCWM/JIdtaVMOOth2w== X-Received: by 2002:a05:6e02:18c7:b0:36a:353d:b511 with SMTP id s7-20020a056e0218c700b0036a353db511mr1923224ilu.11.1712702009885; Tue, 09 Apr 2024 15:33:29 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:40d9:8292:7448:72f1]) by smtp.gmail.com with ESMTPSA id m5-20020a63fd45000000b005f410b67e60sm3331517pgj.22.2024.04.09.15.33.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 15:33:29 -0700 (PDT) From: Thiago Jung Bauermann <thiago.bauermann@HIDDEN> In-Reply-To: <CAG1gdUqip+HzcsMrqHXi7xQH1yzzrSxuGqCkKxpyY9aGDWZ9KA@HIDDEN> (Jean-Pierre De Jesus Diaz via Bug reports for's message of "Thu, 29 Feb 2024 13:59:35 +0000") References: <35296725-34bd-074f-0582-b066c11b06dc@HIDDEN> <CAG1gdUqip+HzcsMrqHXi7xQH1yzzrSxuGqCkKxpyY9aGDWZ9KA@HIDDEN> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Tue, 09 Apr 2024 19:33:26 -0300 Message-ID: <87sezu88uh.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Tue, 09 Apr 2024 18:51:35 -0400 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 (-) Hello Jean-Pierre, Today I ran into the issue reported in this bug with a custom toolchain package for aarch64-linux-gnu. I applied your patch from issue 68058 and that solved the problem! Thank you very much for your insights and proposed solutions. A couple of comments below: Jean-Pierre De Jesus Diaz via Bug reports for GNU Guix <bug-guix@HIDDEN> writes: > 2. The other solution is to use NATIVE-SEARCH-PATHS but when using > mixed toolchains > in a single environment all of the cross compilers will share this > environment variable. > > For example: > > guix shell gcc-cross-avr-toolchain gcc-cross-i686-w64-mingw32-toolchain > > Would have the same CROSS_* environment variables and could mix things up. > > Ideally one should have per target cross variables, like, CROSS_AVR_* > CROSS_I686_W64_MINGW32_*, but this is not done right now. > > Another option is to wrap every binary of the toolchain and set the > CROSS_* variables > so that they can find the C standard library includes and binaries > without adding > search paths to avoid collisions with other toolchains for the moment and since > profiles don't support cross-packages yet I think it is a fair trade-off. > > I think I could update https://issues.guix.gnu.org/68058 to use the > latter method. That would be awesome. If I understand correctly what you wrote, as things stand today many cross toolchains are unusable because of this problem (but not all? IIUC bare-metal cross toolchains aren't affected because they don't use crt*.o files, right?) So even your patch as it is currently proposed in issue 68058 would be an improvement over the status quo. IMHO, supporting more than one cross toolchain installed in the same profile would be interesting (I for one would find it useful to have both aarch64-linux-gnu and arm-linux-gnueabihf cross toolchains installed at the same time) but even if that is not possible yet, supporting just one cross toolchain installed in a profile would be an important improvement. :-) All this to say: unless there are other downsides to the patch in 68058, I think it should be committed. -- Thiago
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.