This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: glibc Compilation for ARM
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Akhil <akhilesh dot noida at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Tue, 19 Aug 2008 08:51:36 -0400
- Subject: Re: glibc Compilation for ARM
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=Oi1FgEnX4sLzAF/vEsoOz4v3hk9VU+04Ur6aMzS9lqQ=; b=S6YxmI+cji53ty3DINFUX+c/7vxzhdDpjveCbEW8HLBQMipRr7LsERx9FcGcIJocDc nPYbgYEBRRaXGeLvuYMZFuo2dqtzBaCS5Cb3iYaFB+ASnlBD7qEXf5jpz/RZbX7FJDxi XrdrWQix/5KnanfPOuFsO/lprigWfiHJs0nZ4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=kcHhxNBdAHcRfThKVBEzMDSRNtlbaAptxDaYySsYzPbPeIYZiWxeRoYp/gNHETQUpU uczJXS7lPYpCdINC7+0Y1h7H3H3pqBG8z3EKpOKwCoBKH2VYlG9hrnIIq5J7zPiqkr7g 7xa0F+tlmpn13G1Jcbdy8vsvkoEygeVxVXG+4=
- References: <4c1517c10808180215g14e691f4na84955c385c0ab4a@mail.gmail.com> <4c1517c10808180223x6bd942edyccf25dfa473b6f83@mail.gmail.com>
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.