On 4/12/20 10:12 AM, Thomas Trepl wrote:
Am Sonntag, den 12.04.2020, 22:01 +0800 schrieb devin operline:
Hi there,
This is my 3rd attempt at getting through LFS for the first time using (Debian
10). It was a fresh install when I made my second attempt. Then hit this
error and redid chapters 4, 5 and 6 before failing at the same place. While
I'd typed all commands on my 2nd try (for better absorption), I copied and
pasted all commands this time (3rd) around
On section 6.25 - GCC, I get the following error on the make check:
su nobody -s /bin/bash -c "PATH=$PATH make -k check" =>
su: Cannot drop the controlling terminal
commands I've run based on different threads I've found usually referring to
different sections and/or previous versions of the book (as root, within chroot)
ls -l /tools/bin/bash => -rwxr-xr-x
ls -l /dev/pts => c--------- 1 root root 5, 2 Apr 12 10:22 ptmx
tty => not a tty
ldd /bin/bash => linux-vdso.so.1
libncursesw.so.6 => not found
libdl.so.2 => /lib/libdl.so.2
libc.so.6 => /lib/libc.so.6
/tools/lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
ls -l /lib/{libreadline,libhistory,libncursesw,libdl,libc,ld}* =>
-rwxr-xr-x 1 root root 1495440 Apr 11 14:44 /lib/ld-2.31.so
lrwxrwxrwx 1 root root 10 Apr 11 14:44 /lib/ld-linux-x86-64.so.2 ->
ld-2.31.so
-rwxr-xr-x 1 root root 18445352 Apr 11 14:44 /lib/libc-2.31.so
lrwxrwxrwx 1 root root 12 Apr 11 14:44 /lib/libc.so.6 -> libc-2.31.so
-rwxr-xr-x 1 root root 179648 Apr 11 14:43 /lib/libcrypt-2.31.so
lrwxrwxrwx 1 root root 16 Apr 11 14:44 /lib/libcrypt.so.1 ->
libcrypt-2.31.so
-rwxr-xr-x 1 root root 251248 Apr 11 14:43 /lib/libdl-2.31.so
lrwxrwxrwx 1 root root 13 Apr 11 14:44 /lib/libdl.so.2 -> libdl-2.31.so
lrwxrwxrwx 1 root root 17 Apr 11 15:51 /lib/libhistory.so.8 ->
libhistory.so.8.0
-rwxr-xr-x 1 root root 174272 Apr 11 15:51 /lib/libhistory.so.8.0
lrwxrwxrwx 1 root root 18 Apr 11 15:51 /lib/libreadline.so.8 ->
libreadline.so.8.0
-rwxr-xr-x 1 root root 1092480 Apr 11 15:51 /lib/libreadline.so.8.0
i had also checked some other permissions which are mentioned in this thread,
when I was trying to wrap my head around the controlling terminal:
https://www.linuxquestions.org/questions/linux-from-scratch-13/su-cannot-drop-the-controlling-terminal-6-25-gcc-4175671731/
Admittedly, I still don't really understand what is going on.
Any help or suggestions would be very much appreciated!
Thank you, take care,
Al
Hi Al,
dump question, but are the virtual filesystems mounted as described in
section 6.2 ?
Indeed. It looks like the virtual file systems are not correct. From
the *host*, run:
findmnt
You should have:
TARGET SOURCE FSTYPE OPTIONS
├─/mnt/lfs /dev/sda6 ext4 rw,noatime
│ ├─/mnt/lfs/dev devtmpfs devtmpfs
rw,relatime,size=8147408k,nr_inodes=2036852,mode=755
│ │ └─/mnt/lfs/dev/pts devpts devpts
rw,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/mnt/lfs/proc proc proc rw,relatime
│ ├─/mnt/lfs/sys sysfs sysfs rw,relatime
│ ├─/mnt/lfs/run run tmpfs rw,relatime
Some of the options for /mnt/lfs/dev and /mnt/lfs/dev/pts may differ a
bit, but that's OK.
You should also have:
$ ls -l $LFS/var/run
lrwxrwxrwx 1 root root 4 Mar 31 13:53 /mnt/lfs/var/run -> /run
$ ls -l $LFS/dev/shm
lrwxrwxrwx 1 root root 8 Mar 4 15:00 /mnt/lfs/dev/shm -> /run/shm
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style