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 04-06-2015, 05:14 AM   #1
michanux
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Rep: Reputation: Disabled
Meaning of "-gcc"


Hello
second pass of "binutils" failed at LFS book
http://www.linuxfromscratch.org/lfs/...ils-pass2.html
"configure" breaks with the issue
Code:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... -gcc
checking for C compiler default output file name... 
configure: error: in `/mnt/lfs/sources/binutils-build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
config.log
Code:
configure:3981: checking for gcc
configure:4008: result: -gcc
configure:4237: checking for C compiler version
configure:4246: -gcc --version >&5
../binutils-2.25/configure: line 4248: -gcc: command not found
configure:4257: $? = 127
configure:4246: -gcc -v >&5
../binutils-2.25/configure: line 4248: -gcc: command not found
configure:4257: $? = 127
configure:4246: -gcc -V >&5
../binutils-2.25/configure: line 4248: -gcc: command not found
configure:4257: $? = 127
configure:4246: -gcc -qversion >&5
../binutils-2.25/configure: line 4248: -gcc: command not found
configure:4257: $? = 127
configure:4277: checking for C compiler default output file name
configure:4299: -gcc    conftest.c  >&5
../binutils-2.25/configure: line 4301: -gcc: command not found
configure:4303: $? = 127
configure:4340: result: 
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
A "/mnt/lfs/tools/bin/i686-lfs-linux-gnu-gcc" is present. Does "configure" looking for this "-gcc"?
 
Old 04-06-2015, 05:17 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
The gcc compiler has not been found.
 
Old 04-06-2015, 06:06 AM   #3
michanux
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keruskerfuerst View Post
The gcc compiler has not been found.
Why?
 
Old 04-06-2015, 08:56 AM   #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
Hi

post the output of version check script to start with
 
Old 04-06-2015, 12:04 PM   #5
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
If you carefully examine the configure command used by binutils pass 2, you can notice the following line:

CC=$LFS_TGT-gcc

If for some reason $LFS_TGT is empty (and it is in your case), the CC variable would just be set to -gcc, which is why you see that. Check your environment.
 
1 members found this post helpful.
Old 04-06-2015, 03:58 PM   #6
michanux
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
Yes the variable $LFS_TGT was empty. After a reboot the compiler worked fine. I had checked $LFS_TGT before I started the new compiling process. Thank You.
 
  


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
what is meaning of "invq = inv_Q(prob)" in threshold.cc file in ns2 er.poojasahu@gmail.com Linux - Software 1 12-19-2013 07:19 PM
what is the meaning of "e" in "double freq = 914.0e6; // frequency" er.poojasahu@gmail.com Linux - Wireless Networking 3 12-17-2013 01:57 AM
What is meaning of "has pages locked into memory (for real-time and custom IO) " ? dtustudy68 Programming 2 05-13-2011 01:08 PM
What is the meaning of using "__KERNEL__" and "MODULE" macro? nithima Linux - Newbie 1 10-18-2010 08:26 PM
Porting to Fedora gcc 4.0 -parsing backward slash("\") comma(",") code_blew Programming 1 04-26-2006 04:07 PM

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

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