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:


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- ../.././gcc/libgcc_pic.a
/bin/sh /export/opt/NB6_pwrt/backfire/build_dir/toolchain-mips_gcc-4.4.2_uClibc- ../.././gcc; /usr/bin/install -c -m 644 ./ ../.././gcc/; rm -f ../.././gcc/; ln -s ../.././gcc/
/bin/sh /export/opt/testpwrt/backfire/build_dir/toolchain-mips_gcc-4.4.2_uClibc- ../.././gcc
/bin/sh: error while loading shared libraries: /export/opt/tepwrt/backfire/build_dir/toolchain-mips_gcc-4.4.2_uClibc- 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 (HOST_LIBRARY_PATH)

This is a known bug of gcc
which is solved by the following patch … 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

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

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

Note: See TracTickets for help on using tickets.