LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-21-2012, 01:44 PM   #1
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Rep: Reputation: Disabled
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?
 
Old 05-21-2012, 01:46 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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?
 
Old 05-21-2012, 01:50 PM   #3
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
if i remember correctly i was in sources/gcc-4.7.0
 
Old 05-21-2012, 01:55 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
What online book are you using post link
 
Old 05-21-2012, 01:56 PM   #5
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
im using lfs-book7.1.pdf that i got from the lfs site
 
Old 05-21-2012, 02:00 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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)
 
1 members found this post helpful.
Old 05-21-2012, 02:10 PM   #7
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-21-2012, 02:10 PM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
2 Questions why have you got gcc 4.7
and what gcc is on the host system
 
Old 05-21-2012, 11:37 PM   #9
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-22-2012, 04:01 AM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

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

Last edited by spiky0011; 05-22-2012 at 10:47 AM. Reason: wrong address in link fixed
 
Old 05-22-2012, 11:29 AM   #11
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-22-2012, 11:43 AM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

You did'n say what gcc you are using now and what gcc is on the host
 
Old 05-22-2012, 11:48 AM   #13
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
gcc host is 4.6

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

should i update ubunutus gcc?
 
Old 05-22-2012, 11:53 AM   #14
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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.
 
Old 05-22-2012, 12:03 PM   #15
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
kk i'll try the virsion in that book
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with GCC unihiekka Linux - Software 4 07-12-2006 09:59 AM
Problems Compiling Problems With GCC And C++ phnxbn Linux - Software 0 11-02-2004 05:49 PM
GCC problems natm Linux - Newbie 8 10-17-2004 09:42 PM
Problems with gcc spooodini Linux - Software 5 10-31-2003 12:40 PM
gcc problems 2k. Linux From Scratch 1 07-19-2003 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration