Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
First: Urgent??? I don't think so. We (LQ) don't like to see this, we are doing this in our "free" time and do not get any compensation. Your problem is as urgent as any other problem posted on this board.
Back to your problem. This:
+ NON_ROOT_USERNAME=nobody
++ id -g nobody
id: nobody: No such user
Looks suspicious. Did you by any chance forget this step: 6.6. Creating Essential Files and Symlinks
First: Urgent??? I don't think so. We (LQ) don't like to see this, we are doing this in our "free" time and do not get any compensation. Your problem is as urgent as any other problem posted on this board.
Back to your problem. This:
+ NON_ROOT_USERNAME=nobody
++ id -g nobody
id: nobody: No such user
Looks suspicious. Did you by any chance forget this step: 6.6. Creating Essential Files and Symlinks
I re-entered the chroot environment and it solved my previous problem but
now when i run
Code:
make NON_ROOT_USERNAME=nobody check-root
it shows a line which is as follows
Code:
FAIL:cp/cp-av-enotsup-xattr
one screen of out put is
Code:
++ cd /sources/coreutils-7.4/tests/cu-cp-mv-enotsup-xattr.nXsiL31oGN
++ diff --version
++ grep GNU
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
++ pwd
+ cwd=/sources/coreutils-7.4/tests/cu-cp-mv-enotsup-xattr.nXsiL31oGN
+ dd if=/dev/zero of=blob bs=8192 count=200
+ mkdir mnt
+ mkfs -t ext2 -F blob
mke2fs 1.41.8 (11-Jul-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
224 inodes, 400 blocks
20 blocks (5.00%) reserved for the super user
First data block=0
1 block group
32768 blocks per group, 32768 fragments per group
224 inodes per group
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
+ mount -oloop,nouser_xattr blob mnt
./cp/cp-mv-enotsup-xattr: line 40: mount: command not found
+ framework_failure
+ error_ 'failure in testing framework'
+ echo './cp/cp-mv-enotsup-xattr: failure in testing framework'
./cp/cp-mv-enotsup-xattr: failure in testing framework
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ cd /
+ umount /sources/coreutils-7.4/tests/cu-cp-mv-enotsup-xattr.nXsiL31oGN/mnt
./cp/cp-mv-enotsup-xattr: line 31: umount: command not found
+ cd /sources/coreutils-7.4/tests
+ chmod -R u+rwx /sources/coreutils-7.4/tests/cu-cp-mv-enotsup-xattr.nXsiL31oGN
+ rm -rf /sources/coreutils-7.4/tests/cu-cp-mv-enotsup-xattr.nXsiL31oGN
+ exit 1
SKIP: dd/skip-seek-past-dev (exit: 77)
======================================
+ dd --version
dd (coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Paul Rubin, David MacKenzie, and Stuart Kemp.
+ . ./test-lib.sh
++ unset function_test
++ eval 'function_test() { return 11; }; function_test'
+++ function_test
+++ return 11
++ test 11 '!=' 11
+++ pwd
++ test_dir_=/sources/coreutils-7.4/tests
+++ this_test_
+++ echo ././dd/skip-seek-past-dev
+++ sed 's,.*/,,'
++ this_test=skip-seek-past-dev
+++ /sources/coreutils-7.4/src/mktemp -d --tmp=/sources/coreutils-7.4/tests cu-skip-seek-past-dev.XXXXXXXXXX
++ t_=/sources/coreutils-7.4/tests/cu-skip-seek-past-dev.7ScCUCFT5e
++ trap remove_tmp_ 0
++ trap 'Exit $?' 1 2 13 15
++ cd /sources/coreutils-7.4/tests/cu-skip-seek-past-dev.7ScCUCFT5e
++ diff --version
++ grep GNU
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
+ fail=0
++ df -P --local .
df: Warning: cannot read table of mounted file systems
++ tail -n1
++ cut '-d ' -f1
+ device=-
++ get_device_size -
++ BLOCKDEV=blockdev
++ blockdev -V
++ blockdev --getsize64 -
Usage:
blockdev -V
blockdev --report [devices]
blockdev [-v|-q] commands devices
Available commands:
--getsz get size in 512-byte sectors
--setro set read-only
--setrw set read-write
--getro get read-only
--getss get sectorsize
--getbsz get blocksize
--setbsz BLOCKSIZE set blocksize
--getsize get 32-bit sector count
--getsize64 get size in bytes
--setra READAHEAD set readahead
--getra get readahead
--setfra FSREADAHEAD set filesystem readahead
--getfra get filesystem readahead
--flushbufs flush buffers
--rereadpt reread partition table
+ dev_size=
+ skip_test_ 'failed to determine size of -'
+ echo './dd/skip-seek-past-dev: skipping test: failed to determine size of -'
+ head -1
+ echo './dd/skip-seek-past-dev: skipping test: failed to determine size of -'
./dd/skip-seek-past-dev: skipping test: failed to determine size of -
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ cd /sources/coreutils-7.4/tests
+ chmod -R u+rwx /sources/coreutils-7.4/tests/cu-skip-seek-past-dev.7ScCUCFT5e
+ rm -rf /sources/coreutils-7.4/tests/cu-skip-seek-past-dev.7ScCUCFT5e
+ exit 77
SKIP: ls/capability (exit: 77)
==============================
+ ls --version
ls (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
+ . ./test-lib.sh
++ unset function_test
++ eval 'function_test() { return 11; }; function_test'
+++ function_test
+++ return 11
++ test 11 '!=' 11
+++ pwd
++ test_dir_=/sources/coreutils-7.4/tests
+++ this_test_
+++ echo ././ls/capability
+++ sed 's,.*/,,'
++ this_test=capability
+++ /sources/coreutils-7.4/src/mktemp -d --tmp=/sources/coreutils-7.4/tests cu-capability.XXXXXXXXXX
++ t_=/sources/coreutils-7.4/tests/cu-capability.RKEu6GdC9H
++ trap remove_tmp_ 0
++ trap 'Exit $?' 1 2 13 15
++ cd /sources/coreutils-7.4/tests/cu-capability.RKEu6GdC9H
++ diff --version
++ grep GNU
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
+ grep '^#define HAVE_CAP 1$' /sources/coreutils-7.4/lib/config.h
+ skip_test_ 'configured without libcap support'
+ echo './ls/capability: skipping test: configured without libcap support'
+ head -1
+ echo './ls/capability: skipping test: configured without libcap support'
./ls/capability: skipping test: configured without libcap support
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ cd /sources/coreutils-7.4/tests
+ chmod -R u+rwx /sources/coreutils-7.4/tests/cu-capability.RKEu6GdC9H
+ rm -rf /sources/coreutils-7.4/tests/cu-capability.RKEu6GdC9H
+ exit 77
SKIP: misc/chcon (exit: 77)
===========================
+ chcon --version
chcon (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Russell Coker and Jim Meyering.
+ . ./test-lib.sh
++ unset function_test
++ eval 'function_test() { return 11; }; function_test'
+++ function_test
+++ return 11
++ test 11 '!=' 11
+++ pwd
++ test_dir_=/sources/coreutils-7.4/tests
+++ this_test_
+++ echo ././misc/chcon
+++ sed 's,.*/,,'
++ this_test=chcon
+++ /sources/coreutils-7.4/src/mktemp -d --tmp=/sources/coreutils-7.4/tests cu-chcon.XXXXXXXXXX
++ t_=/sources/coreutils-7.4/tests/cu-chcon.KvwTjVwKcg
++ trap remove_tmp_ 0
++ trap 'Exit $?' 1 2 13 15
++ cd /sources/coreutils-7.4/tests/cu-chcon.KvwTjVwKcg
++ diff --version
++ grep GNU
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
+ require_selinux_
+ case `ls -Zd .` in
++ ls -Zd .
+ skip_test_ 'this system (or maybe just' 'the current file system) lacks SELinux support'
+ echo './misc/chcon: skipping test: this system (or maybe just' 'the current file system) lacks SELinux support'
+ head -1
+ echo './misc/chcon: skipping test: this system (or maybe just' 'the current file system) lacks SELinux support'
./misc/chcon: skipping test: this system (or maybe just the current file system) lacks SELinux support
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ cd /sources/coreutils-7.4/tests
+ chmod -R u+rwx /sources/coreutils-7.4/tests/cu-chcon.KvwTjVwKcg
+ rm -rf /sources/coreutils-7.4/tests/cu-chcon.KvwTjVwKcg
+ exit 77
SKIP: misc/selinux (exit: 77)
=============================
+ chcon --version
chcon (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Russell Coker and Jim Meyering.
+ cp --version
cp (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering.
+ ls --version
ls (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
+ mv --version
mv (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Parker, David MacKenzie, and Jim Meyering.
+ stat --version
stat (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Michael Meskes.
+ . ./test-lib.sh
++ unset function_test
++ eval 'function_test() { return 11; }; function_test'
+++ function_test
+++ return 11
++ test 11 '!=' 11
+++ pwd
++ test_dir_=/sources/coreutils-7.4/tests
+++ this_test_
+++ echo ././misc/selinux
+++ sed 's,.*/,,'
++ this_test=selinux
+++ /sources/coreutils-7.4/src/mktemp -d --tmp=/sources/coreutils-7.4/tests cu-selinux.XXXXXXXXXX
++ t_=/sources/coreutils-7.4/tests/cu-selinux.AfKwHlZE9P
++ trap remove_tmp_ 0
++ trap 'Exit $?' 1 2 13 15
++ cd /sources/coreutils-7.4/tests/cu-selinux.AfKwHlZE9P
++ diff --version
++ grep GNU
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
+ require_selinux_
+ case `ls -Zd .` in
++ ls -Zd .
+ skip_test_ 'this system (or maybe just' 'the current file system) lacks SELinux support'
+ echo './misc/selinux: skipping test: this system (or maybe just' 'the current file system) lacks SELinux support'
+ head -1
+ echo './misc/selinux: skipping test: this system (or maybe just' 'the current file system) lacks SELinux support'
./misc/selinux: skipping test: this system (or maybe just the current file system) lacks SELinux support
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ cd /sources/coreutils-7.4/tests
+ chmod -R u+rwx /sources/coreutils-7.4/tests/cu-selinux.AfKwHlZE9P
+ rm -rf /sources/coreutils-7.4/tests/cu-selinux.AfKwHlZE9P
+ exit 77
SKIP: mkdir/writable-under-readonly (exit: 77)
==============================================
+ mkdir --version
mkdir (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
+ . ./test-lib.sh
++ unset function_test
++ eval 'function_test() { return 11; }; function_test'
+++ function_test
+++ return 11
++ test 11 '!=' 11
+++ pwd
++ test_dir_=/sources/coreutils-7.4/tests
+++ this_test_
+++ echo ././mkdir/writable-under-readonly
+++ sed 's,.*/,,'
++ this_test=writable-under-readonly
+++ /sources/coreutils-7.4/src/mktemp -d --tmp=/sources/coreutils-7.4/tests cu-writable-under-readonly.XXXXXXXXXX
++ t_=/sources/coreutils-7.4/tests/cu-writable-under-readonly.UK8NMSvz1Y
++ trap remove_tmp_ 0
++ trap 'Exit $?' 1 2 13 15
++ cd /sources/coreutils-7.4/tests/cu-writable-under-readonly.UK8NMSvz1Y
++ diff --version
++ grep GNU
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
+ skip_test_ temporarily disabled
+ echo './mkdir/writable-under-readonly: skipping test: temporarily' disabled
+ head -1
+ echo './mkdir/writable-under-readonly: skipping test: temporarily' disabled
./mkdir/writable-under-readonly: skipping test: temporarily disabled
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ cd /sources/coreutils-7.4/tests
+ chmod -R u+rwx /sources/coreutils-7.4/tests/cu-writable-under-readonly.UK8NMSvz1Y
+ rm -rf /sources/coreutils-7.4/tests/cu-writable-under-readonly.UK8NMSvz1Y
+ exit 77
SKIP: rm/one-file-system (exit: 77)
===================================
+ rm --version
rm (GNU coreutils) 7.4
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Paul Rubin, David MacKenzie, Richard M. Stallman,
and Jim Meyering.
+ . ./test-lib.sh
++ unset function_test
++ eval 'function_test() { return 11; }; function_test'
+++ function_test
+++ return 11
++ test 11 '!=' 11
+++ pwd
++ test_dir_=/sources/coreutils-7.4/tests
+++ this_test_
+++ echo ././rm/one-file-system
+++ sed 's,.*/,,'
++ this_test=one-file-system
+++ /sources/coreutils-7.4/src/mktemp -d --tmp=/sources/coreutils-7.4/tests cu-one-file-system.XXXXXXXXXX
++ t_=/sources/coreutils-7.4/tests/cu-one-file-system.iePZeWKuzG
++ trap remove_tmp_ 0
++ trap 'Exit $?' 1 2 13 15
++ cd /sources/coreutils-7.4/tests/cu-one-file-system.iePZeWKuzG
++ diff --version
++ grep GNU
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
+ . /sources/coreutils-7.4/tests/other-fs-tmpdir
++ test '' = set
++ CANDIDATE_TMP_DIRS='. /tmp /dev/shm /var/tmp /usr/tmp /root'
++ other_partition_tmpdir=
+++ stat -c %d .
++ dot_mount_point=776
++ for d in '$CANDIDATE_TMP_DIRS'
++ test -d .
+++ stat -L -c %d .
++ d_mount_point=776
++ test x776 = x776
++ continue
++ for d in '$CANDIDATE_TMP_DIRS'
++ test -d /tmp
+++ stat -L -c %d /tmp
++ d_mount_point=776
++ test x776 = x776
++ continue
++ for d in '$CANDIDATE_TMP_DIRS'
++ test -d /dev/shm
+++ stat -L -c %d /dev/shm
++ d_mount_point=25
++ test x25 = x776
++ mkdir /dev/shm/tmp13120
++ other_partition_tmpdir=/dev/shm/tmp13120
++ break
++ test -z /dev/shm/tmp13120
++ test yes = yes
++ set -x
+ t=/dev/shm/tmp13120
+ mkdir -p a/b /dev/shm/tmp13120/y
+ mount --bind /dev/shm/tmp13120 a/b
./rm/one-file-system: line 37: mount: command not found
+ skip_test_ 'This test requires mount with a working --bind option.'
+ echo './rm/one-file-system: skipping test: This test requires mount with a working --bind option.'
+ head -1
+ echo './rm/one-file-system: skipping test: This test requires mount with a working --bind option.'
./rm/one-file-system: skipping test: This test requires mount with a working --bind option.
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ umount /dev/shm/tmp13120
./rm/one-file-system: line 30: umount: command not found
+ rm -rf /dev/shm/tmp13120
+ cd /sources/coreutils-7.4/tests
+ chmod -R u+rwx /sources/coreutils-7.4/tests/cu-one-file-system.iePZeWKuzG
+ rm -rf /sources/coreutils-7.4/tests/cu-one-file-system.iePZeWKuzG
+ exit 77
======================================
1 of 12 tests failed
(7 tests were not run)
See tests/test-suite.log
Please report to bug-coreutils@gnu.org
======================================
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory `/sources/coreutils-7.4/tests'
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory `/sources/coreutils-7.4/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/sources/coreutils-7.4/tests'
make[1]: *** [check-root] Error 2
make[1]: Leaving directory `/sources/coreutils-7.4/tests'
make: *** [check-root] Error 2
root:/sources/coreutils-7.4#
After re-entering the chrooted environment, did you remove all the coreutils stuff and start 6.21 again with a clean sheet? You should.
Your screen output looks 'funny', especially the first part. It isn't at all clear what the first part represents, all from + mount -oloop,nouser_xattr blob mnt looks to be part of the cp-mv-enotsup-xattr test. But that part doesn't look at all like the output given on the LFS build-log site.
BTW: If a specific error isn't mentioned in the book (as in 'ignore error this-and-that'), you cannot continue. Especially if you see something like this: .....: line 40: mount: command not found
After re-entering the chrooted environment, did you remove all the coreutils stuff and start 6.21 again with a clean sheet? You should.
Your screen output looks 'funny', especially the first part. It isn't at all clear what the first part represents, all from + mount -oloop,nouser_xattr blob mnt looks to be part of the cp-mv-enotsup-xattr test. But that part doesn't look at all like the output given on the LFS build-log site.
BTW: If a specific error isn't mentioned in the book (as in 'ignore error this-and-that'), you cannot continue. Especially if you see something like this: .....: line 40: mount: command not found
After re-entering chroot environment i did clean the coreutils.
infact i did it thrice but i face the same problem.
1) you checked if mount and umount (and possibly blockdev) are correctly installed,
2) you made sure that, after re-entering the chrooted environment, the virtual kernel filesystems are (still) mounted,
3) your previous issues (gcc to name just one) are solved.
You did not mention anything about the funny looking log output. Did you copy/paste parts or all of it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.