Toolchain build failures.

Charity Abbott angeliqer at gmail.com
Wed Jan 24 07:18:06 PST 2007


It seems that the hardened specs file is causing the build to fail due to a
failure in adjusting the toolchain or the host system not having some
variables defined.

../../cocoon-toolchain/gcc/hardened-specs.h:48:2: error: #error "This header
can not be used."


That is the line of interest. I've found the statement that causes this.

#if defined(__i386__) && defined(__linux__) && defined(__ELF__) \
        && defined(HAVE_LD_PIE) && defined(TARGET_LIBC_PROVIDES_SSP)


So, I broke it down like this..

#if defined(__i386__)
#else
#error "i386 not defined"
#endif

#if defined(__linux__)
#else
#error "linux not defined"
#endif

#if defined(__ELF__)
#else
#error "ELF not defined"
#endif

#if defined(HAVE_LD_PIE)
#else
#error "HAVE_LD_PIE not defined"
#endif

#if defined(TARGET_LIBC_PROVIDES_SSP)
#else
#error "TARGET_LIBC_PROVIDES_SSP not defined"
#endif

Which results in the following error

In file included from ../../cocoon-toolchain/gcc/gcc.c:553:
../../cocoon-toolchain/gcc/hardened-specs.h:26:2: error: #error
"TARGET_LIBC_PROVIDES_SSP not defined"

Researching how that variable is defined and whether it's coming from the
host or supposed to be from the embroyo toolchain.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20070124/7e5d7a4c/attachment.html>


More information about the hlfs-dev mailing list