[lfs-support] GCC-4.7.1 Pass 1 - Undefined References

George Moore gmoore606 at gmail.com
Fri Jan 4 10:05:16 PST 2013


I'm sure that this has been addressed in prior topics; however I'm unable to find it in any archive.

During the "make" of GCC-4.7.1 I receive the following output:

******************************************
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
gcc -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o default-c.o \
cc1-checksum.o main.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/mnt/lfs/sources/gcc-build/./gmp/.libs -L/mnt/lfs/sources/gcc-build/mpfr/src/.libs -L/mnt/lfs/sources/gcc-build/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz
c-family/c-cppbuiltin.o: In function `c_cpp_builtins':
/mnt/lfs/sources/gcc-build/gcc/../../gcc-4.7.1/gcc/c-family/c-cppbuiltin.c:918: undefined reference to `GNU_USER_TARGET_OS_CPP_BUILTINS'
collect2: ld returned 1 exit status
make[2]: *** [cc1] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
*******************************************
I've gone over the procedures in LFS-BOOK-7.2 several time but have been unable to resolve this problem. I would appreciate someone pointing me in the right direction for a solution. Resolving the problem for "c-cppbuiltin.c" produces other "GNU_USER_xxx. undefined . 

Thanks for your   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20130104/1b7a9af1/attachment.html>


More information about the lfs-support mailing list