LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-07-2018, 08:54 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
LFS 8.3, error during make phase of glibc


I was attempting to build glibc in chapter six of LFS 8.3. In view of (a) the fact of me using a package manager and (b) the complexity and expected long compile times of glibc, I decided to test the compilation process and work out my build script while outside of my 8.3 system and as a non-root user.

Well, glibc fails, and it fails in an odd way, during the make phase (NOT the make install phase). Here are the last few lines of the make (using quote instead of code so the lines can wrap)
Quote:
make[4]: Leaving directory '/home/bob/compile/glibc/build_it/glibc-2.28/misc'
make subdir=nptl -C ../nptl ..=../ objdir=/home/bob/compile/glibc/build_it/glibc-2.28/build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-libc-lowlevellock.os rtld-libc_multiple_threads.os'
make[4]: Entering directory '/home/bob/compile/glibc/build_it/glibc-2.28/nptl'
/usr/bin/install -c -m 644 ../include/limits.h /usr/include/limits.h
/usr/bin/install: cannot remove '/usr/include/limits.h': Permission denied
/usr/bin/install -c -m 644 ../include/limits.h /usr/include/limits.h
/usr/bin/install: cannot remove '/usr/include/limits.h': Permission denied
make[4]: *** No rule to make target '/usr/include/limits.h', needed by '/home/bob/compile/glibc/build_it/glibc-2.28/build/pthread-errnos.h'. Stop.
make[4]: Leaving directory '/home/bob/compile/glibc/build_it/glibc-2.28/nptl'
make[3]: *** [../o-iterator.mk:9: /home/bob/compile/glibc/build_it/glibc-2.28/build/nptl/rtld-libc-lowlevellock.os] Error 2
make[3]: Leaving directory '/home/bob/compile/glibc/build_it/glibc-2.28/elf'
make[2]: *** [Makefile:474: /home/bob/compile/glibc/build_it/glibc-2.28/build/elf/rtld-libc.a] Error 2
make[2]: Leaving directory '/home/bob/compile/glibc/build_it/glibc-2.28/elf'
make[1]: *** [Makefile:258: elf/subdir_lib] Error 2
make[1]: Leaving directory '/home/bob/compile/glibc/build_it/glibc-2.28'
make: *** [Makefile:9: all] Error 2
Why on earth would the make phase try to install things to the system include directory? What madness is glibc doing to all those other people who unsuspectingly and trustingly compile it as root? And how do I get it to stop?

Thank you.
 
Old 11-08-2018, 06:17 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,311

Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
Are you following their instructions for a package compiler, or making your own. It's unusual, to put it mildly to see a 'make' invoke install.

It's clearly a permissions issue so I would check those systematically. Apart from 'ls -l' there is a lazy way of checking directories by trying 'touch </path/to/>file'. If you get an error, you haven't write permission. Otherwise simply 'rm file' entering the same path.
 
  


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
LFS 7.1 Glibc-2.14.1 make error samuraixp Linux From Scratch 3 03-18-2012 05:21 AM
LFS 6.5 Glibc 2.10.1 --> error when running make Soulman Linux From Scratch 1 01-17-2010 04:54 AM
make check error 6.9.1 glibc lfs 6.5 aahiqmir Linux From Scratch 1 12-06-2009 07:49 PM
glibc 2.3.4 - make install error - LFS 6.1.1-3 dave-gallagher Linux From Scratch 2 05-23-2006 04:12 PM
make glibc error (LFS) gatblast45 Linux - Software 3 12-21-2004 11:30 AM

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

All times are GMT -5. The time now is 12:20 PM.

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