Still more problems with the gcc4 system, here. Now it's glibc. Following
http://www.linuxfromscratch.org/lfs/view/GCC4-20050718/chapter05/glibc.html
to the letter, I get the messages
In file included from include/tls.h:6,
from sysdeps/unix/sysv/linux/x86_64/sysdep.h:26,
from <stdin>:1:
nptl/sysdeps/x86_64/tls.h:23:47: error: asm/prctl.h: No such file or directory
repeated over again, probably at least a hundred times, before compilation
continues for a short while, only to stop with:
In file included from include/tls.h:6,
from <stdin>:1:
nptl/sysdeps/x86_64/tls.h:23:47: error: asm/prctl.h: No such file or directory
make[1]: *** [/lfs/sources/glibc/glibc-build/Versions.v.i] Error 1
make[1]: Leaving directory `/new_root/sources/glibc/glibc-2.3.5'
make: *** [all] Error 2
From 'find' I get that there is no 'asm/prctl.h', a bad sign
I take it. However, there is one '/lfs/tools/include/linux/prctl.h',
but when including that instead (by substituting linux for asm
in the relevant file) I only get
../sysdeps/generic/libc-tls.c: In function '__libc_setup_tls':
../sysdeps/generic/libc-tls.c:198: error: '__NR_arch_prctl' undeclared (first
use in this function)
../sysdeps/generic/libc-tls.c:198: error: (Each undeclared identifier is
reported only once
../sysdeps/generic/libc-tls.c:198: error: for each function it appears in.)
../sysdeps/generic/libc-tls.c:198: error: 'ARCH_SET_FS' undeclared (first use
in this function)
A quick 'find' tells me that there is a prctl.h defining ARCH_SET_FS
in /usr/src/linux-2.6.12.2/include/asm-x86_64, but is this supposed to
be included by the glibc?!?! (Pasting in the definition of ARCH_SET_FS
from that file helps of course, but not with __NR_arch_prctl.
Inserting
#define __NR_arch_prctl 158
found in
/usr/src/linux-2.6.12.2/include/asm-x86_64/unistd.h
makes the compiling happy for a while, before something happens in "wcsmbs"... I
cannot help feeling that this is not the way it was meant to be done... Maybe
there
is some simple thing I have overlooked...?! Or maybe some sleep will help... :-)
J.O.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page