Toolchain build failures.

M.Canales.es macana at macana-es.com
Fri Dec 8 13:24:34 PST 2006


Hi,

Trying to build current SVN-20061205 using jhalfs it fails in the embryo 
toolchain phase with this:

/bin/bash ./libtool 
--mode=link /mnt/build_dir/sources/embryo-build/./prev-gcc/xgcc 
-B/mnt/build_dir/sources/embryo-build/./prev-gcc/ 
-B/tools/i686-pc-linux-gnu/bin/ -W -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Werror -g -O2    -o ld-new-new  ldgram.o ldlex.o 
lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o 
ldmisc.o ldfile.o ldcref.o eelf_i386.o 
ei386linux.o  ../bfd/libbfd.la ../libiberty/libiberty.a  
/mnt/build_dir/sources/embryo-build/./prev-gcc/xgcc 
-B/mnt/build_dir/sources/embryo-build/./prev-gcc/ 
-B/tools/i686-pc-linux-gnu/bin/ -W -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Werror -g -O2 -o ld-new-new ldgram.o ldlex.o lexsup.o 
ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o 
ldfile.o ldcref.o eelf_i386.o 
ei386linux.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
./libtool: line 4281: /mnt/build_dir/sources/embryo-build/./prev-gcc/xgcc: No 
such file or directory
make[1]: *** [ld-new-new] Error 127

I think that the error is due an error in the command to install ld-new. The 
book says:

make -C tools-ld/ EXEEXT=-new install-exec-local

but it should be:

make -C tools-ld/ EXEEXT=-new CC=/tools/bin/gcc install-exec-local


After fixed that, the fails again at the cocoon toolchain phase with this:

 gcc   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros 
-Wold-style-definition -Wmissing-format-attribute -Werror -fno-common 
-Wno-error  -DHAVE_CONFIG_H -I. -I. -I../../cocoon-toolchain/gcc 
-I../../cocoon-toolchain/gcc/. -I../../cocoon-toolchain/gcc/../include 
-I../../cocoon-toolchain/gcc/../libcpp/include     \
  -DSTANDARD_STARTFILE_PREFIX=\"../../../\" 
-DSTANDARD_EXEC_PREFIX=\"/tools/lib/gcc/\" 
-DSTANDARD_LIBEXEC_PREFIX=\"/tools/libexec/gcc/\" 
-DDEFAULT_TARGET_VERSION=\"4.1.1\" 
-DDEFAULT_TARGET_MACHINE=\"i686-pc-linux-gnu\" 
-DSTANDARD_BINDIR_PREFIX=\"/tools/bin/\" 
-DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test 
"yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = 
"X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
  -c ../../cocoon-toolchain/gcc/gcc.c -o gcc.o)
In file included from ../../cocoon-toolchain/gcc/gcc.c:553:
../../cocoon-toolchain/gcc/hardened-specs.h:48:2: error: #error "This header 
can not be used."
../../cocoon-toolchain/gcc/gcc.c:795: warning: string length '535' is greater 
than the length '509' ISO C89 compilers are required to support
../../cocoon-toolchain/gcc/gcc.c:943: warning: string length '844' is greater 
than the length '509' ISO C89 compilers are required to support
../../cocoon-toolchain/gcc/gcc.c:968: warning: string length '608' is greater 
than the length '509' ISO C89 compilers are required to support
../../cocoon-toolchain/gcc/gcc.c:1568: warning: string length '695' is greater 
than the length '509' ISO C89 compilers are required to support
make[3]: *** [gcc.o] Error 1
make[3]: Leaving directory `/mnt/build_dir/sources/cocoon-build/gcc'
make[2]: *** [all-gcc] Error 2

This time I don't know what is happening or how to solve it.


-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org



More information about the hlfs-dev mailing list