Chapter 6, Glibc: configure fails while testing CPP
For some reason, either Glibc's configure script or my CPP refuses to work correctly. If I don't specify CPP=/static/bin/cpp, then the script thinks it's in /lib/cpp, and if I DO tell it where it is (or symlink it):
Quote:
LFS: 4.1 GCC: 3.3.1 Glibc: 2.3.2 Host: SuSE 8.2 Pro x86-64 |
I don't actually have a /static, thats a new one on me.
but /lib/cpp is usually a symlink too /usr/bin/cpp-3.3 (3.3 is just an example it may just be cpp which is then a symlink to the current version). So it may be looking in the wrong place? /usr/lib/ instead of /static/lib/ ? |
/usr/lib only contains an empty directory called locale. This is very early in chapter 6, so everything is still in /static, except for a few symlinks, headers and man pages.
|
Ah linux from scratch (didn't notice at first) your braver than me :)
I 've got this Quote:
Quote:
|
/static/bin is at the end of my PATH, and I did install the kernel headers as instructed.
|
It may sound strange but try
touch /usr/include/assert.h It will force the re-evaluation of some files. |
That worked! I have absolutely no idea how or why though, someone care to explain?
|
touch reset the date of assert.h
This caused a re-evaluation of things assert.h is included in. because it was newer than them, so the configure script had to re-write things rather than just look for them. I think thats right, but having never tried LFS I won't comment further in case I'm wrong :) |
Hi!
I do all like you write i LFS book, but after configuring a glibc 2.3.1 in chapter 6 when I run make I get errors: I have no name!:/glibc-build# make make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.1 objdir=`pwd` all make[1]: Entering directory `/glibc-2.3.1' sysdeps/i386/elf/configure.in > sysdeps/i386/elf/configure.new /bin/sh: line 1: sysdeps/i386/elf/configure.in: Permission denied make[1]: *** [sysdeps/i386/elf/configure] Error 126 make[1]: Leaving directory `/glibc-2.3.1' make: *** [all] Error 2 I change permissions of file sysdeps/i386/elf/configure.in to 777 and get errors again: I have no name!:/glibc-build# make make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.1 objdir=`pwd` all make[1]: Entering directory `/glibc-2.3.1' sysdeps/i386/elf/configure.in > sysdeps/i386/elf/configure.new sysdeps/i386/elf/configure.in: line 1: GLIBC_PROVIDES: command not found sysdeps/i386/elf/configure.in: line 7: syntax error near unexpected token `for' sysdeps/i386/elf/configure.in: line 7: `AC_CACHE_CHECK(for i386 TLS support, libc_cv_386_tls, [dnl' make[1]: *** [sysdeps/i386/elf/configure] Error 2 make[1]: Leaving directory `/glibc-2.3.1' make: *** [all] Error 2 Can you help me? |
You - leonscape :)
|
All times are GMT -5. The time now is 08:17 AM. |