Article 4W3WR LFS Verion 9; Section 6.21.1 GCC check fails with "su: Cannot drop the controlling terminal"

LFS Verion 9; Section 6.21.1 GCC check fails with "su: Cannot drop the controlling terminal"

by
rwx
from LinuxQuestions.org on (#4W3WR)
Hi, I am going through the LFS book for the first time. I am attempting to install LFS on a partition. My host system is Ubuntu 18.04.

I have gotten to section 6.21.1 "Installation of GCC".

When I run the following command, I get the following error.

Observation 1:
su nobody -s /bin/bash -c "PATH=$PATH make -k check"
su: Cannot drop the controlling terminal

I have read and tried several suggestions on this and other forums. I have checked the mount points:

mount -v --bind /dev $LFS/dev

and

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

I am unable to run mount in the root user mode. Not sure why that is the case. I can see files and subdirectories in each mount points and so I understand that the mount is okay.

One thing which doesn't sit right, I am forced to execute the mount commands from the lfs user space, ableit with sudo. The sudo requirement isn't listed in the book. However I am unable to run the mount commands without sudo (Observation 2).

I have also tried splitting up the check command, that is change user, and then run the make target. When I do a simple "su nobody", I get the following error: Unable to cd to '/dev/null' (Observation 3).

Can anyone offer any suggestions such taht I can progress past this point? I have a gut feeling that all the observations are related, which is why I included them.

Any help will be appreciated.latest?d=yIl2AUoC8zA latest?i=0kf7lifNTnA:bd7DmlqvbDw:F7zBnMy latest?i=0kf7lifNTnA:bd7DmlqvbDw:V_sGLiP latest?d=qj6IDK7rITs latest?i=0kf7lifNTnA:bd7DmlqvbDw:gIN9vFw0kf7lifNTnA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments