Re: [lfs-support] su: Cannot drop the controlling terminal - 6.25 GCC

2020-04-30 Thread Ken Moffat
On Thu, Apr 30, 2020 at 08:34:22PM +0800, dev o wrote:
> Good evening,
> 
> With no more suggestions coming forward, I suppose that all troubleshooting
> options have already been exhausted on this issue.
> In that case, I guess it is time to wipe the host and start fresh with a
> newly installed distro right?
> 
> In my first attempt, I broke an ubuntu host, and I received a suggestion to
> try debian instead.  Now I appear to have used LFS to break a debian host
> as well so are there any suggestions on the next distro to try to maybe
> have success in this LFS journey?
> 
> Thank you, take care,
> Allan

I've had a quick look, again, at your earlier thread and I don't see
any evidence that you have broken the host.  I'm not saying that you
have not, but wiping the host is not a common approach and
everything in LFS is intended to keep the host system usable.

The normal approach to a failed build is:

1. Look for evidence of what went wrong (that includes looking at
   your command history to see if you missed something).  I agree
   that you seem to have come to the end of that.

2. The next approach is to unmount the partition where you are
   trying to build LFS, and start over.  I see that you did check the
   host requirements last time, but it looks as if one of the
   following three things might have happened:

(a) Doing the chapter 5 build, or part of it, as user root.  If that
was the case then yes, maybe you did destroy the host.

(b) Not setting LFS at some point.

(c) Missing some instructions (often caused by either not reading to
the end of the page, or by 'turning over two pages').  Can also
happen if people try to paste instructions from a PDF - don't do
that, use the html.

Good luck!

ĸen
-- 
He could send for Ptraci, his favourite handmaiden. She was special.
Her singing always cheered him up. Life seemed so much brighter when
she stopped.   -- Pyramids
-- 
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


Re: [lfs-support] su: Cannot drop the controlling terminal - 6.25 GCC

2020-04-30 Thread Jean-Marc Pigeon
Bonjour Alan,


On Thu, 2020-04-30 at 20:34 +0800, dev o wrote:
> Good evening,
> 
> With no more suggestions coming forward, I suppose that all
> troubleshooting options have already been exhausted on this issue.  
> In that case, I guess it is time to wipe the host and start fresh
> with a newly installed distro right?
> 
> In
>  my first attempt, I broke an ubuntu host, and I received a
> suggestion 
> to try debian instead.  Now I appear to have used LFS to break a
> debian 
> host as well so are there any suggestions on the next distro to try
> to 
> maybe have success in this LFS journey?
> 
> Thank you, take care,
> Allan
> 
> 

As you must/need to start with fresh host, may be you can use an
LFS ISO to prepare an LFS HOST, then build your own on it.

May I suggest to us
https://okrepo.safe.ca/osukiss/9.1/isos/RESCUE-LFS-9.1-1.78.1-x86_64.iso

It is a build on a rather new LFS (Mar 9) and can be used too as
reference
while you are building your one.
My 2 cents.
Keep me posted if you need help (on private channel).

-- 
You have seen "Linux from scratch" and looking for ISO files
www.osukiss.org
-- 
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


Re: [lfs-support] su: Cannot drop the controlling terminal - 6.25 GCC

2020-04-14 Thread Pierre Labastie
On Tue, 2020-04-14 at 21:01 +0800, dev o wrote:
> Good morning,
> 
> Thank you for each of the responses,  I'll respond to each in order:
> 
> -
> 
> Which version of LFS book are you using?  And what is the output of
> "version-
> check.sh" in sect. 2.2.?
> 
> Version: LFS-9.1
> 
> version_check.sh =>
> 
> bash, version 5.0.3(1)-release
> /bin/sh -> /usr/bin/bash
> Binutils: (GNU Binutils for Debian) 2.31.1
> bison (GNU Bison) 3.3.2
> /usr/bin/yacc -> /usr/bin/bison.yacc
> bzip2,  Version 1.0.6, 6-Sept-2010.
> Coreutils:  8.30
> diff (GNU diffutils) 3.7
> find (GNU findutils) 4.6.0.225-235f
> GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
> /usr/bin/awk -> /usr/bin/gawk
> gcc (Debian 8.3.0-6) 8.3.0
> g++ (Debian 8.3.0-6) 8.3.0
> (Debian GLIBC 2.28-10) 2.28
> grep (GNU grep) 3.3
> gzip 1.9
> Linux version 4.19.0-8-amd64 (debian-ker...@lists.debian.org) (gcc
> version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.98-1 (2020-01-26)
> m4 (GNU M4) 1.4.18
> GNU Make 4.2.1
> GNU patch 2.7.6
> Perl version='5.28.1';
> Python 3.7.3
> sed (GNU sed) 4.7
> tar (GNU tar) 1.30
> texi2any (GNU texinfo) 6.5
> xz (XZ Utils) 5.2.4
> g++ compilation OK
> 
> -
> 
> dump question, but are the virtual filesystems mounted as described
> in
> section 6.2 ?
> 
> I have played close attention to the instructions about the mounting
> and chroot and noticed that it is often identified as the culprit in
> earlier conversations.  The partition is mounted on boot via fstab
> then I run the following commands as root: 
> mount -v --bind /dev $LFS/dev && mount -vt devpts devpts $LFS/dev/pts
> -o gid=5,mode=620 && mount -vt proc proc $LFS/proc && mount -vt sysfs
> sysfs $LFS/sys && mount -vt tmpfs tmpfs $LFS/run
> 
> if [ -h $LFS/dev/shm ]; then   mkdir -pv $LFS/$(readlink
> $LFS/dev/shm); fi
> 
> chroot "$LFS" /tools/bin/env -i HOME=/root
>  TERM="$TERM"PS1='(lfs chroot) \u:\w\$ '
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --
> login +h
> 
> I don't know how to try and verify beyond that :/
> 
> -
> 
> (I discarded /, /sys, /run, /proc & /boot)
> TARGETSOURCE FSTYPE  OPTIONS
> ├─/devudev   devtmpf
> rw,nosuid,relatime,size=401
> │ ├─/dev/shm  tmpfs  tmpfs  
> rw,nosuid,nodev
> │ ├─/dev/hugepageshugetlbfs  hugetlb
> rw,relatime,pagesize=2M
> │ ├─/dev/mqueue   mqueue mqueue  rw,relatime
> │ └─/dev/pts  devpts devpts
>  rw,relatime,gid=5,mode=620,
> │   └─/dev/ptsdevpts devpts 

Hmmm, this is dubious. /dev/pts mounted on /dev/pts...
what does "ls /dev/pts" say (as root, from host)
If it returns /dev/pts/dev, then try "umount /dev/pts/dev/pts"
then rm -r /dev/pts/dev

Or reboot, login as root, set LFS (important!), mount the virtual
filesystems again. Try findmnt at this point, chroot again, and try
again to su in gcc.

>  rw,nosuid,noexec,relatime,g
> ├─/mnt/lfs/dev/sdb10 ext4rw,relatime
> │ ├─/mnt/lfs/dev  udev   devtmpf
> rw,nosuid,relatime,size=401
> │ │ └─/mnt/lfs/dev/ptsdevpts devpts
>  rw,relatime,gid=5,mode=620,
> │ ├─/mnt/lfs/proc proc   procrw,relatime
> │ ├─/mnt/lfs/sys  sysfs  sysfs   rw,relatime
> │ └─/mnt/lfs/run  tmpfs  tmpfs   rw,relatime
> 
> The following are run from within the chroot environment:
> ls -l $LFS/var/run
> lrwxrwxrwx 1 root root 4 Apr 11 13:47 /var/run -> /run
> 
> ls -l $LFS/dev/shm
> * nothing returned *

This is as it should on debian: it does not tell you is does not exist.
It is just a normal directory. Well, you could mount a tmpfs on it, but
I do not think it has anything to do with the error you have

> ls -l $LFS/dev
> drwxr-xr-x  2 root   root40 Apr 14 12:08 shm(it is
> listed despite not returning for the command above)

Hmm, is it the only line of output?

> 
> based on your expected response, It appears to me that /dev/shm is
> not mounted correctly.  
> 
> If believe that is supposed to be achieved by this command:
> if [ -h $LFS/dev/shm ]; then   mkdir -pv $LFS/$(readlink
> $LFS/dev/shm); fi
> 
> Each of these commands return nil if run in isolation:
> [ -h $LFS/dev/shm ]   ** i have no idea what is performed by this
> syntax **
> readlink $LFS/dev/shm** maybe i missed a command to make this
> link? i don't see it in the end of chapter 5 **
> 
> --
> 
> I also received a response on the linuxquestions thread: 
> https://www.linuxquestions.org/questions/showthread.php?p=6110835#post6110835
> 
> The fellow mentioned that debian doesn't allow users to an su to
> unpermissioned user without password.

Once you are in chroot, the debian configuration files are not
accessible 

Re: [lfs-support] su: Cannot drop the controlling terminal - 6.25 GCC

2020-04-14 Thread dev o
Good morning,

Thank you for each of the responses,  I'll respond to each in order:

-

Which version of LFS book are you using?  And what is the output of
"version-
check.sh" in sect. 2.2.?

Version: LFS-9.1

version_check.sh =>

bash, version 5.0.3(1)-release
/bin/sh -> /usr/bin/bash
Binutils: (GNU Binutils for Debian) 2.31.1
bison (GNU Bison) 3.3.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.30
diff (GNU diffutils) 3.7
find (GNU findutils) 4.6.0.225-235f
GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 8.3.0-6) 8.3.0
g++ (Debian 8.3.0-6) 8.3.0
(Debian GLIBC 2.28-10) 2.28
grep (GNU grep) 3.3
gzip 1.9
Linux version 4.19.0-8-amd64 (debian-ker...@lists.debian.org) (gcc version
8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.98-1 (2020-01-26)
m4 (GNU M4) 1.4.18
GNU Make 4.2.1
GNU patch 2.7.6
Perl version='5.28.1';
Python 3.7.3
sed (GNU sed) 4.7
tar (GNU tar) 1.30
texi2any (GNU texinfo) 6.5
xz (XZ Utils) 5.2.4
g++ compilation OK

-

dump question, but are the virtual filesystems mounted as described in
section 6.2 ?

I have played close attention to the instructions about the mounting and
chroot and noticed that it is often identified as the culprit in earlier
conversations.  The partition is mounted on boot via fstab then I run the
following commands as root:
mount -v --bind /dev $LFS/dev && mount -vt devpts devpts $LFS/dev/pts -o
gid=5,mode=620 && mount -vt proc proc $LFS/proc && mount -vt sysfs sysfs
$LFS/sys && mount -vt tmpfs tmpfs $LFS/run

if [ -h $LFS/dev/shm ]; then   mkdir -pv $LFS/$(readlink $LFS/dev/shm); fi

chroot "$LFS" /tools/bin/env -i HOME=/root
 TERM="$TERM"PS1='(lfs chroot) \u:\w\$ '
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h

I don't know how to try and verify beyond that :/

-

(I discarded /, /sys, /run, /proc & /boot)
TARGETSOURCE FSTYPE  OPTIONS
├─/devudev   devtmpf
rw,nosuid,relatime,size=401
│ ├─/dev/shm  tmpfs  tmpfs   rw,nosuid,nodev
│ ├─/dev/hugepageshugetlbfs  hugetlb
rw,relatime,pagesize=2M
│ ├─/dev/mqueue   mqueue mqueue  rw,relatime
│ └─/dev/pts  devpts devpts
 rw,relatime,gid=5,mode=620,
│   └─/dev/ptsdevpts devpts
 rw,nosuid,noexec,relatime,g
├─/mnt/lfs/dev/sdb10 ext4rw,relatime
│ ├─/mnt/lfs/dev  udev   devtmpf
rw,nosuid,relatime,size=401
│ │ └─/mnt/lfs/dev/ptsdevpts devpts
 rw,relatime,gid=5,mode=620,
│ ├─/mnt/lfs/proc proc   procrw,relatime
│ ├─/mnt/lfs/sys  sysfs  sysfs   rw,relatime
│ └─/mnt/lfs/run  tmpfs  tmpfs   rw,relatime

The following are run from within the chroot environment:
ls -l $LFS/var/run
lrwxrwxrwx 1 root root 4 Apr 11 13:47 /var/run -> /run

ls -l $LFS/dev/shm
* nothing returned *
ls -l $LFS/dev
drwxr-xr-x  2 root   root40 Apr 14 12:08 shm(it is listed
despite not returning for the command above)

based on your expected response, It appears to me that /dev/shm is not
mounted correctly.

If believe that is supposed to be achieved by this command:
if [ -h $LFS/dev/shm ]; then   mkdir -pv $LFS/$(readlink $LFS/dev/shm); fi

Each of these commands return nil if run in isolation:
[ -h $LFS/dev/shm ]   ** i have no idea what is performed by this syntax **
readlink $LFS/dev/shm** maybe i missed a command to make this link? i
don't see it in the end of chapter 5 **

--

I also received a response on the linuxquestions thread:
https://www.linuxquestions.org/questions/showthread.php?p=6110835#post6110835

The fellow mentioned that debian doesn't allow users to an su to
unpermissioned user without password.  So i tried to give nobody a
password.  While this didn't change the response in chroot, it did allow
the command to pass as root outside of chroot.  However, the result was
full of errors, which I guess is not surprising given the environment.

-

Thanks everyone for the suggestions!
-- 
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


Re: [lfs-support] su: Cannot drop the controlling terminal - 6.25 GCC

2020-04-12 Thread Ken Moffat
On Sun, Apr 12, 2020 at 10:01:07PM +0800, devin operline wrote:
> 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
> 

Beyond what other people have said, one item I noticed:

> 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
 ^^

(section 5.15.1, at the bottom -
ln -s libncursesw.so /tools/lib/libncurses.so)

At this point in the build, libncursesw.so can only be in
/tools/lib.  You showed output from ls -l for /lib, with it not
present, but that is correct until a little later in chapter 6.

ĸen
-- 
The beauty of reading a page of de Selby is that it leads one
inescapably to the conclusion that one is not, of all nincompoops,
the greatest.-- du Garbandier
-- 
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


Re: [lfs-support] su: Cannot drop the controlling terminal - 6.25 GCC

2020-04-12 Thread Bruce Dubbs

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  sysfsrw,relatime
│ ├─/mnt/lfs/run   runtmpfsrw,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


Re: [lfs-support] su: Cannot drop the controlling terminal - 6.25 GCC

2020-04-12 Thread Thomas Trepl
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 ?

--
Thomas

-- 
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


Re: [lfs-support] su: Cannot drop the controlling terminal - 6.25 GCC

2020-04-12 Thread Xi Ruoyao
On 2020-04-12 22:01 +0800, devin operline wrote:
> 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

I digged up my mail archive for a while.  Douglas said he'd been using Debian 10
as the host to build LFS.  So I think it's not a bug of Debian or LFS book.

> 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

All these seem OK.

Which version of LFS book are you using?  And what is the output of "version-
check.sh" in sect. 2.2.?
-- 
Xi Ruoyao 
School of Aerospace Science and Technology, Xidian University

-- 
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