LFS Version 6.2 - Binutils-2.16.1 - Pass 1 - compilation fails

Mag. Leonhard Landrock 1977-Hamlet at gmx.at
Sat Aug 5 07:03:26 PDT 2006


Hi everyone!

Now, that LFS-BOOK 6.2 is out I did a new try on LFS.

I am using Debian testing (etch) and here the problem starts. The system has 
some tools in an version to new for the book.

I am writing some scripts for my LFS build. Here is the output of my first 
script (NOTE: It tells for each tool the version needed and the version 
installed):

LFS_HOST_SYSTEM_BASH:   Bash-2.05a
current version:        bash, version 3.1.17(1)-release
LFS_HOST_SYSTEM_BINUTILS:       Binutils-2.12 (Versions greater than 2.16.1 
are not recommended as they have not been tested)
current version:        Binutils: version 2.17
LFS_HOST_SYSTEM_BZIP2:  Bzip2-1.0.2
current version:        bzip2,  Version 1.0.3, 15-Feb-2005.
LFS_HOST_SYSTEM_COREUTILS:      Coreutils-5.0 (or Sh-Utils-2.0, Textutils-2.0, 
and Fileutils-4.1)
current version:        Coreutils:  5.96
LFS_HOST_SYSTEM_DIFFUTILS:      Diffutils-2.8
current version:        diff (GNU diffutils) 2.8.1
LFS_HOST_SYSTEM_FINDUTILS:      Findutils-4.1.20
current version:        GNU find Version 4.2.27
LFS_HOST_SYSTEM_GAWK:   Gawk-3.0
current version:        GNU Awk 3.1.5
LFS_HOST_SYSTEM_GCC:    Gcc-2.95.3 (Versions greater than 4.0.3 are not 
recommended as they have not been tested)
current version:        gcc (GCC) 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)
LFS_HOST_SYSTEM_GLIBC:  Glibc-2.2.5 (Versions greater than 2.3.6 are not 
recommended as they have not been tested)
current version:        GNU C Library stable release version 2.3.6,
LFS_HOST_SYSTEM_GREP:   Grep-2.5
current version:        grep (GNU grep) 2.5.1
LFS_HOST_SYSTEM_GZIP:   Gzip-1.2.4
current version:        gzip 1.3.5
LFS_HOST_SYSTEM_LINUX_KERNEL:   Linux Kernel-2.6.x (having been compiled with 
GCC-3.0 or greater)
current version:        Linux version 2.6.15-1-686 2.6.15-8) 
(waldi at debian.org) (gcc
LFS_HOST_SYSTEM_MAKE:   Make-3.79.1
current version:        GNU Make 3.81
LFS_HOST_SYSTEM_PATCH:  Patch-2.5.4
current version:        patch 2.5.9
LFS_HOST_SYSTEM_SED:    Sed-3.0.2
current version:        GNU sed Version 4.1.5
LFS_HOST_SYSTEM_TAR:    Tar-1.14
current version:        tar (GNU tar) 1.15.91

No, if I try to compile binutils, I get the following error:

creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot 
create executables.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
make: *** ld: No such file or directory.  Stop.
make: *** ld: No such file or directory.  Stop.


Note, that I just realized that error after I tried to build gcc. Probably the 
(failed) gcc build broke something.

BTW: My binutils script looks like this:

<--- SCRIPT -->
source /home/leo/Linux\ from\ Scratch/LFS-CMD/LFS-6.2/build-LFS-definitions

# 14.) Binutils-2.16.1 - Pass 1

echo "$LFS_LOG_PREFIX Changing to \"$LFS_MOUNT_POINT/$LFS_DIR_SOURCES\"." 
2>&1 | tee --append $LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG
cd $LFS_MOUNT_POINT/$LFS_DIR_SOURCES
pwd  2>&1 | tee --append $LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG

echo "$LFS_LOG_PREFIX Extracting \"$LFS_PACKAGE_BINUTILS\" ..." 2>&1 | 
tee --append $LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG
tar jxf ./$LFS_DIR_PACKAGES/$LFS_PACKAGE_BINUTILS 2>&1 | tee --append 
$LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG

mkdir -v ./binutils-build 2>&1 | tee --append 
$LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG

echo "$LFS_LOG_PREFIX Changing to \"./binutils-build\"." 2>&1 | tee --append 
$LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG
cd ./binutils-build
pwd  2>&1 | tee --append $LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG

../binutils-2.16.1/configure --prefix=/tools --disable-nls 2>&1 | tee --append 
$LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG
make 2>&1 | tee --append $LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG
make install 2>&1 | tee --append $LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG

make -C ld clean 2>&1 | tee --append $LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG

make -C ld LIB_PATH=/tools/lib 2>&1 | tee --append 
$LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG

cp -v ld/ld-new /tools/bin 2>&1 | tee --append 
$LFS_DIR_LOG/$LFS_PACKAGE_BINUTILS_LOG

<--- SCRIPT -->

My "build-LFS-definitions" contains the following variables used in the 
binutils script:

<--- build-LFS-definitions -->

# LFS partition
LFS_MOUNT_POINT=/media/sdb3     # the mount point for the LFS partition

# LFS source directories
LFS_DIR_SOURCES=./sources
LFS_DIR_PACKAGES=./packages

# LFS logging prefix
# This prefix is inserted before every log message genarated by this script.
LFS_LOG_PREFIX="[LFS]"

# LFS logging directory
LFS_DIR_LOG=$LFS_MOUNT_POINT/LFS-log

# All Packages
LFS_PACKAGE_BINUTILS=binutils-2.16.1.tar.bz2

# LFS logging files
LFS_PACKAGE_BINUTILS_LOG=binutils.log

<--- build-LFS-definitions -->

Can anyone give me a hint, where the error might result from?

Kind regards,
Leonhard.



More information about the lfs-support mailing list