Hello. I am new to Linux From Scratch. Since I have a 64-bit machine I learned I would have to do CLFS to make my distro. Now, on to my problem.
Everything works fine until 5.7 in CLFS, wherein I encounter errors in building binutils.
I've searched and searched and founf no answer to this problem elsewhere, and the CLFS IRC channel has nothing but idles.
Anyway, here's the last part of my console output. Too much to post the complete so I just snagged what I believe are the relevant bits.
Code:
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.18/gas -I. -D_GNU_SOURCE -I. -I../../binutils-2.18/gas -I../bfd -I../../binutils-2.18/gas/config -I../../binutils-2.18/gas/../include -I../../binutils-2.18/gas/.. -I../../binutils-2.18/gas/../bfd -DLOCALEDIR="\"/cross-tools/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../binutils-2.18/gas/read.c
cc1: warnings being treated as errors
../../binutils-2.18/gas/read.c: In function 'do_s_func':
../../binutils-2.18/gas/read.c:5631: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result
../../binutils-2.18/gas/read.c:5638: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result
make[3]: *** [read.o] Error 1
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.18/gas -I. -D_GNU_SOURCE -I. -I../../binutils-2.18/gas -I../bfd -I../../binutils-2.18/gas/config -I../../binutils-2.18/gas/../include -I../../binutils-2.18/gas/.. -I../../binutils-2.18/gas/../bfd -DLOCALEDIR="\"/cross-tools/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../binutils-2.18/gas/stabs.c
cc1: warnings being treated as errors
../../binutils-2.18/gas/stabs.c: In function 'stabs_generate_asm_func':
../../binutils-2.18/gas/stabs.c:670: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result
../../binutils-2.18/gas/stabs.c: In function 'stabs_generate_asm_endfunc':
../../binutils-2.18/gas/stabs.c:696: error: ignoring return value of 'asprintf', declared with attribute warn_unused_result
make[3]: *** [stabs.o] Error 1
make[3]: Target `all-am' not remade because of errors.
make[3]: Leaving directory `/mnt/clfs/sources/binutils-build/gas'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/clfs/sources/binutils-build/gas'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/clfs/sources/binutils-build/gas'
make: *** [all-gas] Error 2
make[1]: Entering directory `/mnt/clfs/sources/binutils-build/gprof'
make all-recursive
make[2]: Entering directory `/mnt/clfs/sources/binutils-build/gprof'
Making all in po
make[3]: Entering directory `/mnt/clfs/sources/binutils-build/gprof/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/clfs/sources/binutils-build/gprof/po'
make[3]: Entering directory `/mnt/clfs/sources/binutils-build/gprof'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/mnt/clfs/sources/binutils-build/gprof'
make[2]: Leaving directory `/mnt/clfs/sources/binutils-build/gprof'
make[1]: Leaving directory `/mnt/clfs/sources/binutils-build/gprof'
make[1]: Entering directory `/mnt/clfs/sources/binutils-build/ld'
Making info in po
make[2]: Entering directory `/mnt/clfs/sources/binutils-build/ld/po'
make[2]: Nothing to be done for `info'.
make[2]: Leaving directory `/mnt/clfs/sources/binutils-build/ld/po'
make[2]: Entering directory `/mnt/clfs/sources/binutils-build/ld'
make[2]: Nothing to be done for `info-am'.
make[2]: Leaving directory `/mnt/clfs/sources/binutils-build/ld'
make all-recursive
make[2]: Entering directory `/mnt/clfs/sources/binutils-build/ld'
Making all in po
make[3]: Entering directory `/mnt/clfs/sources/binutils-build/ld/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/clfs/sources/binutils-build/ld/po'
make[3]: Entering directory `/mnt/clfs/sources/binutils-build/ld'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/mnt/clfs/sources/binutils-build/ld'
make[2]: Leaving directory `/mnt/clfs/sources/binutils-build/ld'
make[1]: Leaving directory `/mnt/clfs/sources/binutils-build/ld'
make: Target `all-host' not remade because of errors.
Any ideas on how I can solve this problem and get on with my build? Not even make -k is helping.