I am trying to build from master for ipq806x
or for ramips
but am getting an error building the toolchain. Tried several times now. Any thoughts are welcomed.
Link to make
log.
I am trying to build from master for ipq806x
or for ramips
but am getting an error building the toolchain. Tried several times now. Any thoughts are welcomed.
Link to make
log.
Shamelessly bumping my own thread with this update: compiling this on an entirely different machine gave the same result. I believe that rules out hardware issues. I don't post the entire log but the part that ended in errors is below. Any thoughts are still welcomed.
...
make[9]: Leaving directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/gprof'
make[8]: Leaving directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/gprof'
make[7]: Leaving directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/gprof'
make[6]: Leaving directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/gprof'
make[6]: Entering directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/intl'
make[6]: Nothing to be done for 'install'.
make[6]: Leaving directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/intl'
make[6]: Entering directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/libctf'
make[7]: Entering directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/libctf'
/usr/bin/mkdir -p '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/ipkg-install/usr/lib'
/bin/sh ./libtool --mode=install /scratch/openwrt/staging_dir/host/bin/install -c libctf.la libctf-nobfd.la '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/ipkg-install/usr/lib'
libtool: install: warning: relinking `libctf.la'
libtool: install: (cd /scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/libctf; /bin/sh /scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/libctf/libtool --tag CC --mode=relink arm-openwrt-linux-muslgnueabi-gcc -std=gnu99 -Wall -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -pedantic -Wno-long-long -I./../zlib -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -I/scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/include -I/scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/include -fmacro-prefix-map=/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37=binutils-2.37 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -version-info 0:0:0 -Wl,--version-script=./libctf.ver -L/scratch/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/usr/lib -L/scratch/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/lib -L/scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/lib -L/scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/lib -Wl,-rpath-link=/scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/lib -znow -zrelro -o libctf.la -rpath /usr/lib libctf_la-ctf-archive.lo libctf_la-ctf-dump.lo libctf_la-ctf-create.lo libctf_la-ctf-decl.lo libctf_la-ctf-error.lo libctf_la-ctf-hash.lo libctf_la-ctf-labels.lo libctf_la-ctf-dedup.lo libctf_la-ctf-link.lo libctf_la-ctf-lookup.lo libctf_la-ctf-open.lo libctf_la-ctf-serialize.lo libctf_la-ctf-sha1.lo libctf_la-ctf-string.lo libctf_la-ctf-subr.lo libctf_la-ctf-types.lo libctf_la-ctf-util.lo libctf_la-ctf-qsort_r.lo libctf_la-ctf-open-bfd.lo ../bfd/libbfd.la -L/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/libctf/../libiberty/pic -liberty -L./../zlib -lz -inst-prefix-dir /scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/ipkg-install)
libtool: relink: arm-openwrt-linux-muslgnueabi-gcc -shared -fPIC -DPIC .libs/libctf_la-ctf-archive.o .libs/libctf_la-ctf-dump.o .libs/libctf_la-ctf-create.o .libs/libctf_la-ctf-decl.o .libs/libctf_la-ctf-error.o .libs/libctf_la-ctf-hash.o .libs/libctf_la-ctf-labels.o .libs/libctf_la-ctf-dedup.o .libs/libctf_la-ctf-link.o .libs/libctf_la-ctf-lookup.o .libs/libctf_la-ctf-open.o .libs/libctf_la-ctf-serialize.o .libs/libctf_la-ctf-sha1.o .libs/libctf_la-ctf-string.o .libs/libctf_la-ctf-subr.o .libs/libctf_la-ctf-types.o .libs/libctf_la-ctf-util.o .libs/libctf_la-ctf-qsort_r.o .libs/libctf_la-ctf-open-bfd.o -L/scratch/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/usr/lib -L/scratch/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/lib -L/scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/lib -L/scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/lib -L/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/ipkg-install/usr/lib -L/usr/lib -lbfd -L/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/bfd/../libiberty/pic -L/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/zlib -L/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/libctf/../libiberty/pic -liberty -lz -mfloat-abi=hard -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,--version-script=./libctf.ver -Wl,-rpath-link=/scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib/libintl-stub/lib -Wl,-soname -Wl,libctf.so.0 -o .libs/libctf.so.0.0.0
/scratch/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/11.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: /usr/lib/libiberty.a: error adding symbols: file format not recognized
collect2: error: ld returned 1 exit status
libtool: install: error: relink `libctf.la' with the above command before installing it
make[7]: *** [Makefile:561: install-libLTLIBRARIES] Error 1
make[7]: Leaving directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/libctf'
make[6]: *** [Makefile:1245: install-am] Error 2
make[6]: Leaving directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/libctf'
make[5]: *** [Makefile:10547: install-libctf] Error 2
make[5]: Leaving directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37'
make[4]: *** [Makefile:2339: install] Error 2
make[4]: Leaving directory '/scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37'
make[3]: *** [Makefile:143: /scratch/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/binutils-2.37/.built] Error 2
make[3]: Leaving directory '/scratch/openwrt/package/devel/binutils'
time: package/devel/binutils/compile#1.31#0.24#1.45
ERROR: package/devel/binutils failed to build.
make[2]: *** [package/Makefile:116: package/devel/binutils/compile] Error 1
make[2]: Leaving directory '/scratch/openwrt'
make[1]: *** [package/Makefile:110: /scratch/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/scratch/openwrt'
make: *** [/scratch/openwrt/include/toplevel.mk:230: world] Error 2
It's odd... I can build v21.02.1 using the same .config
successfully, but I cannot build from master.
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
cp /incoming/openwrt/diffconfig-AP-R7800 .config
./scripts/feeds install -a ; ./scripts/feeds update -a
git fetch --tags
git checkout v21.02.1
make clean && make defconfig && make
make[1] world
make[2] tools/compile
...
make[2] json_overview_image_info
make[2] checksum
Yet:
git checkout master
make clean && make defconfig && make
...
make[3] -C package/system/rpcd compile
ERROR: package/devel/binutils failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/scratch/openwrt/include/toplevel.mk:230: world] Error 1
It's the same error as I reported above.
EDIT: Finally found some confirmation of this, https://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg60473.html
EDIT2: Opened FS#4149