yes, i'm using the stable 1.0.0 clfs book and i'm right now stuck at
chapter 10.7:
Installing Basic System Software: Glibc-2.4
my host-stytem is not old though, i'm using a fedora 7 on a
amd64-machine with
kernel 2.6.22.9, and so far there where no errors within the
clfs-build-process, what
makes that error look quite strange to me now. working in the
chroot-jail right now,
what makes me wonder even more about the fact that it's an x86_64-issue,
as the target
system should be a 486-system..?
the configure-output seems quite normal to me:
root:/sources/glibc-build# ../glibc-2.4/configure --prefix=/usr
--disable-profile --enable-add-ons --enable-kernel=2.6.0
--libexecdir=/usr/lib/glibc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/x86_64/elf
nptl/sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86_64
sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux
nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu
sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet
nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64
nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/x86_64/fpu
nptl/sysdeps/x86_64 sysdeps/x86_64 sysdeps/wordsize-64
sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32
sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /tools/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether
/tools/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/bin/as
is GNU as... yes
checking whether
/tools/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/bin/ld
is GNU ld... yes
checking for
/tools/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/bin/as...
/tools/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/bin/as
checking version of
/tools/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/bin/as...
2.17, ok
checking for
/tools/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/bin/ld...
/tools/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/bin/ld
checking version of
/tools/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/bin/ld...
2.17, ok
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 4.1.1, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.14.5, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.8, ok
checking for sed... sed
checking version of sed... 4.1.5, ok
checking for autoconf... no
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/sh
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /tools/bin/install-info
checking for bison... no
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... yes
checking for assembler .type directive prefix... @
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking for libunwind-support in compiler... no
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -z relro option... yes
checking for -Bgroup option... yes
checking for libgcc_s suffix...
checking for --as-needed option... yes
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for -z execstack... yes
checking for -fpie... yes
checking for -fno-toplevel-reorder... no
checking for -fstack-protector... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking whether CFI directives are supported... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for __builtin_expect... yes
checking for __builtin_memset... no
checking for redirection of built-in functions... yes
checking for __thread... yes
checking for tls_model attribute... yes
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long double... yes
checking size of long double... 12
running configure fragment for sysdeps/x86_64/elf
checking for x86-64 TLS support... no
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... yes
checking for C cleanup handling... yes
running configure fragment for sysdeps/pthread
running configure fragment for sysdeps/unix/sysv/linux
checking for egrep... (cached) grep -E
checking installed Linux kernel header files... 2.0.10 or later
checking for kernel header at least 2.6.0... ok
checking for symlinks in /usr/include... ok
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
------------------------------------------
there is a file prctl.h in the /usr/include/linux instead of the
/usr/include/asm directory.
i could change that in the tls.h h file, but i'm not sure, weather this
is a good approach?
thanks,
toby
Ken Moffat wrote:
> On Mon, Oct 22, 2007 at 03:40:12PM +0200, Tobias Vogel wrote:
>
>> Thanks, yes, thats what i did, i used the x86-book, and the error
>> occured as described.
>> What to do?
>>
>>
> Provide more information ? So far, we can infer that you are using
> the stable book (glibc-2.4), but we don't know where you are in the
> book. What is your host distro ? Is it _old_ (no TLS, so possibly
> a 2.4 kernel, or at least built against 2.4 headers) ?
>
>
>>>
>>>
>>>> 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
>>>> ../nptl/sysdeps/x86_64/tls.h:62:3: error: #error "TLS support is required."
>>>> make[2]: *** [/sources/glibc-build/tcb-offsets.h] Error 1
>>>>
>>>>
>>> [...]
>>>
>
> The missing asm/prctl.h looks significant - I assume it is an
> internal glibc header, which ought to get created during the build.
> If all else fails, try logging both the configure and the compile
> and then search for references to prctl.h.
>
> Assuming you are in the early part of the book, check all of the
> environment variables listed in the book are set correctly.
>
> ĸen
>
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support