Hi guys,
I was unable to build crossgcc. The important tail end of build log is included at the end.
I couldn't figure out why. There should be no binutils-2.33.1 anywhere on my system. The build script is pulling in 2.41, and my host binutils is 2.40.
Appreciate any help. Thanks Keith
---8<---
make[2]: Entering directory '/usr/src/coreboot/util/crossgcc/build-x86_64-elf-BINUTILS/zlib' make[2]: *** No rule to make target '../../binutils-2.33.1/zlib/adler32.c', needed by 'libz_a-adler32.o'. Stop. make[2]: Leaving directory '/usr/src/coreboot/util/crossgcc/build-x86_64-elf-BINUTILS/zlib' make[1]: *** [Makefile:10810: all-zlib] Error 2 make[1]: Leaving directory '/usr/src/coreboot/util/crossgcc/build-x86_64-elf-BINUTILS' make: *** [Makefile:1004: all] Error 2 make[1]: Entering directory '/usr/src/coreboot/util/crossgcc/build-x86_64-elf-BINUTILS' /bin/sh ../binutils-2.41/mkinstalldirs /usr/src/coreboot/util/crossgcc/xgcc /usr/src/coreboot/util/crossgcc/xgcc /bin/sh: line 4: cd: ./libsframe: No such file or directory make[1]: *** [Makefile:12900: install-libsframe] Error 1 make[1]: Leaving directory '/usr/src/coreboot/util/crossgcc/build-x86_64-elf-BINUTILS' make: *** [Makefile:2580: install] Error 2
Hi Keith,
did you check if your crossgcc directory is dirty? Is there an existing xgcc directory?
Felix
On Mon, 2024-02-19 at 15:08 -0500, Keith Hui wrote:
Hi guys,
I was unable to build crossgcc. The important tail end of build log is included at the end.
I couldn't figure out why. There should be no binutils-2.33.1 anywhere on my system. The build script is pulling in 2.41, and my host binutils is 2.40.
Appreciate any help. Thanks Keith
---8<---
make[2]: Entering directory '/usr/src/coreboot/util/crossgcc/build-x86_64-elf-BINUTILS/zlib' make[2]: *** No rule to make target '../../binutils-2.33.1/zlib/adler32.c', needed by 'libz_a-adler32.o'. Stop. make[2]: Leaving directory '/usr/src/coreboot/util/crossgcc/build-x86_64-elf-BINUTILS/zlib' make[1]: *** [Makefile:10810: all-zlib] Error 2 make[1]: Leaving directory '/usr/src/coreboot/util/crossgcc/build-x86_64-elf-BINUTILS' make: *** [Makefile:1004: all] Error 2 make[1]: Entering directory '/usr/src/coreboot/util/crossgcc/build-x86_64-elf-BINUTILS' /bin/sh ../binutils-2.41/mkinstalldirs /usr/src/coreboot/util/crossgcc/xgcc /usr/src/coreboot/util/crossgcc/xgcc /bin/sh: line 4: cd: ./libsframe: No such file or directory make[1]: *** [Makefile:12900: install-libsframe] Error 1 make[1]: Leaving directory '/usr/src/coreboot/util/crossgcc/build-x86_64-elf-BINUTILS' make: *** [Makefile:2580: install] Error 2 _______________________________________________ coreboot mailing list -- coreboot@coreboot.org To unsubscribe send an email to coreboot-leave@coreboot.org
Hi Felix,
On Wed, Feb 21, 2024, 04:08 Felix Singer felixsinger@posteo.net wrote:
Hi Keith,
did you check if your crossgcc directory is dirty? Is there an existing xgcc directory?
After removing the build-* directories inside util/crossgcc and re-running 'make crossgcc', build for binutils succeeded. Waiting for gcc to build. As you and Patrick suggested, my crossgcc directory was probably dirty.
Thanks Keith