UPDATE ON: Re: 5.5.1 Installation of Cross GCC - 6.5 PDF Manual - Compilation Error

Owen Lopez solofaded at gmail.com
Thu Nov 5 17:39:20 PST 2009


>
> *not sure, but do you have the development*
> * packages install?*
> * (object files are located in /usr/lib/*.o)*

ls /usr/lib/*.o returns the following files located in that dir:

crtl.o crti.o crtn.o gcrtl.o Mcrtl.o Scrtl.o

 If Justin's reply didn't help, you do need to look at config.log to find
> the message 'cannot compute suffix', then look at the lines above
> that to find the error message.
>
>  I don't think I've commented on this situation for a few months,
> so I'll repeat myself, and hope I'm not labouring the point on
> things you already knew -
>
> 1. Toolchain packages (and occasionally others) may create
> multiple config.log files (one in each subdirectory where configure
> was run).  You need to look at the latest of those log files if there
> is more than one (that's particularly relevant for problems with
> configuring binutils).
>
> 2. Searching is easiest, at least for me, in 'view' (i.e. vim)
> but 'less' works too (without the colour highlighting), e.g.
> /cannot\ compute\ suffix
>

After further examination of the latest config.log file found in my
gcc-build directory after the failed compilation, it is saying the error is
with confdefs.h. object file which is included in the libgcc package, I ran
the shell script to check for the required packages before you begin to do
anything in the manual  and its output is the following:

bash, version 3.2.48(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.19.1
bison (GNU Bison) 2.3
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils: 6.10
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.0
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
GNU C Library stable release version 2.9,
GNU grep 2.5.3
gzip 1.3.12
Linux version 2.6.28-11-generic (buildd at palmer) (gcc version 4.3.3 (Ubuntu
4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
m4 (GNU M4) 1.4.11
GNU Make 3.81
patch 2.5.9
Perl version='5.10.0';
GNU sed version 4.1.5
tar (GNU tar) 1.20
makeinfo (GNU texinfo) 4.11
Compilation OK

All the symbolic links that manual told me to do are enabled and I do not
seem to be missing any packages. I am pretty sure it's not finding one of
the libraries it requires in one of the directories, but all the config.log
file tells me its one of the libgcc files named confdefs.h.

Any help is appreciated it, I am really learning a lot with this project.
Thanks everyone.


>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 04 Nov 2009 17:48:27 -0800
> From: "Justin P. Mattock" <justinmattock at gmail.com>
> Subject: Re: 5.5.1 Installation of Cross GCC - 6.5 PDF Manual -
>        Compilation     Error
> To: LFS Support List <lfs-support at linuxfromscratch.org>
> Message-ID: <4AF22EEB.7090309 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Owen Lopez wrote:
> > Preparing GCC for Compilation was successful using the following params:
> > ../gcc-4.4.1/configure \
> > ---target=$LFS_TGT --prefix=/tools \
> > --disable-nls --disable-shared --disable-multilib \
> > --disable-decimal-float --disable-threads \
> > --disable-libmudflap --disable-libssp \
> > --disable-libgomp --enable-languages=c
> >
> > I am also in a seperate gcc-build directory: /mnt/lfs/sources/gcc-build$
> >
> > Error when trying to compile gcc using make:
> >
> >     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
> >
> >
> > gcc -v returns
> >
> >     lfs at owen-laptop:/mnt/lfs/sources/gcc-build$ gcc -v
> >     Using built-in specs.
> >     Target: i486-linux-gnu
> >     Configured with: ../src/configure -v --with-pkgversion='Ubuntu
> >     4.3.3-5ubuntu4'
> >     --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
> >     --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> >     --enable-shared --with-system-zlib --libexecdir=/usr/lib
> >     --without-included-gettext --enable-threads=posix --enable-nls
> >     --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
> >     --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
> >     --enable-mpfr --enable-targets=all --with-tune=generic
> >     --enable-checking=release --build=i486-linux-gnu
> >     --host=i486-linux-gnu --target=i486-linux-gnu
> >     Thread model: posix
> >     gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
> >     lfs at owen-laptop:/mnt/lfs/sources/gcc-build$
> >
> >
> >
> > Any help is appreciated, I did not skip any steps in the manual and
> > read all IMPORTANT emphasized boxes. Currently logged in as the LFS
> > user that I created with the custom bash profile for LFS and
> > everything else the book told me to do, I am pretty sure I had no
> > typos in the configuration.
> >
> > Attached is my config.log for GCC.
> >
> > Thanks in advanced to anyone who helps!
> >
> >
> >
> >
> >
> *not sure, but do you have the development
> packages install?
> (object files are located in /usr/lib/*.o)*
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20091105/459af0bc/attachment.html>


More information about the lfs-support mailing list