gcc problems
I've been making some progress on lfs but now im running int to this message when i try adding gcc
when i type make in the end of the whole process i get this: checking format of `long double' floating point... IEEE extended, little endian checking for TLS support... yes checking for gmp.h... no configure: error: gmp.h can't be found, or is unusable. make[2]: *** [configure-stage1-mpfr] Error 1 make[2]: Leaving directory `/mnt/Omoikane/sources/gcc-build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/mnt/Omoikane/sources/gcc-build' make: *** [all] Error 2 the gmp version is the same as in the book but gcc is 4.7.0 and in the book its 4.6.2 can this be the problem? |
Hi
Where did you run the commands Code:
tar -jxf ../mpfr-3.1.0.tar.bz2 |
if i remember correctly i was in sources/gcc-4.7.0
|
What online book are you using post link
|
im using lfs-book7.1.pdf that i got from the lfs site
|
Ok
Yes you are right you have gcc 4.7 Try using this online book It dose mean you will have to start again as binutils is different ( with A patch) |
hmm :/ i fugured as much.. can you tell me how i can delete everything i did up to now with the command line? cfdisk doesnt seem to be deleting everything like im trying to ask it too
|
2 Questions why have you got gcc 4.7
and what gcc is on the host system |
ok i think i found the problem i redid everything and im trying to download mpfr from the link provided by lfs and its failing to download
gcc on my host is 4.6 |
|
ok i was able to go a little past the gmp.h file problem but now when i type make i get this at the end
686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include linker (/mnt/Omoikane/sources/gcc-build/./gcc/collect-ld) supports shared libraries... yes checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[2]: *** [configure-stage1-target-libstdc++-v3] Error 1 make[2]: Leaving directory `/mnt/Omoikane/sources/gcc-build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/mnt/Omoikane/sources/gcc-build' make: *** [all] Error 2 what do i do? btw i started over from scratch |
Hi
You did'n say what gcc you are using now and what gcc is on the host |
gcc host is 4.6
gcc im using is 4.7 (4.6 didnt work for some reason) should i update ubunutus gcc? |
The problem is you cant mix the gcc as you have 4.6 on host you need to follow this book here and use the 4.6.2 gcc you cant use 4.7, This requires different host requirements. The 4.6 gcc dose work.
|
kk i'll try the virsion in that book
|
All times are GMT -5. The time now is 09:20 PM. |