LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   GCC - Pass 1 Make error (https://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-pass-1-make-error-834627/)

furry-penguin 09-26-2010 04:54 PM

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

crts 09-26-2010 07:51 PM

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.

furry-penguin 09-26-2010 08:40 PM

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.

furry-penguin 09-26-2010 09:14 PM

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.

crts 09-27-2010 05:24 AM

Quote:

Originally Posted by furry-penguin (Post 4109796)
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.

jmc1987 09-27-2010 06:21 AM

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!

furry-penguin 09-27-2010 09:46 AM

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.

jmc1987 09-29-2010 04:43 PM

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.


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