Greetings,
I am attempting to build my first LFS project, but can't see to get past the
GCC, pass 1 compile. FWIW, Linux is not new to me. I have had an interest
in working through a LFS project for several years, and now I actually have
some time to do it.
I suspect I have a configuration setting gone wrong, however I am unable to
see what is going wrong.
I have a Ubuntu 9.10 host (AMD Athlon CPU, 1G memory). I've defined an lsf
user and have a separate 50G partition mounted at /mnt/lfs. All the
suggested symlinks are in place.
My lfs user environment is:
l...@carina:~$ env
TERM=xterm
LC_ALL=POSIX
LFS=/mnt/lfs
PATH=/tools/bin:/bin:/usr/bin
PWD=/home/lfs
LFS_TGT=i686-lfs-linux-gnu
PS1=${debian_chroot:+($debian_chroot)}...@\h:\w\$
SHLVL=1
HOME=/home/lfs
_=/usr/bin/env
l...@carina:~$ cat .bash_profile
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
l...@carina:~$ cat .bashrc
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TGT PATH
l...@carina:/$ ls -la /tools
lrwxrwxrwx 1 root root 15 2010-03-25 21:53 /tools -> /mnt/lfs//tools
configuring binutils:
l...@carina:/mnt/lfs/binutils-build/binutils-2.20$ ../binutils-2.20/configure
--target=$LFS_TGT --prefix=/tools --disable-nls --disable-werror
l...@carina:/mnt/lfs/binutils-build/binutils-2.20$make
...snip...
make[4]: Leaving directory `/mnt/lfs/binutils-build/binutils-2.20/ld'
make[3]: Leaving directory `/mnt/lfs/binutils-build/binutils-2.20/ld'
make[2]: Leaving directory `/mnt/lfs/binutils-build/binutils-2.20/ld'
make[1]: Nothing to be done for `all-target'.
make[1]: Leaving directory `/mnt/lfs/binutils-build/binutils-2.20'
l...@carina:/mnt/lfs/binutils-build/binutils-2.20$ make install
...snip...
make[3]: Entering directory
`/mnt/lfs/binutils-build/binutils-2.20/libiberty/testsuite'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory
`/mnt/lfs/binutils-build/binutils-2.20/libiberty/testsuite'
make[2]: Leaving directory `/mnt/lfs/binutils-build/binutils-2.20/libiberty'
make[1]: Nothing to be done for `install-target'.
make[1]: Leaving directory `/mnt/lfs/binutils-build/binutils-2.20'
At this point, I believe all is OK. GCC is then unpacked in $LFS/gcc-build,
mpfr-3.4.3 and gmp-5.0.0 are unpacked into $LFS/gcc-build/gcc-4.4.3 as mpfr
and gmp respectively.
GCC is then configured using:
l...@carina:/mnt/lfs/gcc-build/gcc-4.4.3$ ../gcc-4.4.3/configure
--target=$LFS_TGT --disable-nls --disable-shared --disable-multilib
--disable-decimal-float --disable-threads --disable-libmudflap
--disable-libssp --disable-libgomp --enable-languages=c
...snip...
configure: creating ./config.status
config.status: creating Makefile
Now my project goes south on me.... make compiles for some time (15 mins?)
and then I see the following:
l...@carina:/mnt/lfs/gcc-build/gcc-4.4.3$ make
...snip...
make[2]: Leaving directory
`/mnt/lfs/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/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... no
checking for mawk... mawk
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/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/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/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/gcc/xgcc
-B/mnt/lfs/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/gcc/
-B/usr/local/i686-lfs-linux-gnu/bin/ -B/usr/local/i686-lfs-linux-gnu/lib/
-isystem /usr/local/i686-lfs-linux-gnu/include -isystem
/usr/local/i686-lfs-linux-gnu/sys-include
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether
/mnt/lfs/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/gcc/xgcc
-B/mnt/lfs/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/gcc/
-B/usr/local/i686-lfs-linux-gnu/bin/ -B/usr/local/i686-lfs-linux-gnu/lib/
-isystem /usr/local/i686-lfs-linux-gnu/include -isystem
/usr/local/i686-lfs-linux-gnu/sys-include accepts -g... yes
checking for /mnt/lfs/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/gcc/xgcc
-B/mnt/lfs/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/gcc/
-B/usr/local/i686-lfs-linux-gnu/bin/ -B/usr/local/i686-lfs-linux-gnu/lib/
-isystem /usr/local/i686-lfs-linux-gnu/include -isystem
/usr/local/i686-lfs-linux-gnu/sys-include option to accept ANSI C... none
needed
checking how to run the C preprocessor...
/mnt/lfs/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/gcc/xgcc
-B/mnt/lfs/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/gcc/
-B/usr/local/i686-lfs-linux-gnu/bin/ -B/usr/local/i686-lfs-linux-gnu/lib/
-isystem /usr/local/i686-lfs-linux-gnu/include -isystem
/usr/local/i686-lfs-linux-gnu/sys-include -E
checking whether decimal floating point is supported... no
checking whether fixed-point is supported... no
checking for __attribute__((visibility("hidden")))... yes
checking whether the target assembler supports thread-local storage... yes
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: executing default commands
make[2]: Entering directory
`/mnt/lfs/gcc-build/gcc-4.4.3/i686-lfs-linux-gnu/libgcc'
Makefile:143: ../.././gcc/libgcc.mvars: No such file or directory
make[2]: *** No rule to make target `../.././gcc/libgcc.mvars'. Stop.
make[2]: Leaving directory
`/mnt/lfs/gcc-build/gcc-4.4.3/i686-lfs-linux-gnu/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.4.3'
make: *** [all] Error 2
Needless to say, at this point I believe I am dead in the water. I am
unable to find any other log files that might explain what is going on. I
somehow suspect that I am not operating completely inside the lfs
environment.
If I try to do a "make install", I get the following:
l...@carina:/mnt/lfs/gcc-build/gcc-4.4.3$ make install
make[1]: Entering directory `/mnt/lfs/gcc-build/gcc-4.4.3'
/bin/bash ./mkinstalldirs /usr/local /usr/local
make[2]: Entering directory
`/mnt/lfs/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/fixincludes'
rm -rf /usr/local/libexec/gcc/i686-lfs-linux-gnu/4.4.3/install-tools
/bin/bash ../.././fixincludes/../mkinstalldirs
/usr/local/libexec/gcc/i686-lfs-linux-gnu/4.4.3/install-tools
mkdir -p -- /usr/local/libexec/gcc/i686-lfs-linux-gnu/4.4.3/install-tools
mkdir: cannot create directory `/usr/local/libexec': Permission denied
make[2]: *** [install] Error 1
make[2]: Leaving directory
`/mnt/lfs/gcc-build/gcc-4.4.3/host-i686-pc-linux-gnu/fixincludes'
make[1]: *** [install-fixincludes] Error 2
make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.4.3'
make: *** [install] Error 2
Can anyone shed some light on this for me?
Thanks in advance.
John Stephens
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page