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]

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


Thanks Carlos,

> Don't disable TLS, you will not get a working configuration.
yes, now I understand tls need it.

> If you already have a cross compiler why not use that?
I would like to build glibc2.7 for using at native arm
environment,exactly need glibc >= 2.5 for running embedded java on
armv5 - kernel2.6.34.1.

now configure like that.
BUILD_CC=gcc \
CC=/home/tknv/Tool/arm-none-linux-gnueabi/arm-2010q1/bin/arm-none-linux-gnueabi-gcc
\
AR=/home/tknv/Tool/arm-none-linux-gnueabi/arm-2010q1/bin/arm-none-linux-gnueabi-ar
\
RANLIB=/home/tknv/Tool/arm-none-linux-gnueabi/arm-2010q1/bin/arm-none-linux-gnueabi-ranlib
\
AS=/home/tknv/Tool/arm-none-linux-gnueabi/arm-2010q1/bin/arm-none-linux-gnueabi-as
\
LD=/home/tknv/Tool/arm-none-linux-gnueabi/arm-2010q1/bin/arm-none-linux-gnueabi-ld
\
../../glibc-2.7/configure \
--with-headers=/home/tknv/src/kernel-2.6.34/linux-2.6.34.1/include \
--prefix=/usr/arm \
--with-binutils=/usr/bin \
--enable-kernel=2.6.34.1 \
--enable-add-ons=ports,nptl \
--host=arm-none-linux-gnueabi \
--target=arm-unknown-linux-gnu \
--build=i686-pc-linux-gnu 2>&1 | tee configure.out

now this configure works well,then
make 2>&1 | tee make.out
But still not success.
I got same error that none limits.h file.
>> ../include/limits.h:125:26 error: limits.h: No such file or directory.
>> Interesting which limits.h are none...

thanks.

On 12 August 2010 00:16, Carlos O'Donell <carlos@systemhalted.org> wrote:
> On Tue, Aug 10, 2010 at 4:01 AM, takanobu watanabe <rreedd555@gmail.com> wrote:
>> Thanks Andreas,
>>>> $ ../../glibc-2.7/configure --with-headers=/usr/arm/src/linux/include
>>>
>>> You need to run "make headers_install" in your kernel tree and point
>>> --with-headers to the usr/include directory inside it.
>> at that time I did it too.
>> I think maybe ARM (v5tejl) is not support TLS.
>> and also all asm-generic did copy to asm.
>
> ARMv5 does support TLS.
>
>> then I try comment out it,Because anyway when compile Âglibc --without-tls.
>
> Don't disable TLS, you will not get a working configuration.
>
>> ports/sysdeps/arm/nptl/tls.h
>> /* We reuire TLS support in the tools.
>> #ifndef HAVE_TLS_SUPPORT
>> # error "TLS support is required."
>> #endif
>> */
>>
>> Now compile error is
>> ../include/limits.h:125:26 error: limits.h: No such file or directory.
>> Interesting which limits.h are none...
>>
>> p.s.
>> target is ARM (v5tejl) .
>> cross compiler is Sourcery G++ Lite for ARM GNU/Linux 2010q1-202.
>> binutils 2.18.1
>> kernel 2.6.34.1
>
> If you already have a cross compiler why not use that?
>
> Cheers,
> Carlos.
>



-- 
tknv/


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