public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* glibc cross compilation with ARM
@ 2010-02-01 10:24 krish24in
  2010-02-01 10:39 ` Andreas Schwab
  0 siblings, 1 reply; 7+ messages in thread
From: krish24in @ 2010-02-01 10:24 UTC (permalink / raw)
  To: libc-ports


hi experts,

I am new to this domain. 

I am trying to cross compile glibc2.6.1 with arm gcc toolchain 4.2.3.

I gave following configure command:

CC=arm-linux-gcc ../configure  --target=arm-linux
--prefix=/root/glibc-2.6.1/gcc_build   --with-tls --with-__thread
--enable-add-ons

When i gave make command there are many warning message:

In file included from nptl/sysdeps/i386/i686/tls.h:34,
                 from include/tls.h:6,
                 from sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
nptl/sysdeps/i386/i686/../tls.h:66:3: error: #error "TLS support is
required.


Am I missing something while configuring  or there any ant patches for cross
comiling for ARM?

Will appreciate your reply and suggestions.

thanks,
kishor
-- 
View this message in context: http://old.nabble.com/glibc-cross-compilation-with-ARM-tp27402034p27402034.html
Sent from the Sourceware - libc-ports mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc cross compilation with ARM
  2010-02-01 10:24 glibc cross compilation with ARM krish24in
@ 2010-02-01 10:39 ` Andreas Schwab
  2010-02-01 11:09   ` krish24in
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Schwab @ 2010-02-01 10:39 UTC (permalink / raw)
  To: krish24in; +Cc: libc-ports

krish24in <krish24in@gmail.com> writes:

> CC=arm-linux-gcc ../configure  --target=arm-linux
> --prefix=/root/glibc-2.6.1/gcc_build   --with-tls --with-__thread
> --enable-add-ons

The --target option is only relevant when building a compiler, but glibc
isn't one.  You want --host.

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc cross compilation with ARM
  2010-02-01 10:39 ` Andreas Schwab
@ 2010-02-01 11:09   ` krish24in
  2010-02-01 11:19     ` Andreas Schwab
  0 siblings, 1 reply; 7+ messages in thread
From: krish24in @ 2010-02-01 11:09 UTC (permalink / raw)
  To: libc-ports


Hi Andreas,

When i gave the --host=arm-linux option, i received the following warning:

../configure  --host=arm-linux --prefix=/root/2.6.1/gcc_build   --with-tls
--with-__thread --enable-add-ons

configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
configure: running configure fragment for add-on nptl
checking sysdep dirs... configure: error: The arm is not supported

What could be the issue here?

Krish



Andreas Schwab-4 wrote:
> 
> krish24in <krish24in@gmail.com> writes:
> 
>> CC=arm-linux-gcc ../configure  --target=arm-linux
>> --prefix=/root/glibc-2.6.1/gcc_build   --with-tls --with-__thread
>> --enable-add-ons
> 
> The --target option is only relevant when building a compiler, but glibc
> isn't one.  You want --host.
> 
> Andreas.
> 
> -- 
> Andreas Schwab, schwab@redhat.com
> GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
> "And now for something completely different."
> 
> 

-- 
View this message in context: http://old.nabble.com/glibc-cross-compilation-with-ARM-tp27402034p27402573.html
Sent from the Sourceware - libc-ports mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc cross compilation with ARM
  2010-02-01 11:09   ` krish24in
@ 2010-02-01 11:19     ` Andreas Schwab
  2010-02-01 11:55       ` krish24in
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Schwab @ 2010-02-01 11:19 UTC (permalink / raw)
  To: krish24in; +Cc: libc-ports

krish24in <krish24in@gmail.com> writes:

> checking sysdep dirs... configure: error: The arm is not supported

You don't have the ports add-on.

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc cross compilation with ARM
  2010-02-01 11:19     ` Andreas Schwab
@ 2010-02-01 11:55       ` krish24in
  2010-02-01 12:48         ` Carlos O'Donell
  0 siblings, 1 reply; 7+ messages in thread
From: krish24in @ 2010-02-01 11:55 UTC (permalink / raw)
  To: libc-ports


Ok.
Could you please tell how to enable/add ports add-on?
Is there any config file for same?
krish



Andreas Schwab-4 wrote:
> 
> krish24in <krish24in@gmail.com> writes:
> 
>> checking sysdep dirs... configure: error: The arm is not supported
> 
> You don't have the ports add-on.
> 
> Andreas.
> 
> -- 
> Andreas Schwab, schwab@redhat.com
> GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
> "And now for something completely different."
> 
> 

-- 
View this message in context: http://old.nabble.com/glibc-cross-compilation-with-ARM-tp27402034p27403064.html
Sent from the Sourceware - libc-ports mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc cross compilation with ARM
  2010-02-01 11:55       ` krish24in
@ 2010-02-01 12:48         ` Carlos O'Donell
  2010-02-01 13:50           ` krish24in
  0 siblings, 1 reply; 7+ messages in thread
From: Carlos O'Donell @ 2010-02-01 12:48 UTC (permalink / raw)
  To: krish24in; +Cc: libc-ports

On Mon, Feb 1, 2010 at 6:55 AM, krish24in <krish24in@gmail.com> wrote:
> Ok.
> Could you please tell how to enable/add ports add-on?
> Is there any config file for same?

The ports add-on is an archive which you unpack into the glibc directory.

Available here as glibc-ports*.tar.gz:
http://ftp.gnu.org/gnu/glibc/

You only need to configure glibc, it will automatically configure the
ports add-on.

The ports add-on should be in a directory called "ports".

e.g.

glibc
 |-> ports

Cheers,
Carlos.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: glibc cross compilation with ARM
  2010-02-01 12:48         ` Carlos O'Donell
@ 2010-02-01 13:50           ` krish24in
  0 siblings, 0 replies; 7+ messages in thread
From: krish24in @ 2010-02-01 13:50 UTC (permalink / raw)
  To: libc-ports


Thanks Carlos.

I downloaded the glibc-ports2.6.1.tar.gz and untar it to the ports folder.

Configure command (../configure  --host=arm-linux
--prefix=/root/2.6.1/gcc_build   --with-tls

--with-__thread --enable-add-ons) failed again after giving this error:
See `config.log' for more details.

checking size of long double... configure: error: cannot compute sizeof
(long double), 77

any suggestion will be helpful? 

Krish


Carlos O'Donell-2 wrote:
> 
> On Mon, Feb 1, 2010 at 6:55 AM, krish24in <krish24in@gmail.com> wrote:
>> Ok.
>> Could you please tell how to enable/add ports add-on?
>> Is there any config file for same?
> 
> The ports add-on is an archive which you unpack into the glibc directory.
> 
> Available here as glibc-ports*.tar.gz:
> http://ftp.gnu.org/gnu/glibc/
> 
> You only need to configure glibc, it will automatically configure the
> ports add-on.
> 
> The ports add-on should be in a directory called "ports".
> 
> e.g.
> 
> glibc
>  |-> ports
> 
> Cheers,
> Carlos.
> 
> 

-- 
View this message in context: http://old.nabble.com/glibc-cross-compilation-with-ARM-tp27402034p27404496.html
Sent from the Sourceware - libc-ports mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-02-01 13:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-01 10:24 glibc cross compilation with ARM krish24in
2010-02-01 10:39 ` Andreas Schwab
2010-02-01 11:09   ` krish24in
2010-02-01 11:19     ` Andreas Schwab
2010-02-01 11:55       ` krish24in
2010-02-01 12:48         ` Carlos O'Donell
2010-02-01 13:50           ` krish24in

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).