public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* libc.so GROUP Statement
@ 2009-12-29 17:28 Doug Kehn
  2009-12-29 18:12 ` Yann E. MORIN
  0 siblings, 1 reply; 5+ messages in thread
From: Doug Kehn @ 2009-12-29 17:28 UTC (permalink / raw)
  To: crossgcc

Hi All,

I'm building arm-cortex_a8-linux-gnueabi with crosstool-ng-1.5.2.  The resulting libc.so contains:

/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-littlearm)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( /lib/ld-linux.so.3 ) )

Cross compiling some applications I receive the following error:

.../arm-cortex_a8-linux-gnueabi/bin/ld: cannot find /usr/lib/libc_nonshared.a
collect2: ld returned 1 exit status

If I manually change the GROUP statement in libc.so to:

GROUP ( libc.so.6 libc_nonshared.a  AS_NEEDED ( ld-linux.so.3 ) )

the applications cross compile without error.

Am I doing something wrong when cross compiling the applications?

The arm-cortex_a8-linux-gnueabi crosstool.config has CT_USE_SYSROOT=y (and CT_SYSROOT_DIR_PREFIX=""). I thought the path in the libc.so GROUP statement would be pointing to the toolchain's sysroot directory.  I'm basing this on glibc.sh running make with install_root=$(CT_SYSROOT_DIR).  Am I not reading the script correctly?

Is there a way to configure the toolchain to alter the paths in the libc.so GROUP statement?

Thanks,
...doug



      

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

end of thread, other threads:[~2009-12-30 16:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-29 17:28 libc.so GROUP Statement Doug Kehn
2009-12-29 18:12 ` Yann E. MORIN
2009-12-29 18:58   ` Doug Kehn
2009-12-29 22:59     ` Doug Kehn
2009-12-30 16:35       ` Yann E. MORIN

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).