CLFS on Ubuntu 10.10, Chap 5.6. Cross Binutils-2.18 fails

You are building CLFS 1.1.10-x86 on Ubuntu 10.10 and got stuck on the very beginning at 5.6.1. Cross Binutils-2.18 with this error:

cc1: warnings being treated as errors
../../binutils-2.18/binutils/cxxfilt.c: In function 'demangle_it':
../../binutils-2.18/binutils/cxxfilt.c:66: error: format not a string literal and no format arguments
../../binutils-2.18/binutils/cxxfilt.c:71: error: format not a string literal and no format arguments
make[4]: *** [cxxfilt.o] Error 1
make[4]: Leaving directory `/home/clfs/binutils-build/binutils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/clfs/binutils-build/binutils'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/clfs/binutils-build/binutils'
make[1]: *** [all-binutils] Error 2
make[1]: Leaving directory `/home/clfs/binutils-build'
make: *** [all] Error 2

The compiler treads all warnings as errors and fails. We can change this just by adding

--enable-werror=no
to the configure line.

The complete command would read:

AR=ar AS=as ../binutils-2.18/configure --prefix=/cross-tools \
--host=${CLFS_HOST} --target=${CLFS_TARGET} --with-lib-path=/tools/lib \
--disable-nls --enable-shared --disable-multilib --enable-werror=no

back