LFS 7.2 GCC First pass: undefined reference to `GNU_USER_TARGET_OS_CPP_BUILTINS'
Hello guys,
I'm trying to follow the LSF 7.2 instructions but I get problems very early in the book. Just during compiling GCC in first pass I get this error: c-family/c-cppbuiltin.o: In function `c_cpp_builtins': /mnt/lfs/sources/7.2/gcc-build/gcc/../../gcc-4.7.1/gcc/c-familyc-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/7.2/gcc-build/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/7.2/gcc-build' make: *** [all] Error 2 I started again for three times but I get this error allways. What could I do now? Thanks, anjohn |
Hi
Can you post the output of version-check it would be a good starting place to make sure host is compliant |
Well, sorry for wasting your time. I had a look over the packages required by the host system and thought that I have them all. Two packages missed, now it worked.
|
if you want it checked just post it otherwise good luck
|
Oh, if you could have a look for me it would be nice. Thanks a lot sir. :)
Code:
lfs@pris:/mnt/lfs$ sh version-check.sh |
Hi
Ok we hav a few problems lfs@pris:/mnt/lfs$ sh version-check.sh bash, version 4.1.5(1)-release /bin/sh -> /bin/dash should be /bin/sh -> /bin/bash Binutils: (GNU Binutils) 2.22 bison (GNU Bison) 2.4.1 /usr/bin/yacc -> /usr/bin/bison.yacc bzip2, Version 1.0.5, 10-Dec-2007. Coreutils: 7.4 diff (GNU diffutils) 2.8.1 find (GNU findutils) 4.4.2 GNU Awk 3.1.6 /usr/bin/awk -> /usr/bin/gawk gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3 (GNU libc) 2.16 GNU grep 2.5.4 gzip 1.3.12 Linux version 2.6.32-45-generic (buildd@akateko) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) ) #101-Ubuntu SMP Mon Dec 3 15:41:13 UTC 2012 m4 (GNU M4) 1.4.13 GNU Make 3.81 patch 2.6 Perl version='5.10.1'; GNU sed version 4.2.1 tar (GNU tar) 1.22 version-check.sh: 30: makeinfo: not found install texinfo Texinfo: xz (XZ Utils) 4.999.9beta gcc compilation OK |
Looks pretty good now. Thank you very much spiky0011.
I'm a student at the Technical University of Dortmund, Germany. I'm working as software engineer beside my studies and I have to build an individual OS for a robot at the institute I'm working at. I hope I get it to run, thanks!!! :) Code:
lfs@pris:/mnt/lfs$ sh version-check.sh |
Quote:
|
Hi
Post the version-check if your not sure |
It will be nice if you could have a look. Thanks a lot.
Here is my version-check: Quote:
|
Thats all good
|
I think the yacc or bison stuff was missing when I had this problem. After installing the packages I started from the beginning with my LSF.
Then the error did not occur again. |
All times are GMT -5. The time now is 11:06 AM. |