This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

glibc2.9 linked with intel compiler 11.1


Hello,

Few weeks I reported the following problem:
----------------------------------------------------
I built gcc 4.3.2 for x86-ia32 using crosstool-ng 1.5.2

I'm using Intel Compiler 11.1/064 to compile and link my application but the
libs are taken from glibc2.9 created with crosstool-ng

My application uses librt.a

When I link my applicaon with librt.a I get:

/opt/toolchain/i686-nptl-linux-gnu/i686-nptl-linux-gnu/sys-root/usr/lib/librt.so:
undefined reference to `__fortify_fail@GLIBC_PRIVATE'

When the application is compiled and linked with gcc 4.3.2 there is no error.
----------------------------------------------------
According to the intel compiler support I must change the paths in libc.so
to the paths of glibc2.9 I'm using instead of the default glibc installed in /lib, /lib/usr.
Does it make sense ?
After changing the paths (see at the end of this message) the link was OK.


Thanks.

---------------------------------------------------
modified libc.so

/* GNU ld script
  Use the shared library, but some functions are only in
  the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP (
/home/zvivered/GNU/ct-ng-1.5.2/release/i686-nptl-linux-gnu/sys-root/lib/libc.so.6
/home/zvivered/GNU/ct-ng-1.5.2/release/i686-nptl-linux-gnu/sys-root/usr/lib/libc_nonshared.a
AS_NEEDED (
/home/zvivered/GNU/ct-ng-1.5.2/release/i686-nptl-linux-gnu/sys-root/lib/ld-linux.so.2
) )

original libc.so

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


----------------------------------------------------


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


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