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 02-06-2009, 07:29 AM   #1
antivirus
Member
 
Registered: Feb 2007
Location: Bangladesh
Distribution: Fedora Core 9
Posts: 59

Rep: Reputation: 15
Problem with the Glibc-2.7


Patching Glib2.7 is successful. When i'm giving 'make' command
Code:
*** No rule to make target `/mnt/clfs/glibc-build/nptl
This error comes.





Code:
clfs:/mnt/clfs/glibc-build$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.7 objdir=`pwd` all
make[1]: Entering directory `/mnt/clfs/glibc-2.7'
make  subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/csu'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/csu'
make  subdir=iconv -C iconv ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/iconv'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/iconv'
make  subdir=iconvdata -C iconvdata ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/iconvdata'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/iconvdata'
make  subdir=locale -C locale ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/locale'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/locale'
make  subdir=localedata -C localedata ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/localedata'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/localedata'
make  subdir=assert -C assert ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/assert'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/assert'
make  subdir=ctype -C ctype ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/ctype'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/ctype'
make  subdir=intl -C intl ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/intl'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/intl'
make  subdir=catgets -C catgets ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/catgets'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/catgets'
make  subdir=math -C math ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/math'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/math'
make  subdir=setjmp -C setjmp ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/setjmp'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/setjmp'
make  subdir=signal -C signal ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/signal'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/signal'
make  subdir=stdlib -C stdlib ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/stdlib'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/stdlib'
make  subdir=stdio-common -C stdio-common ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/stdio-common'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/stdio-common'
make  subdir=libio -C libio ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/libio'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/libio'
make  subdir=dlfcn -C dlfcn ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/dlfcn'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/dlfcn'
make  subdir=malloc -C malloc ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/malloc'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/malloc'
make  subdir=string -C string ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/string'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/string'
make  subdir=wcsmbs -C wcsmbs ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/wcsmbs'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/wcsmbs'
make  subdir=timezone -C timezone ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/timezone'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/timezone'
make  subdir=time -C time ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/time'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/time'
make  subdir=dirent -C dirent ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/dirent'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/dirent'
make  subdir=grp -C grp ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/grp'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/grp'
make  subdir=pwd -C pwd ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/pwd'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/pwd'
make  subdir=posix -C posix ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/posix'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/posix'
make  subdir=io -C io ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/io'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/io'
make  subdir=termios -C termios ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/termios'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/termios'
make  subdir=resource -C resource ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/resource'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/resource'
make  subdir=misc -C misc ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/misc'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/misc'
make  subdir=socket -C socket ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/socket'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/socket'
make  subdir=sysvipc -C sysvipc ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/sysvipc'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/sysvipc'
make  subdir=gmon -C gmon ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/gmon'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/gmon'
make  subdir=gnulib -C gnulib ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/gnulib'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/gnulib'
make  subdir=wctype -C wctype ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/wctype'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/wctype'
make  subdir=manual -C manual ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/manual'
make[2]: `subdir_lib' is up to date.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/manual'
make  subdir=shadow -C shadow ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/shadow'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/shadow'
make  subdir=po -C po ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/po'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/po'
make  subdir=argp -C argp ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/argp'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/argp'
make  subdir=crypt -C crypt ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/crypt'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/crypt'
make  subdir=nptl -C nptl ..=../ subdir_lib
make[2]: Entering directory `/mnt/clfs/glibc-2.7/nptl'
make[2]: *** No rule to make target `/mnt/clfs/glibc-build/nptl/pthread_spin_trylock.o', needed by `lib-noranlib'.  Stop.
make[2]: Leaving directory `/mnt/clfs/glibc-2.7/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/clfs/glibc-2.7'
make: *** [all] Error 2


What can i do mates?
 
Old 02-08-2009, 03:19 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please read ( again ) "How to ask for help"
http://cross-lfs.org/view/1.1.0/x86/...skforhelp.html
> > § 1.6.1.

? Book ? Chapter ? Host ? Target ? Architecture on target ?

And please provide a link to the book :
http://cross-lfs.org/view/1.1.0/x86/ ?? ?? ??

All information is a must, every time a new question is asked,
takes a lot of time to find it ... again.
________________________________________________________________
Glibc : This is crucial
Quote:
The following lines need to be added to 'config.cache'
for Glibc to support NPTL:

echo "libc_cv_forced_unwind=yes" > config.cache
echo "libc_cv_c_cleanup=yes" >> config.cache
So do not touch configure after this !

And by the way : better delete all "glibc" and start all over again.

........
 
Old 03-14-2009, 03:45 AM   #3
Shingoshi
Member
 
Registered: Oct 2006
Location: Cochise County, Arizona
Distribution: Gentoo-AMD64 / Slackware64-Current
Posts: 474
Blog Entries: 28

Rep: Reputation: 34
Please forgive my asking... But...

I'm not using LFS. But I am getting the same error while trying to build glibc-2.9 for Slackware. So I'm not sure where I'm supposed to add these two lines for this to work.
Quote:
The following lines need to be added to 'config.cache'
for Glibc to support NPTL:

echo "libc_cv_forced_unwind=yes" > config.cache
echo "libc_cv_c_cleanup=yes" >> config.cache
Do I just add these to my SlackBuild for glibc? And if so, at what point should they be added? Before or after configure has been run? Or does this go before the patches are applied?

Thank you for this previous post!
Xavian-Anderson Macpherson
Shingoshi
 
Old 03-15-2009, 02:30 AM   #4
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
Following the relevant page in CLFS, those commands would be executed after the patches are applied and before the configuration command from that page is executed (being sure to include the "--cache-file=config.cache" option as specified).

I'm not sure if these instructions will be equally valid for glibc-2.9, though. You're also probably better off asking about this in the Slackware forum, since Slackware's preferred build methods are likely to be at least somewhat different from those of (C)LFS. YMMV.
 
Old 03-15-2009, 02:58 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@ Shingoshi

Why change glibc ? ? Please see the "Slackbook".
> > Somewhere in the Slackware documentation it is said that :
If you do a regular upgrade of 'glibc', ( with a Slackware
'glibc package' ), all other packages must be updated too !

Glibc is your system ( together with the kernel )
and changing it will probably trash the system to be unusable
forever.
http://www.gnu.org/software/libc/resources.html
Quote:
Building glibc is quite tricky and has a number of pitfalls, not the least
of which include :

* Never install over a live system. The connection between the individual
parts of the glibc shared libraries is special. The libc.so shared library
uses private interfaces in ld.so and vice versa. On a live system with
dynamically linked applications if a new libc.so replaces an old one with a
different internal ABI your system will be broken. libpthread.so, libm.so, and
librt.so have similar problems. At a minimum, install into a separate chroot
environment.
* There is a high possibility you will end up creating a different public
ABI. If you were to begin distributing binaries they would at a minimum not
work, and at best create a lot of confusion.

If you find yourself needing to build a customised version of glibc, you are
best to use the framework offered by your distribution (i.e. the rpm or deb
package build facilities).
 
  


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
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
i have an error when i try to install Glibc(5.7. Glibc-2.8-20080929, Version 6.4) robineecc1 Linux From Scratch 0 12-14-2008 11:45 AM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM
ncsd, glibc, and glibc-common conflicts during LAMP install beaker911 Linux - Software 0 12-30-2004 02:31 PM
glibc 2.3.2 => glibc 2.3.3 causes bash & syslog issues natetheros Red Hat 1 09-27-2004 01:35 AM

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

All times are GMT -5. The time now is 07:51 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