Luigi 'Comio' Mantellini wrote:
> Ciao again,
> 
> 
> On ven, 2008-06-13 at 11:22 +0200, Luigi 'Comio' Mantellini wrote:
>> Ciao,
> 
>> make[4]: Entering directory 
>> `/mnt/devel/openwrt/OpenWRT.git/build_dir/toolchain-m68k_gcc4.3.1/uClibc-0.9.29'
>> install -d 
>> /mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1//lib
>> install -m 644 lib/lib*-0.9.29.so \
>>              
>> /mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1//lib
>> cd lib && tar -cf - *.so.* | tar -xf - -C 
>> /mnt/devel/openwrt/OpenWRT.git/staging_dir/toolchain-m68k_gcc4.3.1//lib
>> tar: error while loading shared libraries: libpthread.so.0: ELF file data 
>> encoding not little-endian
>> tar: error while loading shared libraries: libpthread.so.0: ELF file data 
>> encoding not little-endian

You've seem to remove some some mandatory path in system library search - if 
your had LD_LIBRARY_PATH set you've might need to do:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/your/lib
in contrast to
export LD_LIBRARY_PATH=/path/to/your/lib

> 
> My self-answer: This error is caused by the "LD_LIBRARY_PATH" that I
> defined into rule.mk. At this point I need to resolve an issue: GCC4.3
> requires gmp and mpfr libraries. I added the makefile under the
> toolchain directory in order to create the needed libraries (libgmp.so
> and libmpfr.so). I  placed these libraries into the
> staging_dir/host/lib/ directory... but (cross)gcc doesn't start because
> this directory is not in the ld path... I thought to solve this issue
> using the LD_LIBRARY_PATH=$(TOP)/staging_dir/host/lib/ ... but this
> creates the error in tar application....
> 
> Now, with LD_LIBRARY_PATH env. variable removed, I'm compiling the
> gcc-final... but I will need it when the (cross)gcc is invoked.
> 
> question: Where can I place the host libraries (__NOT TARGET__) in order
> to be visible to cross-compiler (and in general, to crosstools)?

Maybe all you need to do is correctly supply the full path to the 
includes/libraries via C(PP)FLAGS/LDFLAGS in the makefile, or on the command 
line instead of using LD_LIBRARY_PATH. Another approach would be to statically 
build/link the tar app inside the openWRT SDK and use the LD_LIBRARY_PATH after 
all.

HTH,

Hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: [EMAIL PROTECTED]
Http: www.cetrtapot.si

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to