LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-26-2010, 04:54 PM   #1
furry-penguin
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Rep: Reputation: 0
GCC - Pass 1 Make error


Im having a hard time getting make to work on pass1. I have read the forums but cannot seem to find the exact problem. I have verified all dependencies.

below is the config.log and results of version-check.sh, directly below is the error im getting from terminal using make on gcc - any help is greatly appreciated, if i missed this in a post i apologize, but ive checked many times to resolve.


-----------------------------------------------------------------
OUTPUT ERROR FROM TERMINAL DURING 'MAKE' OF GCC
-----------------------------------------------------------------
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
Checking multilib configuration for libgcc...
mkdir -p -- i686-lfs-linux-gnu/libgcc
Configuring in i686-lfs-linux-gnu/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... i686-pc-linux-gnu
checking host system type... i686-lfs-linux-gnu
checking for i686-lfs-linux-gnu-ar... i686-lfs-linux-gnu-ar
checking for i686-lfs-linux-gnu-lipo... i686-lfs-linux-gnu-lipo
checking for i686-lfs-linux-gnu-nm... /mnt/lfs/sources/gcc-build/./gcc/nm
checking for i686-lfs-linux-gnu-ranlib... i686-lfs-linux-gnu-ranlib
checking for i686-lfs-linux-gnu-strip... i686-lfs-linux-gnu-strip
checking whether ln -s works... yes
checking for i686-lfs-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2

-----------------------------------------------------------------
OUTPUT OF version-check.sh
-----------------------------------------------------------------
bash, version 4.1.5(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.20.51-system.20100908
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 8.5
diff (GNU diffutils) 3.0
find (GNU findutils) 4.4.2
GNU Awk 3.1.7
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.4.4-14ubuntu4) 4.4.5
GNU C Library (Ubuntu EGLIBC 2.12.1-0ubuntu6) stable release version 2.12.1
GNU grep 2.6.3
gzip 1.3.12
Linux version 2.6.35-22-generic (buildd@rothera) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu4) ) #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010
m4 (GNU M4) 1.4.14
GNU Make 3.81
patch 2.6
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.23
Texinfo: makeinfo (GNU texinfo) 4.13
Compilation OK

---------------------------------------------------------------
FINALLY, HERE IS MY CONFIG.LOG (sorry for long link)
----------------------------------------------------------------
http://www.adrive.com/public/edebbe1...a3cfa0ec4.html
 
Old 09-26-2010, 07:51 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
There are some problems with your dependencies
Code:
/bin/sh -> /bin/dash  # should link to /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.20.51-system.20100908 # might be to new
gcc (Ubuntu/Linaro 4.4.4-14ubuntu4) 4.4.5 # modifications by ubuntu might be a problem
Using Ubuntu as host is not recommended. You should use the liveCD instead.

P.S.: You can attach your logs here on LQ. There is no need for external links.
 
1 members found this post helpful.
Old 09-26-2010, 08:40 PM   #3
furry-penguin
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you crts.

Can i use the Live CD and build the LFS in a VM? You state that 'Using Ubuntu as host is not recommended' - why is that and does that mean its not possible?

I couldn't figure out how to add an attachment in this post thats why i posted an external link :-( I felt dumb, but i looked at every button when i created the post, even tried multiple browsers and O/S but i just do see the 'attach' button :-)

Thanks again for taking your time, i really appreciate it.
 
Old 09-26-2010, 09:14 PM   #4
furry-penguin
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
crts - im just going to try it with the live cd. I should be able to do that in a vm and that way i dont have to worry about the rest. kinda disappointed tho cause now i have to load up a system im only going to use to compile another system - would rather do it on my primary linux box. oh well.
 
Old 09-27-2010, 05:24 AM   #5
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by furry-penguin View Post
Thank you crts.

Can i use the Live CD and build the LFS in a VM?
Hi,

yes, that is possible. I have done so myself.

Quote:
You state that 'Using Ubuntu as host is not recommended' - why is that and does that mean its not possible?
It is probably possible but fulfilling the dependencies might break your system (that is also true for other hosts). The LFS liveCD was specifically designed to be a host for building LFS. For more info on that matter please search the LFS forum here. You will find several threads about that.
Quote:
I couldn't figure out how to add an attachment in this post thats why i posted an external link :-( I felt dumb, but i looked at every button when i created the post, even tried multiple browsers and O/S but i just do see the 'attach' button :-)
I think, you can not add attachments when you post the very first time here on LQ (spam protection, I guess). You should be able to do so from now on. Keep in mind that only certain suffixes will be accepted in the filename like *.txt, *png etc.
Quote:
Thanks again for taking your time, i really appreciate it.
You are welcome.

P.S.: In the future please also state which version of LFS you are trying to build.

Last edited by crts; 09-27-2010 at 05:27 AM.
 
1 members found this post helpful.
Old 09-27-2010, 06:21 AM   #6
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 866

Rep: Reputation: 110Reputation: 110
Why not just boot the live CD? If you are worried about how slow it will go the when you boot the cdrom pass parameters at the startup

Quote:
linux toram
That will load the live cd into ram and make things work faster than having it on the HD its self. you will have to mount the cd though to get sources (outdated its recommened that you use live cd and download sources from the current book) and X server drivers if needed to start Xorg.

Good Luck!
 
Old 09-27-2010, 09:46 AM   #7
furry-penguin
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Ha, i knew i wasn't crazy bout the attachment, makes sense why i couldnt find it. I am giving it a go from the liveCD which is a bit slower going already (cant copy/paste from the host, but i'll try xorg) I will use the updated files as jmc suggested.

Im building LFS 6.7 - good point on mentioning the version, i had not thought of that.

Thanks, you guys have been most helpful.
 
Old 09-29-2010, 04:43 PM   #8
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 866

Rep: Reputation: 110Reputation: 110
The live CD has GPM installed so I should give you copy and paste fuctionallity. But you can also use the GUI that have install by typing "startx" if it fails you may have to modify the /etc/X11/xorg.conf with your driver info etc. They also include some nvidia and ati propriatary drivers as well. Good luck to you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LFS 6.6 - Chapter 5.5 - make[2]: *** [buildgetconstants.o] Error 1 - GCC Pass 1 malikcpp Linux From Scratch 3 06-29-2010 08:09 AM
5.5. GCC-4.4.0 - Pass 1 Make Problem pcallahan80 Linux From Scratch 10 03-05-2010 06:07 PM
GCC 2nd pass make error - xgcc cannot find -lc cogitocumimpune Linux From Scratch 1 01-11-2009 07:13 AM
gcc 4.0.3 first pass - 'make bootstrap' radiodee1 Linux From Scratch 6 10-10-2006 03:20 PM
GCC pass 1 error mugwump84 Linux From Scratch 2 05-10-2005 05:21 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration