Build issues gcc10

Adrian Schmutzler mail at adrianschmutzler.de
Sun Sep 12 07:11:07 PDT 2021


Hi,

I'm having build issues with master and (default) gcc10 on ipq targets.

Build fails with:

true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-O2
-I/data/openwrt/staging_dir/host/include " "CXXFLAGS=-g -O2"
"CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-Os -pipe -fno-caller-saves -fno-plt
-fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro" "INSTALL=/data/openwrt/staging_dir/host/bin/install
-c" "INSTALL_DATA=/data/openwrt/staging_dir/host/bin/install -c -m 644"
"INSTALL_PROGRAM=/data/openwrt/staging_dir/host/bin/install -c"
"INSTALL_SCRIPT=/data/openwrt/staging_dir/host/bin/install -c"
"LDFLAGS=-static-libstdc++ -static-libgcc " "LIBCFLAGS=-O2
-I/data/openwrt/staging_dir/host/include " "LIBCFLAGS_FOR_TARGET=-Os -pipe
-fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable
-Wno-error=unused-result -Wformat -Werror=format-security -fstack-protector
-D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" "MAKE=make"
"MAKEINFO=/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.
3.0_musl_eabi/gcc-10.3.0/missing makeinfo --split-size=5000000
--split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash"
"EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS="
"exec_prefix=/data/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gc
c-10.3.0_musl_eabi"
"infodir=/data/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10
.3.0_musl_eabi/share/info"
"libdir=/data/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.
3.0_musl_eabi/lib"
"prefix=/data/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.
3.0_musl_eabi"
"tooldir=/data/openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10
.3.0_musl_eabi/arm-openwrt-linux-muslgnueabi" "AR=ar" "AS=as" "CC=gcc"
"CXX=g++" "LD=ld" "LIBCFLAGS=-O2 -I/data/openwrt/staging_dir/host/include "
"NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[5]: Leaving directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/zlib'
make[5]: Entering directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/libbacktrace'
make  all-am
make[6]: Entering directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/libbacktrace'
true  DO=all multi-do # make
make[6]: Leaving directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/libbacktrace'
make[5]: Leaving directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/libbacktrace'
make[5]: Entering directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[5]: Leaving directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/libcpp'
make[5]: Entering directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/libdecnumber'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/libdecnumber'
make[5]: Entering directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/gcc'
/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_e
abi/gcc-10.3.0-final/./gcc/xgcc
-B/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl
_eabi/gcc-10.3.0-final/./gcc/ -xc++ -nostdinc /dev/null -S -o /dev/null
-fself-test=/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-1
0.3.0_musl_eabi/gcc-10.3.0/gcc/testsuite/selftests
xgcc: fatal error: cannot execute 'cc1plus': execvp: No such file or
directory
compilation terminated.
make[5]: ***
[/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0/gcc/cp/Make-lang.in:178: s-selftest-c++] Error 1
make[5]: Leaving directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final/gcc'
make[4]: *** [Makefile:4397: all-gcc] Error 2
make[4]: Leaving directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final'
make[3]: *** [Makefile:961: all] Error 2
make[3]: Leaving directory
'/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_
eabi/gcc-10.3.0-final'
make[2]: *** [Makefile:91:
/data/openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.3.0_musl_e
abi/gcc-10.3.0-final/.built] Error 2
make[2]: Leaving directory '/data/openwrt/toolchain/gcc/final'
time: toolchain/gcc/final/compile#1.29#0.21#1.47
    ERROR: toolchain/gcc/final failed to build.
make[1]: *** [toolchain/Makefile:97: toolchain/gcc/final/compile] Error 1
make[1]: Leaving directory '/data/openwrt'
make: *** [/data/openwrt/include/toplevel.mk:230: toolchain/compile] Error 2


This happens both on my existing build system (Debian 10, after make
dirclean) as well as on a newly set up "fresh" Debian 11 system.
Tested with default config (i.e. not buildbot).

Any ideas before I have to start tearing things apart?

Best

Adrian




More information about the openwrt-devel mailing list