From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 31 Mar 2023 10:45:17 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1piANo-003vsH-L0 for lore@lore.pengutronix.de; Fri, 31 Mar 2023 10:45:17 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1piANp-0006Vw-0G; Fri, 31 Mar 2023 10:45:17 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1piANg-0006VG-BR; Fri, 31 Mar 2023 10:45:08 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1piANf-007xJD-NG; Fri, 31 Mar 2023 10:45:07 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1piANe-004t5O-M7; Fri, 31 Mar 2023 10:45:06 +0200 Date: Fri, 31 Mar 2023 10:45:06 +0200 From: Michael Olbrich To: Luis =?iso-8859-1?Q?Gr=FCnewald?= Message-ID: Mail-Followup-To: Luis =?iso-8859-1?Q?Gr=FCnewald?= , ptxdist@pengutronix.de References: <1550513112.87110.1680075606632.JavaMail.zimbra@ppc-ag.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1550513112.87110.1680075606632.JavaMail.zimbra@ppc-ag.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [ptxdist] OSELAS Toolchain for ARM-v7em with newlib and c++ support X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hi, On Wed, Mar 29, 2023 at 09:40:06AM +0200, Luis Grünewald wrote: > I am trying to build the Oselas-Toolchain using the following setup: > > - HOST-OS: Ubuntu 22.04.2 LTS > - HOST-CPU: 11th Gen Intel(R) Core (TM) i7-1165G7 @ 2.80GHz × 8 > - Osleas project: OSELAS.Toolchain-2022.10.0 (https://git.pengutronix.de/cgit/OSELAS.Toolchain/tag/?h=v2022.10.0) > - Ptxdist Version: ptxdist-2023.01.0 (https://public.pengutronix.de/software/ptxdist/) Not the cause of your specific problem, but in general, you should always use the ptxdist version that is specified in the ptxconfig files. 2022.10.0 in this case. Using a newer version can cause problems. > > To build the toolchain I am doing the following steps: > > 1. Selecting the ptxconfig : arm-v7em-eabihf_gcc-12.2.1_newlib-4.2.0.20211231_binutils-2.39 > 2. using "ptxdist migrate" to update .ptxconfg > 3. Since I need support for C++, I add C++ as an "Additional supported language" using "ptxdist menuconfig" > 4. unsing the "build_one.sh arm-v7em-eabihf_gcc-12.2.1_newlib-4.2.0.20211231_binutils-2.39" to build the toolchain > > build_one.sh fails with the following error: > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > checking whether printf hooks are supported... no > checking whether nl_langinfo should be used... no > checking whether nl_langinfo should be used for wide char locale info... yes > checking what to include in include/gstdint.h... stdint.h (already complete) > checking for GNU c++filt... /usr/bin/c++filt > checking for shared libgcc... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. > no > checking whether localeconv should be used... make[1]: *** [Makefile:12209: configure-target-libstdc++-v3] Error 1 > make[1]: *** Waiting for unfinished jobs.... > . > . > . > . > config.status: executing depfiles commands > config.status: executing libtool commands > make[1]: Leaving directory '/home/l.gruenewald/projects/m4Communication/toolchain_test/test3/OSELAS.Toolchain-2022.10.0/platform-arm-v7em-eabihf-gcc-12.2.1-newlib-4.2.0.20211231-binutils-2.39/build-cross/gcc-12-20221022-build' > make: *** [Makefile:1027: all] Error 2 > make: Leaving directory '/home/l.gruenewald/projects/m4Communication/toolchain_test/test3/OSELAS.Toolchain-2022.10.0/platform-arm-v7em-eabihf-gcc-12.2.1-newlib-4.2.0.20211231-binutils-2.39/build-cross/gcc-12-20221022-build' > make: *** [/home/l.gruenewald/projects/m4Communication/toolchain_test/test3/ptxdist-2023.01.0/rules/post/ptxd_make_world_compile.make:20: /home/l.gruenewald/projects/m4Communication/toolchain_test/test3/OSELAS.Toolchain-2022.10.0/platform-arm-v7em-eabihf-gcc-12.2.1-newlib-4.2.0.20211231-binutils-2.39/state/cross-gcc.compile] Error 2 > make: *** [/home/l.gruenewald/projects/m4Communication/toolchain_test/test3/OSELAS.Toolchain-2022.10.0/build_all_v2.mk:44: gstate/arm-v7em-eabihf-gcc-12.2.1-newlib-4.2.0.20211231-binutils-2.39.build] Fehler 2 > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > > More Errors can be found in . > Here is a link to my libstdc++-v3/config.log : https://controlc.com/a342dcd8 > > Building the toolchain using the "arm-v7em-eabihf_gcc-12.2.1_newlib-4.2.0.20211231_binutils-2.39.ptxconfig" without any changes works fine. > But after using "debain/bin/build.sh" to build the .deb package, in the /bin folder the link called "arm-v7em-eabihf-g++" is broken. > > Do you have any suggestion how to build the Oslastoolchain using the "arm-v7em-eabihf_gcc-12.2.1_newlib-4.2.0.20211231_binutils-2.39.ptxconfig" so that in the end the "g++" compiler will be included ? Sorry, not really. The C++ compiler is disabled for all newlib toolchains. I think there is something broken there in general, but I've not looked into that for a long time. Michael -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |