LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-22-2015, 07:11 AM   #1
Toroso
Member
 
Registered: Mar 2015
Distribution: Mint Linux 17.1 64 Xfce
Posts: 31

Rep: Reputation: 4
LFS project help


I'm using LFS 7.7 to build a Linux system. I'm having issues getting the GCC to compile successfully on pass 1. Would love to chat with others who have experience here.

Thanks!
 
Old 03-22-2015, 07:24 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
What error messages are you getting? And in which step.
 
Old 03-22-2015, 07:41 AM   #3
Toroso
Member
 
Registered: Mar 2015
Distribution: Mint Linux 17.1 64 Xfce
Posts: 31

Original Poster
Rep: Reputation: 4
This is at the tail end, I don't see any errors in the output but I can only go back so far in terminal.

Code:
checking whether the C compiler works... no
configure: error: in `/mnt/lfs/sources/gcc-build/gmp':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[2]: *** [configure-stage2-gmp] Error 77
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
It says here that there is a configure error in gmp. In the config.log the only error I see refers to isl
which I don't see mentioned anywhere in the LFS book.
 
Old 03-22-2015, 08:16 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Do you have gcc installed on your host system? See by running 'gcc -version'.
 
Old 03-22-2015, 08:54 AM   #5
Toroso
Member
 
Registered: Mar 2015
Distribution: Mint Linux 17.1 64 Xfce
Posts: 31

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by veerain View Post
Do you have gcc installed on your host system? See by running 'gcc -version'.
Yes, 4.8.2
 
Old 03-22-2015, 05:53 PM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Please post the output of the version.sh script a lot of these gcc/glibc/binutils erros are because of a non complient host.

What is your host system by the way.

Last edited by Keith Hedger; 03-22-2015 at 05:54 PM. Reason: cant tpye
 
Old 03-23-2015, 12:18 AM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
As produced in error output, you should see config.log file. It is little difficult to understand it at start/newbie.
 
Old 03-23-2015, 03:45 AM   #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
hi

You have built LFS already and it is a good base to build another. You know lfs will build I would go back and remove all and start again that was mentioned in the other thread as well.
 
Old 03-23-2015, 04:26 AM   #9
Toroso
Member
 
Registered: Mar 2015
Distribution: Mint Linux 17.1 64 Xfce
Posts: 31

Original Poster
Rep: Reputation: 4
Here is the output from version-check. Host is Mint Linux 17.1 64 Xfce

bash, version 4.3.11(1)-release
version-check.sh: line 4: Linux: command not found
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.24
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
(Ubuntu EGLIBC 2.19-0ubuntu6.6) 2.19
grep (GNU grep) 2.16
gzip 1.6
Linux version 3.13.0-24-generic (buildd@batsu) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014
m4 (GNU M4) 1.4.17
GNU Make 3.81
GNU patch 2.7.1
Perl version='5.18.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
makeinfo (GNU texinfo) 5.2
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
 
Old 03-23-2015, 05:16 AM   #10
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
/bin/sh -> /bin/dash
Generally this can be source of problem while building LFS. Try replacing dash with bash for sh symlink.
 
1 members found this post helpful.
Old 03-23-2015, 05:19 AM   #11
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Also make dummy c file and compile with gcc to see if it works.

Code:
echo "int main () { return 0; }" > test.c
gcc -o test test.c
./test
echo $?
Also reading the exact error by looking at config.log file generated by configure command.

Last edited by veerain; 03-23-2015 at 05:21 AM.
 
Old 03-23-2015, 08:59 AM   #12
Toroso
Member
 
Registered: Mar 2015
Distribution: Mint Linux 17.1 64 Xfce
Posts: 31

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by veerain View Post
Generally this can be source of problem while building LFS. Try replacing dash with bash for sh symlink.
OK, I'm not familiar with that at all. Can you provide more info?

Thanks

Last edited by Toroso; 03-23-2015 at 09:01 AM.
 
Old 03-23-2015, 09:00 AM   #13
Toroso
Member
 
Registered: Mar 2015
Distribution: Mint Linux 17.1 64 Xfce
Posts: 31

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by veerain View Post
Also make dummy c file and compile with gcc to see if it works.

Code:
echo "int main () { return 0; }" > test.c
gcc -o test test.c
./test
echo $?
Also reading the exact error by looking at config.log file generated by configure command.
I've done that as part of the LFS guide and it did not work.

It says there is an issue with gmp configure, but there is no config.log in the gmp directory.
 
Old 03-23-2015, 09:13 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
Have you fixed the dash symlink issue?
what chapter are you on?
 
Old 03-23-2015, 09:26 AM   #15
Toroso
Member
 
Registered: Mar 2015
Distribution: Mint Linux 17.1 64 Xfce
Posts: 31

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by spiky0011 View Post
Have you fixed the dash symlink issue?
what chapter are you on?
I'm a Linux n00b, not quite sure how to do that. At work now...

I'm on chapter 5 of LFS 7.7. Just running pass1 on GCC.
 
  


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
can i submit LFS project in my college? Carl_cj Linux - Newbie 7 01-05-2015 10:57 PM
[SOLVED] [Annoucement] B/LFS-s6 project ReaperX7 Linux From Scratch 6 07-07-2014 08:19 AM
New project coming soon for B/LFS. ReaperX7 Linux From Scratch 2 06-29-2014 04:11 AM
LFS project Lyster Linux From Scratch 3 07-02-2011 01:26 PM
LFS - how big a project, how much of use? b0uncer Linux From Scratch 10 07-07-2006 05:29 AM

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

All times are GMT -5. The time now is 11:59 PM.

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