LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   gcc problems (https://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-problems-946188/)

kiyoshi7 05-21-2012 01:44 PM

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?

spiky0011 05-21-2012 01:46 PM

Hi

Where did you run the commands
Code:

tar -jxf ../mpfr-3.1.0.tar.bz2
mv -v mpfr-3.1.0 mpfr
tar -Jxf ../gmp-5.0.4.tar.xz
mv -v gmp-5.0.4 gmp
tar -zxf ../mpc-0.9.tar.gz
mv -v mpc-0.9 mpc

Which dir were you in?

kiyoshi7 05-21-2012 01:50 PM

if i remember correctly i was in sources/gcc-4.7.0

spiky0011 05-21-2012 01:55 PM

What online book are you using post link

kiyoshi7 05-21-2012 01:56 PM

im using lfs-book7.1.pdf that i got from the lfs site

spiky0011 05-21-2012 02:00 PM

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)

kiyoshi7 05-21-2012 02:10 PM

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

spiky0011 05-21-2012 02:10 PM

2 Questions why have you got gcc 4.7
and what gcc is on the host system

kiyoshi7 05-21-2012 11:37 PM

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

spiky0011 05-22-2012 04:01 AM

ftp://ftp.lfs-matrix.net/pub/lfs/lfs-packages/7.1 try here

kiyoshi7 05-22-2012 11:29 AM

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

spiky0011 05-22-2012 11:43 AM

Hi

You did'n say what gcc you are using now and what gcc is on the host

kiyoshi7 05-22-2012 11:48 AM

gcc host is 4.6

gcc im using is 4.7 (4.6 didnt work for some reason)

should i update ubunutus gcc?

spiky0011 05-22-2012 11:53 AM

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.

kiyoshi7 05-22-2012 12:03 PM

kk i'll try the virsion in that book


All times are GMT -5. The time now is 09:20 PM.