[SOLVED] LFS 7.3 - make install errors for Glibc-2.17 in Chapter 5.7
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.
LFS 7.3 - make install errors for Glibc-2.17 in Chapter 5.7
Hi All,
I followed the guide for LFS 7.3 and everything worked fine without any errors but now I am getting the following error when I run make install for Glibc.
I am doing lfs on VMware ESXi/CentOS 6.4 Live CD.
{code}
make[4]: Entering directory `/mnt/lfs/sources/glibc-2.17/gmon'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.17/gmon'
make subdir=io -C ../io ..=../ objdir=/mnt/lfs/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-xstat.os rtld-fxstat.os rtld-lxstat.os rtld-open.os rtld-close.os rtld-read.os rtld-write.os rtld-access.os rtld-fcntl.os'
make[4]: Entering directory `/mnt/lfs/sources/glibc-2.17/io'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.17/io'
make subdir=misc -C ../misc ..=../ objdir=/mnt/lfs/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-mmap.os rtld-munmap.os rtld-mprotect.os rtld-llseek.os'
make[4]: Entering directory `/mnt/lfs/sources/glibc-2.17/misc'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.17/misc'
make subdir=nptl -C ../nptl ..=../ objdir=/mnt/lfs/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-libc-lowlevellock.os rtld-libc-cancellation.os rtld-libc_multiple_threads.os rtld-forward.os'
make[4]: Entering directory `/mnt/lfs/sources/glibc-2.17/nptl'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.17/nptl'
make subdir=posix -C ../posix ..=../ objdir=/mnt/lfs/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-uname.os rtld-_exit.os rtld-getpid.os rtld-environ.os'
make[4]: Entering directory `/mnt/lfs/sources/glibc-2.17/posix'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.17/posix'
make subdir=setjmp -C ../setjmp ..=../ objdir=/mnt/lfs/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-setjmp.os rtld-__longjmp.os'
make[4]: Entering directory `/mnt/lfs/sources/glibc-2.17/setjmp'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.17/setjmp'
make subdir=signal -C ../signal ..=../ objdir=/mnt/lfs/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-sigaction.os'
make[4]: Entering directory `/mnt/lfs/sources/glibc-2.17/signal'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.17/signal'
make subdir=stdlib -C ../stdlib ..=../ objdir=/mnt/lfs/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-bsearch.os rtld-exit.os rtld-cxa_atexit.os'
make[4]: Entering directory `/mnt/lfs/sources/glibc-2.17/stdlib'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.17/stdlib'
make subdir=string -C ../string ..=../ objdir=/mnt/lfs/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-strchr.os rtld-strcmp.os rtld-strcpy.os rtld-strlen.os rtld-strnlen.os rtld-memchr.os rtld-memcmp.os rtld-memmove.os rtld-memset.os rtld-mempcpy.os rtld-stpcpy.os rtld-memcpy.os rtld-wordcopy.os rtld-rawmemchr.os rtld-strcmp-ssse3.os rtld-strend-sse4.os rtld-memcmp-sse4.os rtld-memcpy-ssse3.os rtld-mempcpy-ssse3.os rtld-memmove-ssse3.os rtld-memcpy-ssse3-back.os rtld-mempcpy-ssse3-back.os rtld-memmove-ssse3-back.os rtld-strlen-sse4.os rtld-strlen-sse2-no-bsf.os rtld-memset-x86-64.os rtld-strcpy-ssse3.os rtld-stpcpy-ssse3.os rtld-strcpy-sse2-unaligned.os rtld-stpcpy-sse2-unaligned.os rtld-strlen-sse2-pminub.os rtld-strnlen-sse2-no-bsf.os rtld-strchr-sse2-no-bsf.os rtld-memcmp-ssse3.os rtld-cacheinfo.os'
make[4]: Entering directory `/mnt/lfs/sources/glibc-2.17/string'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.17/string'
make subdir=time -C ../time ..=../ objdir=/mnt/lfs/sources/glibc-build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-setitimer.os'
make[4]: Entering directory `/mnt/lfs/sources/glibc-2.17/time'
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/mnt/lfs/sources/glibc-2.17/time'
make[3]: Leaving directory `/mnt/lfs/sources/glibc-2.17/elf'
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.17/elf'
./scripts/mkinstalldirs /tools/lib
/usr/bin/install -c -m 644 /mnt/lfs/sources/glibc-build/libc.a /tools/lib/libc.a
/usr/bin/install: cannot remove `/tools/lib/libc.a': Read-only file system
make[1]: *** [/tools/lib/libc.a] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.17'
make: *** [install] Error 2
{code}
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152
Rep:
use [code] not {code} for tags, what chapter are you on? please post the output of the version.sh script, you should NOT use sudo at any point when building LFS, when building the tool chain you run buid install as the LFS user, when building the basic system you should be in the chroot envronment as root, sudo is not part of the basic LFS system.
Hi, Thanks for your reply. I am on chapter 5.7 (LFS 7.3)
Output of version-check.sh
[code]
[root@livecd ~]# bash version-check.sh
bash, version 4.1.2(1)-release
/bin/sh -> /bin/bash
Binutils: version 2.20.51.0.2-5.36.el6 20100205
bison (GNU Bison) 2.4.1
Usage: /usr/bin/yacc [options] filename
Options:
-b file_prefix set filename prefix (default "y.")
-d write definitions (y.tab.h)
-g write a graphical description
-l suppress #line directives
-o output_file (default "y.tab.c")
-p symbol_prefix set symbol prefix (default "yy")
-r produce separate code and table files (y.code.c)
-t add debugging support
-v write description (y.output)
-V show version information and exit
yacc is
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 8.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 3.1.7
/usr/bin/awk -> /bin/gawk
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)
(GNU libc) 2.12
GNU grep 2.6.3
gzip 1.3.12
Linux version 2.6.32-358.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Feb 22 00:31:26 UTC 2013
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.23
makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 4.999.9beta
version-check.sh: line 50: dummy.c: Read-only file system
g++ compilation failed
[code]
... version-check.sh: line 50: dummy.c: Read-only file system
g++ compilation failed ...
Check yacc/bison is installed on your host system correctly, check that your LFS partition is mounted r/w.
Under NO circumstances should you be using 'sudo' at this stage, if you have a permission problem with install etc then you have done something wrong.
Sorry for the late response. I was occupied somewhere and had to put this project on hold. So, I restarted LFS from scratch on CentOS 7. Now it says yacc not found. Here is the output of version-check.sh :
[root@localhost ~]# bash version-check.sh
bash, version 4.2.45(1)-release
/bin/sh -> /usr/bin/bash
Binutils: version 2.23.52.0.1-16.el7 20130226
bison (GNU Bison) 2.7
yacc not found
version-check.sh: not found
Coreutils: 8.22
diff (GNU diffutils) 3.3
find (GNU findutils) 4.5.11
GNU Awk 4.0.2
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
(GNU libc) 2.17
grep (GNU grep) 2.16
gzip 1.5
Linux version 3.10.0-123.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Mon Jun 30 12:09:22 UTC 2014
m4 (GNU M4) 1.4.16
GNU Make 3.82
GNU patch 2.7.1
Perl version='5.16.3';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.26
makeinfo (GNU texinfo) 5.1
xz (XZ Utils) 5.1.2alpha
g++ compilation OK
[root@localhost ~]#
Note this:
Bison-2.3 (/usr/bin/yacc should be a link to bison or small script that executes bison)
Until you get a the correct o/p from the version script you are will keep running in to problems, consider switching the host system to Slackware as that is fully complient, after you have built LFS you can always remove Slackware to recover the space.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.