LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-10-2019, 12:56 PM   #1
garb76767
LQ Newbie
 
Registered: Apr 2019
Posts: 13

Rep: Reputation: Disabled
Gcc-8.2.0 LFS install


I have gotten error 77 and error 2 while compiling gcc following the linux from scratch directions.
checking for C compiler default output file name...
configure: error: in `/mnt/lfs/sources/gcc-8.2.0/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:8925: recipe for target 'configure-stage2-intl' failed
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory '/mnt/lfs/sources/gcc-8.2.0/build'
Makefile:21584: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-8.2.0/build'
Makefile:896: recipe for target 'all' failed
make: *** [all] Error 2
 
Old 05-10-2019, 01:23 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
With any LFS query give the book version, page reference on the same line as the title, usually. The host system is also helpful

Quote:
configure: error: C compiler cannot create executables
That's a show stopper. it does a compile of basically nothing, just to check the compiler is there. It isn't. Loop back to the early chapter pages & check your work. You got something wrong. Without knowing what chapter you're in, I can't be more precise.
 
Old 05-10-2019, 01:27 PM   #3
garb76767
LQ Newbie
 
Registered: Apr 2019
Posts: 13

Original Poster
Rep: Reputation: Disabled
Version 8.5 for book
5.5. GCC-8.2.0 - Pass 1
This is my output for version check
bash, version 4.4.19(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.30
bison (GNU Bison) 3.0.4
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.28
diff (GNU diffutils) 3.6
find (GNU findutils) 4.7.0-git
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 4.0.1, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
(Ubuntu GLIBC 2.27-3ubuntu1) 2.27
grep (GNU grep) 3.1
gzip 1.6
Linux version 4.18.0-17-generic (buildd@lgw01-amd64-021) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #18~18.04.1-Ubuntu SMP Fri Mar 15 15:27:12 UTC 2019
m4 (GNU M4) 1.4.18
GNU Make 4.1
GNU patch 2.7.6
Perl version='5.26.1';
Python 3.6.7
sed (GNU sed) 4.4
tar (GNU tar) 1.29
texi2any (GNU texinfo) 6.5
xz (XZ Utils) 5.2.2
g++ compilation OK

Last edited by garb76767; 05-10-2019 at 02:21 PM.
 
Old 05-11-2019, 05:51 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Ok - thanks for that.

In chapter 5, it's using your host system's compiler. But that process is breaking down somewhere. IIRC, is does a basic check that your system can create an executable, and yours is failing that. Have you gcc? In the path? Set up for compiling and see if cc points to it.
 
Old 05-11-2019, 07:12 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Did you check config.log as suggested? Look at the end of that file and you might find further information to give us.
 
Old 05-13-2019, 02:37 PM   #6
garb76767
LQ Newbie
 
Registered: Apr 2019
Posts: 13

Original Poster
Rep: Reputation: Disabled
I fixed this issue. I ended up chowning everything and trying to delete and reinstall gcc but to no avail. As for how I fixed it I'm not really sure. I got frustrated and reinstalled the whole OS again but now it won't go on the second pass which I'll probably post after I finish writing this.
 
Old 05-14-2019, 05:32 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Quote:
Originally Posted by garb76767
As for how I fixed it I'm not really sure. I got frustrated and reinstalled the whole OS again
Sometimes that's fastest. Mark this solved, and put it down to learning.
 
  


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
[SOLVED] LFS: Error during GCC-4.7.1-Pass 1 (LFS 7.2, Section 5.5) erkant Linux From Scratch 7 11-28-2012 06:03 AM
Gcc 4.6.1 can't Find in /mnt/lfs/tools on LFS verison 7.0 using LFS_TGT xerofoify Linux From Scratch 20 08-03-2012 12:55 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM

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

All times are GMT -5. The time now is 08:48 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