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: glibc Compilation for ARM


On Mon, Aug 18, 2008 at 5:23 AM, Akhil <akhilesh.noida@gmail.com> wrote:
> I am trying to compile glibc-2.5 for ARM based board. But I am getting
> errors while configuring it. Please check and give your inputs for
> resolving this.
>
> configure command :
>
> $ ../glibc-2.5/configure
> --prefix=/mnt/new/Mars/glibc_HQ_test/GLIBC/install/  --with-__thread
> --enable-kernel=2.6.11 --enable-shared
>
> I have also tried it with --host and --build options. But getting the
> same error.
>
> Error -    "configure:7592: error: cannot compute sizeof (long double), 77"

You can't run an ARM binary on an x86 host (atleast not without a simulator).

You must provided cached values for the results of all the execution
tests, *or* setup your kernel to run ARM binaries using a simulator.

You might also want to look at the EGLIBC project
(http://www.eglibc.org) which aims at providing glibc for embedded
targets, including making cross-compiling easier.

Cross-compiling glibc is *not* easy. Also note that a stock 2.6.11
kernel does not have the required EABI/NPTL patches for ARM GNU/Linux.
You will need a 2.6.16 kernel or newer.

Cheers,
Carlos.


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