Modify

Opened 6 years ago

Closed 4 years ago

Last modified 4 years ago

#10388 closed defect (obsolete)

clean build fails for gcc

Reported by: joel_ejc@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: toolchain Version: Backfire 10.03
Keywords: Cc:

Description

I got a fail while building backfire r 20655 but it could be a most general case

I got this message

...
/export/opt/NB6_pwrt/backfire/staging_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/usr/mips-openwrt-linux-uclibc/bin/ranlib ../.././gcc/libgcc_pic.a
/bin/sh /export/opt/NB6_pwrt/backfire/build_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/gcc-4.4.2/libgcc/../mkinstalldirs ../.././gcc; /usr/bin/install -c -m 644 ./libgcc_s.so.1 ../.././gcc/libgcc_s.so.1; rm -f ../.././gcc/libgcc_s.so; ln -s libgcc_s.so.1 ../.././gcc/libgcc_s.so
/bin/sh /export/opt/testpwrt/backfire/build_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/gcc-4.4.2/libgcc/../mkinstalldirs ../.././gcc
/bin/sh: error while loading shared libraries: /export/opt/tepwrt/backfire/build_dir/toolchain-mips_gcc-4.4.2_uClibc-0.9.30.1/gcc-4.4.2-final/./gcc/libgcc_s.so.1: ELF file data encoding not little-endian
gmake[7]: *** [install-leaf] Error 127

which is linked to the using of TARGET_LIBRARY_PATH while calling sh (bash) which needs libgcc_s.so.1 (HOST_LIBRARY_PATH)

This is a known bug of gcc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
which is solved by the following patch
http://gcc.gnu.org/viewcvs?view=revisio … ion=155706

I could be nice to adapt it for different version of gcc

I attached the used patch for gcc 4.4.2

Attachments (1)

999-Makefile.patch (2.2 KB) - added by joel_ejc@… 6 years ago.
RPATH_ENVVAR patch for gcc 4.4.2

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by joel_ejc@…

RPATH_ENVVAR patch for gcc 4.4.2

comment:1 Changed 4 years ago by nbd

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

comment:2 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

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.