From: Amruta G. <am...@cs...> - 2010-02-14 22:23:04
|
Hi, I am trying to build libtspi library for a different architecture, namely, openmoko (the software stack that runs on Neo Free-runner). I decided to build the whole trousers package for this architecture, since I could not find a way to build "libtspi" library alone. I ran the configure script as: <command> $./configure --host=arm-angstrom-linux-gnueabi --prefix=/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr --enable-static $make </command> (Please note that I specified --enable-static, since I wanted to have the all library files produced again for the specified architecture.) However, "make" command gives the following error: <error> /usr/local/openmoko/arm/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld: ../trspi/.libs/libtrousers.a(libtrousers_la-trousers.o): Relocations in generic ELF (EM: 3) ../trspi/.libs/libtrousers.a(libtrousers_la-trousers.o): could not read symbols: File in wrong format collect2: ld returned 1 exit status </error> It is evident from this error that the archive file libtrousers.a was not generated for the given armstrong architecture. Hoping that the "make" will re-generate this file, I removed this file, and tried to run {configure, make}. But it could not regenerate this file and gave error: <error> arm-angstrom-linux-gnueabi-gcc: ../trspi/.libs/libtrousers.a: No such file or directory make[2]: *** [libtspi.la] Error 1 </error> Thus, I can't use the existing file since it is in wrong format, but I don't know how to re-produce the file for the specified architecture. Is there any way out here? How can I tell "configure" to re-produce the archive file libtrousers.a? I will appreciate any help. Thanks in advance, Amruta |