LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 04-03-2016, 06:46 AM   #1
Luc1f3r
LQ Newbie
 
Registered: Apr 2016
Posts: 13

Rep: Reputation: Disabled
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}

Thanks in advance!
 
Old 04-03-2016, 07:16 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Either you're building as a user and need 'sudo make install' or your disk mounting options are poor.
 
Old 04-04-2016, 05:52 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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.
 
Old 04-04-2016, 09:44 AM   #4
Luc1f3r
LQ Newbie
 
Registered: Apr 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
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]
 
Old 04-04-2016, 09:55 AM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Please preview your post before posting so that you can see if tags etc are correct, see this:
http://www.linuxquestions.org/questi....php?do=bbcode
For the correct use of code tags etc.

Your version check has shown a number of problems:
Quote:
...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)...
Quote:
... 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.
 
Old 04-30-2016, 08:51 AM   #6
Luc1f3r
LQ Newbie
 
Registered: Apr 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi Keith,

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 ~]#

Thanks!
 
Old 04-30-2016, 08:58 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Please use code tags.
This is roughly what you should have
Code:
keithhedger@LFSHal:/media/LinuxData/Development64/GithubProjects/LFSPkgBuilds/LFSScripts-> ./version-check.sh 
bash, version 4.3.39(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils) 2.25.1
bison (GNU Bison) 3.0.4
yacc is bison (GNU Bison) 3.0.4
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.24
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.3-p4, GNU MP 6.0.0)
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 5.2.0
g++ (GCC) 5.2.0
(GNU libc) 2.22
grep (GNU grep) 2.21
gzip 1.6
Linux version 4.2.0 (root@LFSCerebro) (gcc version 5.2.0 (GCC) ) #1 SMP PREEMPT Fri Dec 18 16:08:43 GMT 2015
m4 (GNU M4) 1.4.17
GNU Make 4.1
GNU patch 2.7.5
Perl version='5.22.0';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.28
texi2any (GNU texinfo) 6.0
xz (XZ Utils) 5.2.1
g++ compilation OK
As you can see from yours you still have a problem with yacc, see this:
http://www.linuxfromscratch.org/lfs/.../hostreqs.html

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.
 
Old 04-30-2016, 09:10 AM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
See this:
http://www.linuxquestions.org/questi...2/#post5538504
 
Old 05-03-2016, 01:51 AM   #9
Luc1f3r
LQ Newbie
 
Registered: Apr 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
LFS 7.3 - make install errors for Glibc-2.17 in Chapter 5.7

Hi Keith, I am building on slackware now and progress is good so far. Thanks for your help
 
Old 05-03-2016, 06:36 AM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by Luc1f3r View Post
Hi Keith, I am building on slackware now and progress is good so far. Thanks for your help
In which case I would probably mark this thread as SOLVED
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 7.3 / Chapter 6.9.1 / Page 89 / glibc make check errors Drumachine Linux From Scratch 4 08-14-2013 03:17 PM
LFS 6.7 Chapter 6 Glibc Make -k errors karm Linux From Scratch 3 11-10-2010 11:13 AM
Errors when running Glibc-2.3.6 test suite (reference: LFS 6.2 chapter 6.9) PingFloyd Linux From Scratch 2 02-02-2007 09:43 PM
LFS 6-1: Glibc Test Suite Fails at end with 2 errors in Chapter 6 TGWDNGHN Linux From Scratch 1 07-26-2005 12:23 PM
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration