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 04-10-2014, 12:14 PM   #1
ph0t0n1st
LQ Newbie
 
Registered: Dec 2007
Location: istanbul
Distribution: fedora
Posts: 21

Rep: Reputation: 0
won't compile gcc


Hi i am building CLFS on Fedora 20 x64. It went smooth so far however it fails when i make gcc

Code:
checking for x86_64-unknown-linux-gnu-gcc...  /clfs/gcc-build/./gcc/xgcc -B/clfs/gcc-build/./gcc/ -B/cross-tools/x86_64-unknown-linux-gnu/bin/ -B/cross-tools/x86_64-unknown-linux-gnu/lib/ -isystem /cross-tools/x86_64-unknown-linux-gnu/include -isystem /cross-tools/x86_64-unknown-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in `/clfs/gcc-build/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make: *** [configure-target-libgcc] Error 1
and the config.log is here

http://pastebin.com/aLZdHU5g

I can't figure out. Please help me out
 
Old 04-10-2014, 01:45 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
As i recall fedora is on the list of OS's NOT TO USE !

install Debian stable
Then build LFS on that platform
 
Old 04-11-2014, 12:06 PM   #3
ph0t0n1st
LQ Newbie
 
Registered: Dec 2007
Location: istanbul
Distribution: fedora
Posts: 21

Original Poster
Rep: Reputation: 0
I see, as a novice to LFS i didn't expect or know that. The reason i get into LFS/CLFS(since i have x64 machine) is i want to learn linux without struggling on bash,error reports and google,or LQ on most errors i get. But i guess on fedora and Which distro can i use for LFS?

I am on x64 host. I removed fedora and installed mint since its debian based and debian is suitable for LFS/CLFS as i heard. But however i am on 64 bit system. Is that a problem? What distro(even live distro) you would recommend for latest LFS(7.5) and CLFS (2.1.0) I really want to learn to build linux to learn linux but that distro problems cause lots of problems for 3 days and nights for me. So much googling,mail list reading etc. It really would be nice if you could guide me for it.

Thank you
 
Old 04-11-2014, 12:40 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
The reason i get into LFS/CLFS(since i have x64 machine) is i want to learn linux without struggling on bash,error reports and google
then LFS is the wrong os to try to LEARN on
it is 100% all about using the terminal
and SOLVING errors

it sounds like what you want is a windows XP or 7 "point and click" replacement

that is NOT LFS

it sounds more like you want Linux Mint 16 ( or 13 LTS)
or
Ubuntu 13

Quote:
I really want to learn to build linux to learn linux but that distro problems cause lots of problems for 3 days and nights for me.
you might want to Download or buy the current LFS BOOK
http://www.linuxfromscratch.org/lfs/download.html
--- a bit OLD -- 7.5 is the current version
http://www.amazon.com/Linux-From-Scr.../dp/1300019832

and study it, like you would for a 400 level collage class
and i do mean take a full semester to STUDY the LFS text book
 
Old 04-11-2014, 03:55 PM   #5
stefan1959
Member
 
Registered: Feb 2006
Posts: 34

Rep: Reputation: 1
Quote:
The reason i get into LFS/CLFS(since i have x64 machine) is i want to learn linux without struggling on bash,error reports and google,or LQ on most errors i get.
Isn't that the fun of using LFS?

Steve
 
Old 04-11-2014, 06:00 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
LFS, Gentoo, Slackware, and CRUX are all about back-to-basics GNU/Linux which uses a lot of command-line stuff.

If you want to build LFS, we've recommended one distribution only for this. I suggest you backtrack through posts here, and then go learn that distribution before you continue onward with LFS. You have to actually know how to use GNU/Linux core functions in order to really utilize LFS.
 
Old 04-14-2014, 11:57 PM   #7
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Code:
gcc version 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC)
configure:4785: $? = 0
configure:4774: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4785: $? = 4
configure:4774: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:4785: $? = 4
configure:4789: checking whether we are using the GNU C++ compiler
configure:4808: g++ -c   conftest.cpp >&5
configure:4808: $? = 0
configure:4817: result: yes
configure:4826: checking whether g++ accepts -g
configure:4846: g++ -c -g  conftest.cpp >&5
configure:4846: $? = 0
configure:4887: result: yes
configure:4936: checking whether g++ accepts -static-libstdc++ -static-libgcc
configure:4953: g++ -o conftest -g -O2  -Wl,-rpath,/cross-tools/lib -static-libstdc++ -static-libgcc conftest.cpp  >&5
/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
configure:4953: $? = 1
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.  */
|
| #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
| #error -static-libstdc++ not implemented
| #endif
| int main() {}
I'm not real familiar with cross-lfs, but it looks like you've either got a dangling connection to the previous toolchain or a needed static library wasn't built. From what I saw in searching, at least 1 page in the CLFS book explains that libstdc++ must test okay or you could end up with character/language issues.

Did you miss a sed somewhere that was supposed to force g++ to compile without dynamic links? I say this cause there is a call to /bin/ld and it can't find it. Check your tools directory for .a files.

Last edited by Luridis; 04-15-2014 at 12:01 AM.
 
  


Reply

Tags
clfs, gcc, lfs



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
Why couldn't the gcc(version4.3.3) be used to compile the gcc(version3.3.2)? snc Linux - Newbie 6 01-24-2010 11:26 AM
Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ? samrat_rao Linux - Software 5 03-03-2009 02:28 PM
I've installed the GCC packages but C programs still won't compile! Cold Coffee Linux - Newbie 10 07-14-2006 03:31 AM
GCC 2.95.3 won't compile, Fedora Core 4 x86_64 slantoflight Linux - Software 3 08-31-2005 07:21 PM

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

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