This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cross build glibc-port2.7 problem with tls and kernel version.


Hello

I try to cross build glibc-port2.7. But couldn't it.

$ ../../glibc-2.7/configure --with-headers=/usr/arm/src/linux/include
--prefix=/usr --without-tls --with-binutils=/usr/arm/bin
--enable-kernel=2.6.34.1 --enable-add-ons=ports,nptl
--host=arm-none-linux-gnueabi --build=i686-pc-linux-gnu && make
cross-compiling=yes
CROSS_COMPILE=/opt/arm-2010q1/bin/arm-none-linux-gnueabi- all && make
install_root=/opt/arm-2010q1/chroot install

1st:corss build glibc-port2.7
then loop this point.
---------------
...
In file included from ./sysdeps/unix/sysdep.h:21,
                 from ports/sysdeps/unix/arm/sysdep.h:20,
                 from ports/sysdeps/unix/sysv/linux/arm/sysdep.h:26,
                 from ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h:26,
                 from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25:24: error: asm/unistd.h: No
such file or directory
In file included from include/tls.h:6,
                 from ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h:28,
                 from <stdin>:1:
-------loop------

2nd:I copy asm.unistd.h from my kernel source.
then loop this below error.
-------------------
...
In file included from include/tls.h:6,
                 from ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h:28,
                 from <stdin>:1:
ports/sysdeps/arm/nptl/tls.h:48:3: error: #error "TLS support is required."
In file included from <stdin>:1:
ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h:31:3: error: #error
Kernel headers are too old
In file included from include/tls.h:6,
                 from ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h:28,
                 from <stdin>:1:
------loop-------

why even --without-tls, But error: #error "TLS support is required." ?
who require it ?

I used kernel2.6.34.1 headers for build this glibc. why error: #error
Kernel headers are too old ?

I would like to build glibc > 2.5 for armel.
Thanks.

-- 
tknv/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]