bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

“libtool” uses wrong gcc and ld. How to fix it?


From: Gary Yang
Subject: “libtool” uses wrong gcc and ld. How to fix it?
Date: Tue, 31 Mar 2009 11:12:23 -0700 (PDT)


I am doing the cross compile. The libtool uses wrong gcc and ld. It should use 
"/tools/eldk/4.2/ppc_4xx/usr/bin/ld", not "/usr/local/bin/ld". It should be 
“/tools/eldk/4.2/usr/bin/ppc_4xx-gcc –shared”, not gcc –shared. See below. How 
to fix it?

/tools/eldk/4.2/ppc_4xx/usr/bin/libtool --tag=CC --mode=link ppc_4xx-gcc -o 
libjpeg.la jcapimin.lo jcapistd.lo jctrans.lo jcparam.lo jdatadst.lo jcinit.lo 
jcmaster.lo jcmarker.lo jcmainct.lo jcprepct.lo jccoefct.lo jccolor.lo 
jcsample.lo jchuff.lo jcphuff.lo jcdctmgr.lo jfdctfst.lo jfdctflt.lo 
jfdctint.lo jdapimin.lo jdapistd.lo jdtrans.lo jdatasrc.lo jdmaster.lo 
jdinput.lo jdmarker.lo jdhuff.lo jdphuff.lo jdmainct.lo jdcoefct.lo jdpostct.lo 
jddctmgr.lo jidctfst.lo jidctflt.lo jidctint.lo jidctred.lo jdsample.lo 
jdcolor.lo jquant1.lo jquant2.lo jdmerge.lo jcomapi.lo jutils.lo jerror.lo 
jmemmgr.lo jmemnobs.lo -rpath /jpeg-6b/install_libs/lib -version-info 62

gcc -shared  .libs/jcapimin.o .libs/jcapistd.o .libs/jctrans.o .libs/jcparam.o 
.libs/jdatadst.o .libs/jcinit.o .libs/jcmaster.o .libs/jcmarker.o 
.libs/jcmainct.o .libs/jcprepct.o .libs/jccoefct.o .libs/jccolor.o 
.libs/jcsample.o .libs/jchuff.o .libs/jcphuff.o .libs/jcdctmgr.o 
.libs/jfdctfst.o .libs/jfdctflt.o .libs/jfdctint.o .libs/jdapimin.o 
.libs/jdapistd.o .libs/jdtrans.o .libs/jdatasrc.o .libs/jdmaster.o 
.libs/jdinput.o .libs/jdmarker.o .libs/jdhuff.o .libs/jdphuff.o 
.libs/jdmainct.o .libs/jdcoefct.o .libs/jdpostct.o .libs/jddctmgr.o 
.libs/jidctfst.o .libs/jidctflt.o .libs/jidctint.o .libs/jidctred.o 
.libs/jdsample.o .libs/jdcolor.o .libs/jquant1.o .libs/jquant2.o 
.libs/jdmerge.o .libs/jcomapi.o .libs/jutils.o .libs/jerror.o .libs/jmemmgr.o 
.libs/jmemnobs.o   -Wl,-soname -Wl,libjpeg.so.62 -o .libs/libjpeg.so.62.0.0

/usr/local/bin/ld: .libs/jcapimin.o: Relocations in generic ELF (EM: 20)
.libs/jcapimin.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [libjpeg.la] Error 1

echo $path
/tools/eldk/4.2/bin /tools/eldk/4.2/usr/bin /tools/eldk/4.1/bin 
/tools/eldk/4.1/usr/bin /tools/platform/lsf/6.1/6.1/linux2.4-glibc2.3-x86/bin 
/tools/platform/lsf/6.1/6.1/linux2.4-glibc2.3-x86/etc 
/tools/perforce/p4/v2007.2/bin /tools/GNU/public_domain/tools/vim/7.0/bin 
/tools/GNU/public_domain_3.0/tools/gcc/3.3.2/bin . /bin /usr/local/bin /usr/bin 
/project/dev/bin/ind /user/svdc/buildsw/bin 
/usr/local/j2sdk1.4.2/j2sdk1.4.2/bin /bin /usr/ucb /usr/openwin/bin /usr/dt/bin 
/tools/GNU/public_domain/tools/xemacs/default/bin /etc










reply via email to

[Prev in Thread] Current Thread [Next in Thread]