Hi all,
This is my second attempt at LFS, many years ago I successfully got counted as
number 7178 with LFS 4.0 :-)
Now I've followed the stable 7.1 version of book, even though I knew from the
outset that my host did not conform to the requirements, as you can see in the
attached file. The host's gcc and glibc are too recent, and have not been
tested... well, maybe now I *have* tested them, and they don't work, I don't
know. Oh well, I tried. This is a Fedora 16 system on an HP Pavilion dv7 (Core
i5, 64 bits). I followed the book without any issue until installing man pages
in chapter 6. Then I get a problem with glibc.
Here's what goes wrong (summary, details below) :
1. First, when configuring glibc 2.14.1, it complains about missing autoconf
(strange, but probably harmless)
2. Then I start building it and get many many errors such as :
make[2]: *** No rule to make target `/sources/glibc-build/iconv/stamp.o',
needed by `/sources/glibc-build/libc.a'.
3. This is followed by many more messages such as :
make[2]: Target `tests' not remade because of errors.
4. It finally ends with
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/sources/glibc-2.14.1'
make: *** [check] Error 2
root:/sources/glibc-build#
Actually, I don't even know if these are fatal errors, maybe I should try to
continue from here...
Any help or suggestions are welcome (but I don't think I can downgrade the
host's glibc just to conform the book's requirements),
Thanks,
Joao
Details of the errors :
-----------------------
gcc errno-loc.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings
-fmerge-all-constants -g -Wstrict-prototypes -I../include
-I/sources/glibc-build/csu -I/sources/glibc-build -I../sysdeps/x86_64/elf
-I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/wordsize-64 -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../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch
-I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64
-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.
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -o
/sources/glibc-build/csu/errno-loc.o -MD -MP -MF
/sources/glibc-build/csu/errno-loc.o.dt -MT /sources/glibc-build/csu/errno-loc.o
gcc ../sysdeps/x86_64/hp-timing.c -c -std=gnu99 -fgnu89-inline -O2 -Wall
-Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes
-I../include -I/sources/glibc-build/csu -I/sources/glibc-build
-I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64
-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../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64
-I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch -I../nptl/sysdeps/x86_64
-I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64/wordsize-64 -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. -D_LIBC_REENTRANT -include
../include/libc-symbols.h -DHAVE_INITFINI -o
/sources/glibc-build/csu/hp-timing.o -MD -MP -MF
/sources/glibc-build/csu/hp-timing.o.dt -MT
/sources/glibc-build/csu/hp-timing.o
echo 'csu/init-first.o csu/libc-start.o csu/sysdep.o csu/version.o
csu/check_fds.o csu/libc-tls.o csu/elf-init.o csu/dso_handle.o csu/errno.o
csu/init-arch.o csu/errno-loc.o csu/hp-timing.o' >
/sources/glibc-build/csu/stamp.oT
mv -f /sources/glibc-build/csu/stamp.oT /sources/glibc-build/csu/stamp.o
make[2]: *** No rule to make target `/sources/glibc-build/iconv/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/locale/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/localedata/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/iconvdata/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/assert/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/ctype/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/intl/stamp.o', needed
by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/catgets/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/math/stamp.o', needed
by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/setjmp/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/signal/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/stdlib/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target
`/sources/glibc-build/stdio-common/stamp.o', needed by
`/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/libio/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/dlfcn/stamp.o',
needed by `/sources/glibc-build/libc.a'.
make[2]: *** No rule to make target `/sources/glibc-build/malloc/stamp.o',
needed by `/sources/glibc-build/libc.a'.
--------------------
gcc /sources/glibc-build/csu/test-as-const-link-defines.c -c -std=gnu99
-fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g
-Wstrict-prototypes -I../include -I/sources/glibc-build/csu
-I/sources/glibc-build -I../sysdeps/x86_64/elf
-I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/wordsize-64 -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../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch
-I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64
-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.
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1
-DHAVE_INITFINI -o /sources/glibc-build/csu/test-as-const-link-defines.o -MD
-MP -MF /sources/glibc-build/csu/test-as-const-link-defines.o.dt -MT
/sources/glibc-build/csu/test-as-const-link-defines.o
(gawk '{ sub(/^/, "asconst_", $2); print; }' /sources/glibc-build/tlsdesc.h; \
gawk -v test=1 -f ../scripts/gen-as-const.awk ../sysdeps/x86_64/tlsdesc.sym; \
echo '#include "../test-skeleton.c"') >
/sources/glibc-build/csu/test-as-const-tlsdesc.cT
mv -f /sources/glibc-build/csu/test-as-const-tlsdesc.cT
/sources/glibc-build/csu/test-as-const-tlsdesc.c
gcc /sources/glibc-build/csu/test-as-const-tlsdesc.c -c -std=gnu99
-fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g
-Wstrict-prototypes -I../include -I/sources/glibc-build/csu
-I/sources/glibc-build -I../sysdeps/x86_64/elf
-I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/wordsize-64 -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../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch
-I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64
-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.
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1
-DHAVE_INITFINI -o /sources/glibc-build/csu/test-as-const-tlsdesc.o -MD -MP -MF
/sources/glibc-build/csu/test-as-const-tlsdesc.o.dt -MT
/sources/glibc-build/csu/test-as-const-tlsdesc.o
make[2]: Target `tests' not remade because of errors.
rm /sources/glibc-build/csu/test-as-const-ifunc-defines.c
/sources/glibc-build/csu/test-as-const-tlsdesc.c
/sources/glibc-build/csu/test-as-const-link-defines.c
/sources/glibc-build/csu/test-as-const-tcb-offsets.c
/sources/glibc-build/csu/test-as-const-ucontext_i.c
make[2]: Leaving directory `/sources/glibc-2.14.1/csu'
make[1]: *** [csu/tests] Error 2
----------------------------------
scripts/check-c++-types.sh scripts/data/c++-types-x86_64-linux-gnu.data g++
-fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g
-Iinclude -I/sources/glibc-build -Isysdeps/x86_64/elf
-Inptl/sysdeps/unix/sysv/linux/x86_64 -Isysdeps/unix/sysv/linux/x86_64
-Isysdeps/unix/sysv/linux/wordsize-64 -Inptl/sysdeps/unix/sysv/linux
-Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux
-Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet
-Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/x86_64
-Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/x86_64/fpu
-Isysdeps/x86_64/multiarch -Inptl/sysdeps/x86_64 -Isysdeps/x86_64
-Isysdeps/wordsize-64 -Isysdeps/ieee754/ldbl-96
-Isysdeps/ieee754/dbl-64/wordsize-64 -Isysdeps/ieee754/dbl-64
-Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf
-Isysdeps/generic -Inptl -Ilibio -I. -D_LIBC_REENTRANT -include
include/libc-symbols.h > /sources/glibc-build/c++-types-check.out
scripts/check-local-headers.sh "/usr/include" "/sources/glibc-build/" >
/sources/glibc-build/check-local-headers.out
/usr/bin/perl scripts/begin-end-check.pl argp/argp.h assert/assert.h
catgets/nl_types.h crypt/crypt.h ctype/ctype.h debug/execinfo.h dirent/dirent.h
dlfcn/dlfcn.h elf/elf.h elf/link.h gmon/sys/gmon.h gmon/sys/gmon_out.h
gmon/sys/profil.h grp/grp.h gshadow/gshadow.h iconv/iconv.h iconv/gconv.h
inet/netinet/in.h inet/netinet/igmp.h inet/netinet/ip6.h inet/netinet/ether.h
inet/netinet/icmp6.h inet/arpa/telnet.h inet/arpa/inet.h inet/arpa/ftp.h
inet/arpa/tftp.h inet/protocols/routed.h inet/protocols/timed.h
inet/protocols/rwhod.h inet/protocols/talkd.h inet/aliases.h inet/ifaddrs.h
inet/netinet/ip6.h inet/netinet/icmp6.h intl/libintl.h io/sys/stat.h
io/sys/statfs.h io/sys/vfs.h io/sys/statvfs.h io/fcntl.h io/sys/fcntl.h
io/poll.h io/sys/poll.h io/utime.h io/ftw.h io/fts.h io/sys/sendfile.h
libio/stdio.h libio/libio.h locale/locale.h locale/langinfo.h locale/xlocale.h
login/utmp.h login/lastlog.h login/pty.h malloc/malloc.h malloc/obstack.h
malloc/mcheck.h math/math.h math/complex.h math/fenv.h math/tgmath.h
misc/sys/uio.h nis/rpcsvc/yp_prot.h nis/rpcsvc/nis_callback.h nis/rpcsvc/yp.h
nis/rpcsvc/ypupd.h nis/rpcsvc/nislib.h nis/rpcsvc/nis_tags.h
nis/rpcsvc/ypclnt.h nis/rpcsvc/nis.h nptl_db/thread_db.h
nptl/sysdeps/pthread/pthread.h nptl/semaphore.h nss/nss.h posix/sys/utsname.h
posix/sys/times.h posix/sys/wait.h posix/sys/types.h posix/unistd.h
posix/glob.h posix/regex.h posix/wordexp.h posix/fnmatch.h posix/getopt.h
posix/tar.h posix/sys/unistd.h posix/sched.h posix/re_comp.h posix/wait.h
posix/cpio.h posix/spawn.h pwd/pwd.h resolv/resolv.h resolv/netdb.h
resolv/arpa/nameser_compat.h resolv/arpa/nameser.h resource/sys/resource.h
resource/sys/vlimit.h resource/sys/vtimes.h resource/ulimit.h rt/aio.h
rt/mqueue.h setjmp/setjmp.h shadow/shadow.h signal/signal.h signal/sys/signal.h
socket/sys/socket.h socket/sys/un.h stdio-common/printf.h
stdio-common/stdio_ext.h stdlib/stdlib.h stdlib/alloca.h stdlib/monetary.h
stdlib/fmtmsg.h stdlib/ucontext.h sysdeps/generic/inttypes.h
sysdeps/generic/stdint.h stdlib/errno.h stdlib/sys/errno.h string/string.h
string/strings.h string/memory.h string/endian.h string/argz.h string/envz.h
string/byteswap.h sunrpc/rpc/pmap_clnt.h sunrpc/rpc/xdr.h sunrpc/rpc/rpc_des.h
sunrpc/rpc/auth_des.h sunrpc/rpc/clnt.h sunrpc/rpc/rpc.h sunrpc/rpc/auth.h
sunrpc/rpc/key_prot.h sunrpc/rpc/pmap_rmt.h sunrpc/rpc/netdb.h
sunrpc/rpc/rpc_msg.h sunrpc/rpc/auth_unix.h sunrpc/rpc/pmap_prot.h
sunrpc/rpc/svc.h sunrpc/rpc/des_crypt.h sunrpc/rpc/types.h
sunrpc/rpc/svc_auth.h sunrpc/rpcsvc/bootparam.h sysvipc/sys/ipc.h
sysvipc/sys/msg.h sysvipc/sys/sem.h sysvipc/sys/shm.h termios/termios.h
termios/sys/termios.h termios/sys/ttychars.h time/time.h time/sys/time.h
time/sys/timeb.h wcsmbs/wchar.h wctype/wctype.h >
/sources/glibc-build/begin-end-check.out
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/sources/glibc-2.14.1'
make: *** [check] Error 2
root:/sources/glibc-build#
[root@hotel lfs]# ./version-check.sh
bash, version 4.2.10(1)-release
/bin/sh -> /bin/bash
Binutils: version 2.21.53.0.1-6.fc16 20110716
bison (GNU Bison) 2.5
yacc not found
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.12
diff (GNU diffutils) 3.2
find (GNU findutils) 4.5.10
GNU Awk 4.0.0
/usr/bin/awk -> /bin/gawk
gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)
(GNU libc) 2.14.90
grep (GNU grep) 2.9
gzip 1.4
Linux version 3.1.0-7.fc16.x86_64 ([email protected])
(gcc version 4.6.2 20111027 (Red Hat 4.6.2-1) (GCC) ) #1 SMP Tue Nov 1 21:10:48
UTC 2011
m4 (GNU M4) 1.4.16
GNU Make 3.82
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.1alpha
gcc compilation OK
[root@hotel lfs]#
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page