I try to build LFS 6.2 and I have a problem building gcc for a temporary system.
I do stuff as described in chapter 5.4 of LFS 6.2 book, but `make bootstrap` returns an error. Here's last few lines
Code:
Bootstrapping the compiler
make[1]: Entering directory `/mnt/lfs/source/gcc-build/gcc'
make CC=" stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/" CC_FOR_BUILD=" stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/" \
STAGE_PREFIX=stage1/ \
ADAFLAGS="" CFLAGS="-O2 -g -fomit-frame-pointer" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition " libdir=/tools/lib LANGUAGES="c gcov gcov-dump " MAKEINFO="makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \
CFLAGS="-O2 -g -fomit-frame-pointer" WERROR=""
make[2]: Entering directory `/mnt/lfs/source/gcc-build/gcc'
build/genmodes -h > tmp-modes.h
/bin/sh: build/genmodes: No such file or directory
make[2]: *** [s-modes] Error 127
make[2]: Leaving directory `/mnt/lfs/source/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/mnt/lfs/source/gcc-build/gcc'
make: *** [bootstrap] Error 2
File `genmodes` exists. I check it.
This is c/p from bash, ant it's really strange
Code:
[/mnt/lfs/source/gcc-build]lfs: cd gcc/build/
[/mnt/lfs/source/gcc-build/gcc/build]lfs: ls -l
total 192
-rw-r--r-- 1 lfs lfs 7640 Jul 2 22:56 errors.o
-rwxr-xr-x 1 lfs lfs 69342 Jul 2 23:18 genmodes
-rwxr-xr-x 1 lfs lfs 69342 Jul 3 00:00 genmodes.new
-rw-r--r-- 1 lfs lfs 38760 Jul 2 22:56 genmodes.o
[/mnt/lfs/source/gcc-build/gcc/build]lfs: ./genmodes
bash: ./genmodes: No such file or directory
[/mnt/lfs/source/gcc-build/gcc/build]lfs:
Target system is PC. Host system is Debian Etch.
Code:
[/]rile: cat /proc/version
Linux version 2.6.18-4-k7 (Debian 2.6.18.dfsg.1-12) (waldi@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Mon Mar 26 17:57:15 UTC 2007
[/]rile: gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Any idea what's going wrong?
Tnx for helping!