From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UHAuDFNYhWWadAAAkFu2QA (envelope-from ) for ; Fri, 22 Dec 2023 10:35:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8D1dBlNYhWVKuwAAqHPOHw (envelope-from ) for ; Fri, 22 Dec 2023 10:35:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-23sep header.b=uVFj4woz; 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=pass (policy=quarantine) header.from=vodafonemail.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703237715; 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=TWM6ExIK4/pMhIZWJgDuT8QRqBZtqO+7IanvwUe7mWQ=; b=MOX9123D9jW2uU0JyMeK4/qXEdZYQTVWbiTPCBmgJ4XzTpS9BdAUb9/ac1DSdsINNzFZfQ GjTHC8tnwkvLRUBXROQhRyqU8U6XCu1qc+7cVi6hliriSbbnHbsFYm9482pJbVhRgHINqO rskQNTiQN8SVxvtU3TsOcHsH3DknGXPuE2hEMCenhTPKAR7ELXI7+2q1MpcFZJK8ZVSgBW r4XOH4iYRDLIjFf6hhjjikPu+vTP2i4JZyrhlScpjfVnNlN045dp6eiabCNwH8mA3gmLKF /X24DUZy1y92P5XmjMQzDRatBZMUv1Rt5SxM6D7gx8Q+czFYzu9MZmikk52oKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=vodafonemail.de header.s=vfde-mb-mr2-23sep header.b=uVFj4woz; 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=pass (policy=quarantine) header.from=vodafonemail.de ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703237715; a=rsa-sha256; cv=none; b=Nn85Detu6kOVzAiRVbg6/SKF74XoCHXnzaZm4Qd21qg7V4XWFxJUYsjk/VRH9yW62idmuD 4gIH0CxaIoWEtGAwgLVi6yvKJSYhjyxPi+D/W4lrdyuekgeOZ1RHbdzDaw5jaP1TpbuX6A D80Rax//qrdEz9vROlp/HkpwPlZKWXJ+SQDe2Im3nMp/fSV1GGWjcYqJk6Xt4G8D+g1HFl hA0n/bFVvz3rI3Dbj1jlmcvk029YDe5+W60OKN06U7vQ98GgnNvL8rlofPL4C09Z4X6V3s f3J182DuvN+vLn3n6VSD8iMA2PCK3GnbjQlqdMeoJVyNFTK/pb61RGVyzXZs9w== 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 E9B5C363A1 for ; Fri, 22 Dec 2023 10:35:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGbvI-0007Gq-Vm; Fri, 22 Dec 2023 04:34:29 -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 1rGbvG-0007Ge-PC for guix-devel@gnu.org; Fri, 22 Dec 2023 04:34:27 -0500 Received: from mr5.vodafonemail.de ([145.253.228.165]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGbvB-0007vP-0M for guix-devel@gnu.org; Fri, 22 Dec 2023 04:34:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-23sep; t=1703237650; bh=TWM6ExIK4/pMhIZWJgDuT8QRqBZtqO+7IanvwUe7mWQ=; h=Message-ID:Date:User-Agent:Subject:To:References:Content-Language: From:In-Reply-To:Content-Type:From; b=uVFj4woz2DWJvGlOK1LixqJK/SU06ygiH+wnXhjz268k8a0mrWgQ1c2Xel1GtdZx+ PXMA92rrMnBpUh+r+JaT5op3eArFvCTxYt7UMcOsi3zsdIEWr9AP7TmdlTLJGcLYEx drnLBNNoLJVyhWjJUqMIQ2YzoX7PMmA3DjKJXcEM= Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr5.vodafonemail.de (Postfix) with ESMTPS id 4SxMZB43Htz207Z; Fri, 22 Dec 2023 09:34:10 +0000 (UTC) Received: from [10.11.12.13] (aftr-62-216-202-135.dynamic.mnet-online.de [62.216.202.135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4SxMZ30lBrz9tcj; Fri, 22 Dec 2023 09:34:00 +0000 (UTC) Message-ID: <5cc66f03-9068-2f67-0ec3-2c0f5c563898@vodafonemail.de> Date: Fri, 22 Dec 2023 10:33:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: A different way to build GCC to overcome issues, especially with C++ for embedded systems To: Attila Lendvai Cc: guix-devel@gnu.org References: <0db7f8a7-906f-6552-26e8-93162f6d266e@vodafonemail.de> Content-Language: en-US From: Stefan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-purgate-type: clean X-purgate: clean X-purgate-size: 3249 X-purgate-ID: 155817::1703237646-6D7FCBDE-57888F28/0/0 Received-SPF: pass client-ip=145.253.228.165; envelope-from=stefan-guix@vodafonemail.de; helo=mr5.vodafonemail.de X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 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, NICE_REPLY_A=-3.814, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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-Spam-Score: -9.84 X-Spam-Score: -9.84 X-Migadu-Queue-Id: E9B5C363A1 X-Migadu-Scanner: mx10.migadu.com X-TUID: z0IVEUnxTlYP Hi Attila! >i tried with your gcc … 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/…-newlib-arm-none-eabi-4.3.0/arm-none-eabi/lib/nosys.specs Hm, it might be necessary to add that path per default to COMPILER_PATH as well with a -B option. This path currently only appears under LIBRARY_PATH, which seems to not be searched for spec files. $ arm-none-eabi-g++ -v -E -xc++ - < /dev/null Using built-in specs. COLLECT_GCC=/gnu/store/…-gcc12-cross-newlib-arm-none-eabi-toolchain-12.2.0/bin/arm-none-eabi-g++ Target: arm-none-eabi Configured with: Thread model: single Supported LTO compression algorithms: zlib gcc version 12.2.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-E' '-mcpu=arm7tdmi' '-mfloat-abi=soft' '-marm' '-mlibarch=armv4t' '-march=armv4t' /gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0/libexec/gcc/arm-none-eabi/12.2.0/cc1plus -E -quiet -v -D__USES_INITFINI__ - -mcpu=arm7tdmi -mfloat-abi=soft -marm -mlibarch=armv4t -march=armv4t -dumpbase - ignoring nonexistent directory "/gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0-lib/lib/gcc/arm-none-eabi/12.2.0/../../../../../../../arm-none-eabi/include" #include "..." search starts here: #include <...> search starts here: /gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0/include-c++ /gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0/include-c++/arm-none-eabi /gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0/include-c++/backward /gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0-lib/lib/gcc/arm-none-eabi/12.2.0/include /gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0-lib/include /gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0-lib/lib/gcc/arm-none-eabi/12.2.0/include-fixed /gnu/store/…-newlib-arm-none-eabi-4.3.0/arm-none-eabi/include End of search list. # 0 "" # 0 "" # 0 "" # 1 "" COMPILER_PATH=/gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0/libexec/gcc/arm-none-eabi/12.2.0/:/gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0/libexec/gcc/arm-none-eabi/12.2.0/:/gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0/libexec/gcc/arm-none-eabi/:/gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0-lib/lib/gcc/arm-none-eabi/12.2.0/:/gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0-lib/lib/gcc/arm-none-eabi/ LIBRARY_PATH=/gnu/store/…-gcc12-cross-newlib-arm-none-eabi-12.2.0-lib/lib/gcc/arm-none-eabi/12.2.0/:/gnu/store/…-newlib-arm-none-eabi-4.3.0/arm-none-eabi/lib/ COLLECT_GCC_OPTIONS='-v' '-E' '-mcpu=arm7tdmi' '-mfloat-abi=soft' '-marm' '-mlibarch=armv4t' '-march=armv4t' You may want to try to add -B /gnu/store/…-newlib-arm-none-eabi-4.3.0/arm-none-eabi/lib to the linker options or to add COMPILER_PATH=/gnu/store/…-newlib-arm-none-eabi-4.3.0/arm-none-eabi/lib in front of your command. Tell me about your results. I'm about to update to GCC 13. There is some issue to work around (which smells like a similar one in Gentoo¹), I’ll see if I can add the newlib path to the COMPILER_PATH as well. Bye Stefan ¹ https://bugs.gentoo.org/905118