5.5.1 Installation of Cross GCC - 6.5 PDF Manual - Compilation Error

Justin P. Mattock justinmattock at gmail.com
Wed Nov 4 17:48:27 PST 2009


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)

Justin P. Mattock



More information about the lfs-support mailing list