Building LE 9.2.0 for Raspberry Pi 4 on Arch Linux x86_64 the build fails for binutils with the following error (see this pastebin link for full log).
I've built the current RPi4 master, v9.1.501 and v9.1.502 on this machine without any issues and the images work just fine.
I used 'git checkout 9.2.0'.
I tried a 'make distclean' but the issue remains.
Assuming it's me that's doing something wrong (I'm definitely not an expert here), any ideas where I'm going wrong and how to fix it?
Cheers,
Simon
Code
/bin/sh ./libtool --tag=CC --mode=link /home/simon/AdditionalStorage/git/LibreELEC.tv/build.LibreELEC-RPi4.arm-9.2-devel/toolchain/bin/armv8a-libreelec-linux-gnueabi-gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -I/home/simon/AdditionalStorage/git/LibreELEC.tv/build.LibreELEC-RPi4.arm-9.2-devel/binutils-2.32/binutils/../zlib -march=armv8-a+crc -mtune=cortex-a53 -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -fomit-frame-pointer -Wall -pipe -Os -march=armv8-a+crc -mtune=cortex-a53 -Wl,--as-needed -fuse-ld=gold -o strings strings.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a
libtool: link: /home/simon/AdditionalStorage/git/LibreELEC.tv/build.LibreELEC-RPi4.arm-9.2-devel/toolchain/bin/armv8a-libreelec-linux-gnueabi-gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -I/home/simon/AdditionalStorage/git/LibreELEC.tv/build.LibreELEC-RPi4.arm-9.2-devel/binutils-2.32/binutils/../zlib -march=armv8-a+crc -mtune=cortex-a53 -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -fomit-frame-pointer -Wall -pipe -Os -march=armv8-a+crc -mtune=cortex-a53 -Wl,--as-needed -fuse-ld=gold -o strings strings.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a -L/mnt/hdd/crypt/sdc7/simon/git/LibreELEC.tv/build.LibreELEC-RPi4.arm-9.2-devel/binutils-2.32/.armv8a-libreelec-linux-gnueabi/zlib -lz ../libiberty/libiberty.a
/mnt/hdd/crypt/sdc7/simon/git/LibreELEC.tv/build.LibreELEC-RPi4.arm-9.2-devel/toolchain/bin/../lib/gcc/armv8a-libreelec-linux-gnueabi/8.3.0/../../../../armv8a-libreelec-linux-gnueabi/bin/ld.gold: error: cannot find -lz
../bfd/.libs/libbfd.a(compress.o):compress.c:function decompress_contents: error: undefined reference to 'inflateInit_'
../bfd/.libs/libbfd.a(compress.o):compress.c:function decompress_contents: error: undefined reference to 'inflateEnd'
../bfd/.libs/libbfd.a(compress.o):compress.c:function decompress_contents: error: undefined reference to 'inflate'
../bfd/.libs/libbfd.a(compress.o):compress.c:function decompress_contents: error: undefined reference to 'inflateReset'
../bfd/.libs/libbfd.a(compress.o):compress.c:function bfd_compress_section_contents: error: undefined reference to 'compressBound'
../bfd/.libs/libbfd.a(compress.o):compress.c:function bfd_compress_section_contents: error: undefined reference to 'compress'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:933: strings] Error 1
Display More