From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: Re: [PATCH 01/28] gcc: toolchain stage 2: Set sysroot to /tools_${arch} Date: Sat, 05 Feb 2022 18:13:54 +0000 Message-ID: <62a2bdb7-cf14-33bf-c9ae-af125e4bcbb1@ipfire.org> In-Reply-To: <20220204164748.315559-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8659821258956793074==" List-Id: --===============8659821258956793074== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Michael, trying to compile the new toolchain on my workstation (running openSUSE Leap = 15.3, kernel 5.3.18-150300.59.43-default, GCC 11 installed), gcc fails to build: > Checking for necessary space on disk = = = [ DONE ] > chroot: failed to run command 'env': No such file or directory > Toolchain compilation (x86_64) = = = =20 > stage1 = = = [ DONE ] > binutils (2.37) = = PASS=3D1[ 37= ][ DONE ] > gcc (11.1.0) = = PASS=3D1[ 4:52= ][ FAIL ] >=20 > checking for sys/auxv.h... no > checking for sys/mman.h... no > checking for grep that handles long lines and -e... /bin/grep > checking for egrep... /bin/grep -E > checking for ANSI C header files... no > checking whether decimal floating point is supported... no > checking whether fixed-point is supported... no > checking whether the compiler is configured for setjmp/longjmp exceptio= ns... no > checking for CET support... yes > checking if the linker (/home/pmu/IPFire-development/ipfire-2.x/build/u= sr/src/gcc-build/./gcc/collect-ld) is GNU ld... yes > checking for thread model used by GCC... single > checking whether assembler supports CFI directives... yes > checking for target glibc version... 2.11 > 2.11 > checking for __attribute__((visibility("hidden")))... yes > checking for .cfi_sections .debug_frame... yes > checking whether the target assembler supports thread-local storage... = yes > checking whether the thread-local storage support is from emutls... no > checking if the assembler supports AVX... yes > checking for init priority support... yes > configure: updating cache ./config.cache > configure: creating ./config.status > config.status: creating Makefile > config.status: creating auto-target.h > config.status: executing default commands > /home/pmu/IPFire-development/ipfire-2.x/build/usr/src/gcc-11.1.0/libgcc= /../config-ml.in: line 133: enable_libstdc++_v3=3Dno: command not found > make[2]: Leaving directory '/home/pmu/IPFire-development/ipfire-2.x/bui= ld/usr/src/gcc-build' > make[1]: *** [Makefile:947: all] Error 2 > make[1]: Leaving directory '/home/pmu/IPFire-development/ipfire-2.x/bui= ld/usr/src/gcc-build' > make: *** [gcc:251: /home/pmu/IPFire-development/ipfire-2.x/log/gcc-11.= 1.0-tools1] Error 2 >=20 > ERROR: Building gcc PASS=3D1 = = = [ FAIL ] > Check /home/pmu/IPFire-development/ipfire-2.x/log/_build.toolchain.log = for errors if applicable = = [ FAIL ] In the logs, I also noticed this: > make[4]: Entering directory '/home/pmu/IPFire-development/ipfire-2.x/build/= usr/src/gcc-build/libcc1' > /bin/sh ./libtool --tag=3DCXX --mode=3Dcompile g++ -DHAVE_CONFIG_H -I. -= I/home/pmu/IPFire-development/ipfire-2.x/build/usr/src/gcc-11.1.0/libcc1 -I = /home/pmu/IPFire-development/ipfire-2.x/build/usr/src/gcc-11.1.0/libcc1/.. > /include -I /home/pmu/IPFire-development/ipfire-2.x/build/usr/src/gcc-11.1.= 0/libcc1/../libgcc -I ../gcc -I/home/pmu/IPFire-development/ipfire-2.x/build/= usr/src/gcc-11.1.0/libcc1/../gcc -I/home/pmu/IPFire-developme > nt/ipfire-2.x/build/usr/src/gcc-build/./gmp -I/home/pmu/IPFire-development/= ipfire-2.x/build/usr/src/gcc-11.1.0/gmp -I/home/pmu/IPFire-development/ipfire= -2.x/build/usr/src/gcc-build/./mpfr/src -I/home/pmu/IPFire-dev > elopment/ipfire-2.x/build/usr/src/gcc-11.1.0/mpfr/src -I/home/pmu/IPFire-de= velopment/ipfire-2.x/build/usr/src/gcc-11.1.0/mpc/src -W -Wall -fvisibilit= y=3Dhidden -fcf-protection -O2 -pipe -Wall -fPIC -m64 -MT findcomp.lo -MD -M= P - > MF .deps/findcomp.Tpo -c -o findcomp.lo /home/pmu/IPFire-development/ipfire= -2.x/build/usr/src/gcc-11.1.0/libcc1/findcomp.cc > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I/home/pmu/IPFire-development/i= pfire-2.x/build/usr/src/gcc-11.1.0/libcc1 -I /home/pmu/IPFire-development/ipf= ire-2.x/build/usr/src/gcc-11.1.0/libcc1/../include -I /home/fluke/deve > l/IPFire-development/ipfire-2.x/build/usr/src/gcc-11.1.0/libcc1/../libgcc -= I ../gcc -I/home/pmu/IPFire-development/ipfire-2.x/build/usr/src/gcc-11.1.0/l= ibcc1/../gcc -I/home/pmu/IPFire-development/ipfire-2.x/build/usr/src/g > cc-build/./gmp -I/home/pmu/IPFire-development/ipfire-2.x/build/usr/src/gcc-= 11.1.0/gmp -I/home/pmu/IPFire-development/ipfire-2.x/build/usr/src/gcc-build/= ./mpfr/src -I/home/pmu/IPFire-development/ipfire-2.x/build/usr > /src/gcc-11.1.0/mpfr/src -I/home/pmu/IPFire-development/ipfire-2.x/build/us= r/src/gcc-11.1.0/mpc/src -W -Wall -fvisibility=3Dhidden -fcf-protection -O2 -= pipe -Wall -fPIC -m64 -MT findcomp.lo -MD -MP -MF .deps/findcomp.Tpo -c /home= /fl > uke/devel/IPFire-development/ipfire-2.x/build/usr/src/gcc-11.1.0/libcc1/fin= dcomp.cc -fPIC -DPIC -o .libs/findcomp.o > g++: error: unrecognized command line option '-fcf-protection'; did you mea= n '-fstack-protector'? > make[4]: *** [Makefile:604: findcomp.lo] Error 1 > make[4]: Leaving directory '/home/pmu/IPFire-development/ipfire-2.x/build/u= sr/src/gcc-build/libcc1' > make[3]: *** [Makefile:441: all] Error 2 > make[3]: Leaving directory '/home/pmu/IPFire-development/ipfire-2.x/build/u= sr/src/gcc-build/libcc1' > make[2]: *** [Makefile:12396: all-libcc1] Error 2 > make[2]: *** Waiting for unfinished jobs.... This leaves me a bit puzzled, as I thought "-fcf-protection" used to work bef= ore. What am I doing wrong? :-) Thanks, and best regards, Peter M=C3=BCller --===============8659821258956793074==--