bugGNU gettext - Bugs: bug #25975, make install: libc.a: could not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #25975: make install: libc.a: could not read symbols: File format not recognized

Submitted by:  zeLegolas <zeleglas>
Submitted on:  Mon 23 Mar 2009 12:41:29 PM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Mon 23 Mar 2009 11:18:20 PM UTC, comment #1:

How did you configure gettext? It looks like you passed
--prefix=/usr, and are not specifying a DESTDIR during
"make install". This cannot work. If you perform this as
root, you're likely to hose your system.

DESTDIR is not so well supported by libtool, and the gettext
package uses libtool to create its shared libraries.

So I'd recommend to use --prefix=/some/prefix/for/cross/compiles.

Alternatively, you can also configure gettext with
--disable-shared while you are cross-compiling, and - once
you have a self-hosting environment on the target machine -
reinstall gettext with a native build and --enable-shared.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Mon 23 Mar 2009 12:41:29 PM UTC, original submission:

Hi,

I'm working on gentoo and OpenMoko project. To create an image for OpenMoko i use the cross compilation environment (tool crossdev).
When i build gettext i have this error:

/usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/lib/libc.a: could not read symbols: File format not recognized
collect2: ld returned 1 exit status

this error is generated by this command:

armv4tl-softfloat-linux-gnueabi-gcc -std=gnu99 -shared ... -L/usr/lib -lgettextlib -L/usr/armv4tl-softfloat-linux-gnueabi/lib -L/usr/armv4tl-softfloat-linux-gnueabi/usr/lib -lc -march=armv4t -mtune=arm920t -Wl,-soname -Wl,libgettextsrc-0.17.so -o .libs/libgettextsrc-0.17.so

I guess the pb come from this code "-L/usr/lib".

In attach you have:

Output from command:
make install: gettext-make-install.log
emerge-armv4tl-softfloat-linux-gnueabi --info (my configuration): emerge-armv4tl-softfloat-linux-gnueabi.info.log

If can help me i will really appreciate.

My bests regards

zeLegolas <zeleglas>

 

Attached Files
file #17772:  gettext-make-install.log added by zeleglas (34KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Posted a comment)
  • -unavailable- added by zeleglas (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 12:14:47 AM UTChaibleCategoryNone=>Build
    Mon 23 Mar 2009 11:18:20 PM UTChaibleAssigned toNone=>haible
      Open/ClosedOpen=>Closed
    Mon 23 Mar 2009 11:18:19 PM UTChaibleStatusNone=>Invalid
    Mon 23 Mar 2009 12:41:29 PM UTCzeleglasAttached File-=>Added gettext-make-install.log, #17772
      Attached File-=>Added emerge-armv4tl-softfloat-linux-gnueabi.info.log, #17773

    Back to the top


    Powered by Savane 3.1-cleanup1