Modify

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#4462 closed defect (worksforme)

clean build fails for ixp4xx: uClibc and libpthread

Reported by: brianp Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

A clean checkout of r14043 fails to build for ixp4xx, with the following message:

make[4]: Leaving directory `/home/brianp/src/openwrt-trunk/trunk/build_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29/uClibc-0.9.29'
PATH=/home/brianp/src/openwrt-trunk/trunk/staging_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29/usr/bin:/home/brianp/src/openwrt-trunk/trunk/staging_dir/host/bin:/home/brianp/src/openwrt-trunk/trunk/staging_dir/target-armeb_uClibc-0.9.29/host/bin:/home/brianp/src/openwrt-trunk/trunk/staging_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29/usr/bin:/home/brianp/src/openwrt-trunk/trunk/staging_dir/host/bin:/home/brianp/src/openwrt-trunk/trunk/staging_dir/target-armeb_uClibc-0.9.29/host/bin:/home/brianp/src/openwrt-trunk/trunk/staging_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29/usr/bin:/home/brianp/src/openwrt-trunk/trunk/staging_dir/host/bin:/home/brianp/src/openwrt-trunk/trunk/staging_dir/target-armeb_uClibc-0.9.29/host/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/home/brianp/bin:/sbin:/usr/sbin make -C /home/brianp/src/openwrt-trunk/trunk/build_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29/uClibc-0.9.29 AR=armeb-openwrt-linux-uclibc-ar AS="armeb-openwrt-linux-uclibc-gcc -c -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float" LD=armeb-openwrt-linux-uclibc-ld NM=armeb-openwrt-linux-uclibc-nm CC="armeb-openwrt-linux-uclibc-gcc" GCC="armeb-openwrt-linux-uclibc-gcc" CXX="armeb-openwrt-linux-uclibc-g++" RANLIB=armeb-openwrt-linux-uclibc-ranlib STRIP=armeb-openwrt-linux-uclibc-strip OBJCOPY=armeb-openwrt-linux-uclibc-objcopy OBJDUMP=armeb-openwrt-linux-uclibc-objdump SIZE=armeb-openwrt-linux-uclibc-size DEVEL_PREFIX=/usr/ RUNTIME_PREFIX=/ HOSTCC="gcc" CPU_CFLAGS="-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float" DOSTRIP="" PREFIX="/home/brianp/src/openwrt-trunk/trunk/staging_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29/" install_runtime install_dev
make[4]: Entering directory `/home/brianp/src/openwrt-trunk/trunk/build_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29/uClibc-0.9.29'
install -d /home/brianp/src/openwrt-trunk/trunk/staging_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29//lib
install -m 644 lib/lib*-0.9.29.so \
		/home/brianp/src/openwrt-trunk/trunk/staging_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29//lib
cd lib && tar -cf - *.so.* | tar -xf - -C /home/brianp/src/openwrt-trunk/trunk/staging_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29//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
make[4]: *** [install_runtime] Error 127
make[4]: Leaving directory `/home/brianp/src/openwrt-trunk/trunk/build_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29/uClibc-0.9.29'
make[3]: *** [/home/brianp/src/openwrt-trunk/trunk/staging_dir/toolchain-armeb_gcc-4.1.2_uClibc-0.9.29/stamp/.uclibc_installed] Error 2
make[3]: Leaving directory `/home/brianp/src/openwrt-trunk/trunk/toolchain/uClibc'
make[2]: *** [toolchain/uClibc/compile] Error 2
make[2]: Leaving directory `/home/brianp/src/openwrt-trunk/trunk'
make[1]: *** [/home/brianp/src/openwrt-trunk/trunk/staging_dir/target-armeb_uClibc-0.9.29/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/brianp/src/openwrt-trunk/trunk'
make: *** [world] Error 2

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by anonymous

r14000 does the same thing.

comment:2 Changed 7 years ago by anonymous

Clearing /usr/local/lib from my LD_LIBRARY_PATH fixed it. I wonder if we can clear LD_LIBRARY_PATH in the Makefile so other idiots don't get bit, or is there a valid reason why a developer would need LD_LIBRARY_PATH to be set for this?

comment:3 follow-up: Changed 7 years ago by florian

  • Resolution set to worksforme
  • Status changed from new to closed

I do not think we should reset LD_LIBRARY_PATH, if you happen to change this variable, you know what you are doing.

comment:4 in reply to: ↑ 3 Changed 7 years ago by anonymous

Replying to florian:

I do not think we should reset LD_LIBRARY_PATH, if you happen to change this variable, you know what you are doing.


Hello
I have the same error can you help me please.. i dont understand the solution

comment:5 Changed 6 years ago by anonymous

$ unset LD_LIBRARY_PATH #clearing the variable
$ echo $LD_LIBRARY_PATH #Reconfirm, the answer must be a empty line

It works for me, ulibC compile well... be careful if you have set this variable in the .bashrc script.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.