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
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
01-03-2008, 04:51 PM
#1
Member
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30
Rep:
Glibc Build error
Hello, I am trying to construct an LFS 6.3 system.
in the middle of the build for Glibc 2.5.1, I type "make" and it goes on for about five minutes then i get this: (sorry, it's really long)
mv -f /mnt/lfs/tools/glibc-build/s-proto.T /mnt/lfs/tools/glibc-build/s-proto.d
make[2]: Leaving directory `/mnt/lfs/tools/glibc-2.5.1/signal'
make[2]: Entering directory `/mnt/lfs/tools/glibc-2.5.1/signal'
/usr/bin/install -c -m 644 /mnt/lfs/tools/glibc-build/../include/linux/limits.h /tools/include/linux/limits.h
/usr/bin/install: `/mnt/lfs/tools/glibc-build/../include/linux/limits.h' and `/tools/include/linux/limits.h' are the same file
/usr/bin/install -c -m 644 /mnt/lfs/tools/glibc-build/../include/asm/unistd.h /tools/include/asm/unistd.h
/usr/bin/install: `/mnt/lfs/tools/glibc-build/../include/asm/unistd.h' and `/tools/include/asm/unistd.h' are the same file
.././scripts/mkinstalldirs /mnt/lfs/tools/glibc-build/signal
mkdir /mnt/lfs/tools/glibc-build/signal
gcc -B/tools/bin/ ../sysdeps/unix/sysv/linux/signal.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/mnt/lfs/tools/glibc-build/signal -I/mnt/lfs/tools/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /mnt/lfs/tools/glibc-build/signal/signal.o -MD -MP -MF /mnt/lfs/tools/glibc-build/signal/signal.o.dt -MT /mnt/lfs/tools/glibc-build/signal/signal.o
gcc -B/tools/bin/ ../nptl/sysdeps/unix/sysv/linux/raise.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/mnt/lfs/tools/glibc-build/signal -I/mnt/lfs/tools/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /mnt/lfs/tools/glibc-build/signal/raise.o -MD -MP -MF /mnt/lfs/tools/glibc-build/signal/raise.o.dt -MT /mnt/lfs/tools/glibc-build/signal/raise.o
gcc -B/tools/bin/ ../sysdeps/posix/killpg.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/mnt/lfs/tools/glibc-build/signal -I/mnt/lfs/tools/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /mnt/lfs/tools/glibc-build/signal/killpg.o -MD -MP -MF /mnt/lfs/tools/glibc-build/signal/killpg.o.dt -MT /mnt/lfs/tools/glibc-build/signal/killpg.o
gcc -B/tools/bin/ ../sysdeps/unix/sysv/linux/i386/sigaction.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2 -DWRAPPER_INCLUDE='<nptl/sigaction.c>' -I../include -I/mnt/lfs/tools/glibc-build/signal -I/mnt/lfs/tools/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /mnt/lfs/tools/glibc-build/signal/sigaction.o -MD -MP -MF /mnt/lfs/tools/glibc-build/signal/sigaction.o.dt -MT /mnt/lfs/tools/glibc-build/signal/sigaction.o
gcc -B/tools/bin/ ../nptl/sysdeps/pthread/sigprocmask.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/mnt/lfs/tools/glibc-build/signal -I/mnt/lfs/tools/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /mnt/lfs/tools/glibc-build/signal/sigprocmask.o -MD -MP -MF /mnt/lfs/tools/glibc-build/signal/sigprocmask.o.dt -MT /mnt/lfs/tools/glibc-build/signal/sigprocmask.o
make[2]: *** No rule to make target `/mnt/lfs/tools/glibc-build/s-proto.d', needed by `/mnt/lfs/tools/glibc-build/signal/kill.o'. Stop.
make[2]: Leaving directory `/mnt/lfs/tools/glibc-2.5.1/signal'
make[1]: *** [signal/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/tools/glibc-2.5.1'
make: *** [all] Error 2
lfs@dell-gx50-lfs:/mnt/lfs/tools/glibc-build$
i have done everything by the book and i am using Ubuntu Dapper (6.06) as the host.
my hardware:
Dell Optiplex GX50 w/ 1.2 GHz Celeron CPU
512 MB RAM
thanks,
chris
PS: has anyone had as much trouble with LFS as I have? I have tried repeatedly, and I always get some kind of error. I am a persistent guy, so I won't stop until I get it built, cuz i hope to one day base my own distro off of it, and I want to be able to say that I completely compiled my own linux system from scratch when I was 15.
01-03-2008, 05:39 PM
#2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
The problem is that you're compiling glibc in $LFS/tools. That's known to cause problems. You need to build the packages somewhere else, such as the book's suggested location $LFS/sources. Read the book again VERY carefully, you should read this passage
Quote:
Originally Posted by LFS Book
Downloaded packages and patches will need to be stored somewhere that is conveniently available throughout the entire build. A working directory is also required to unpack the sources and build them. $LFS/sources can be used both as the place to store the tarballs and patches and as a working directory.
01-03-2008, 06:34 PM
#3
Member
Registered: Jul 2007
Distribution: Ubuntu, LFS, Fedora
Posts: 30
Original Poster
Rep:
aww, crap. i screwed that one up. I was under the impression that you were supposed to build the programs under $LFS/tools.
thanks a million.
chris
All times are GMT -5. The time now is 05:32 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News