[lfs 7.2] many command not found after chroot
Hi experts,
# ldd /tools/bin/bash linux-vdso.so.1 => (0x00007fff4dbff000) libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003d5a800000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003d4ac00000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003d4dc00000) libc.so.6 => /lib64/libc.so.6 (0x0000003d4a400000) /tools/lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000003d4a000000) # ldd /bin/bash linux-vdso.so.1 => (0x00007fff563ff000) libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003d5a800000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003d4ac00000) libc.so.6 => /lib64/libc.so.6 (0x0000003d4a400000) /lib64/ld-linux-x86-64.so.2 (0x0000003d4a000000) # chroot "$LFS" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h I have no name!:/# ls bash: /bin/ls: No such file or directory I have no name!:/# mkdir bash: /tools/bin/mkdir: No such file or directory I have no name!:/# could anyone point me what's going wrong here? |
There's not enough info yet to point to anything specific.
Just a thought: Is $LFS (still) mounted? From outside the chrooted environment, what do the following commands show you: Code:
mount |
1 Attachment(s)
Quote:
I revert everything and start from the beginning, but been blocking at compiling gcc pass1: configure: error: in `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgomp': configure: error: C compiler cannot create executables it happened on my two Fedora 16 box and a RHEL6 box, they have the same result above. |
Quote:
Is the partition still mounted on that specific mount point? (2.4. Mounting the New Partition) Quote:
|
$ sh c1-version-check.sh
bash, version 4.2.37(1)-release /bin/sh -> /usr/bin/bash Binutils: version 2.22.52.0.1-10.fc17 20120131 bison (GNU Bison) 2.5 /usr/bin/yacc -> /usr/bin/yacc bzip2, Version 1.0.6, 6-Sept-2010. Coreutils: 8.15 diff (GNU diffutils) 3.2 find (GNU findutils) 4.5.10 GNU Awk 4.0.1 /usr/bin/awk -> /usr/bin/gawk gcc (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2) (GNU libc) 2.15 grep (GNU grep) 2.14 gzip 1.4 Linux version 3.6.1-1.fc17.x86_64 (mockbuild@) (gcc version 4.7.2 20120921 (Red Hat 4.7.2-2) (GCC) ) #1 SMP Wed Oct 10 12:13:05 UTC 2012 m4 (GNU M4) 1.4.16 GNU Make 3.82 patch 2.6.1 Perl version='5.14.2'; GNU sed version 4.2.1 tar (GNU tar) 1.26 Texinfo: makeinfo (GNU texinfo) 4.13 xz (XZ Utils) 5.1.2alpha gcc compilation OK |
Quote:
How about my other/original question? (Is the partition still mounted on that specific mount point?). |
Quote:
|
Quote:
mkdir will fail because you haven't stated what directory to make. |
Quote:
Quote:
|
@mercuyr: This thread seems to tackle an old problem and a new one.
Please tell us: - which problem you are trying to tackle, - which host you are using, - which chapter you are, - which error(s) you are facing. If an error meassage is shown, please post it including a few lines before the error (have a look here: Help) |
1 Attachment(s)
Quote:
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc' Checking multilib configuration for libgomp... mkdir -p -- x86_64-lfs-linux-gnu/libgomp Configuring in x86_64-lfs-linux-gnu/libgomp configure: creating cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for --enable-generated-files-in-srcdir... no checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-lfs-linux-gnu checking target system type... x86_64-lfs-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for x86_64-lfs-linux-gnu-strip... /tools/x86_64-lfs-linux-gnu/bin/strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-lfs-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include checking for C compiler default output file name... configure: error: in `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgomp': configure: error: C compiler cannot create executables See `config.log' for more details. make[1]: *** [configure-target-libgomp] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [all] Error 2 - which host you are using, Fedora 17 32 & 64, RHEL6.2 64 Currently: BackTrack 5 R3 - 64 Bit $ sh gh/c1-version-check.sh bash, version 4.1.5(1)-release /bin/sh -> /bin/bash Binutils: (GNU Binutils for Ubuntu) 2.20.1-system.20100303 bison (GNU Bison) 2.4.1 /usr/bin/yacc -> /usr/bin/bison.yacc bzip2, Version 1.0.5, 10-Dec-2007. Coreutils: 7.4 diff (GNU diffutils) 2.8.1 find (GNU findutils) 4.4.2 GNU Awk 3.1.6 /usr/bin/awk -> /usr/bin/gawk gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3 (Ubuntu EGLIBC 2.11.1-0ubuntu7.10) 2.11.1 GNU grep 2.5.4 gzip 1.3.12 Linux version 3.2.6 (root@bt) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #1 SMP Fri Feb 17 10:34:20 EST 2012 m4 (GNU M4) 1.4.13 GNU Make 3.81 patch 2.6 Perl version='5.10.1'; GNU sed version 4.2.1 tar (GNU tar) 1.22 Texinfo: makeinfo (GNU texinfo) 4.13 xz (XZ Utils) 4.999.9beta gcc compilation OK |
You mention 4 hosts:
Quote:
The version check mentions ubuntu, which would make it 5 hosts (or is this from BackTrack?). Did you remove the gcc source and build directories before retrying (have a look here: Second Important box). It seems you are all over the place. I would suggest picking ONE host and start from scratch with the LFS build. |
Quote:
the check version mentioned ubuntu is the backtrack host. |
Assuming an Ubuntu based host, have a look here: LFS 7.1 on Ubuntu 12.04. Maybe you notice anything that you do different and can fix the problem that way. Your partition layout may differ, but that shouldn't be a problem.
|
All times are GMT -5. The time now is 08:49 PM. |