Cross build needs rpath with xdeb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Binutils |
Invalid
|
Undecided
|
Unassigned | ||
binutils |
Invalid
|
Undecided
|
Unassigned | ||
armel-cross-toolchain-base (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Maverick |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Undecided
|
Unassigned | ||
binutils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Maverick |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Undecided
|
Unassigned | ||
gcc-4.4 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Maverick |
Invalid
|
Undecided
|
Unassigned | ||
Natty |
Invalid
|
Undecided
|
Unassigned | ||
gcc-4.5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Maverick |
Invalid
|
Undecided
|
Unassigned | ||
Natty |
Invalid
|
Undecided
|
Unassigned | ||
ncurses (Ubuntu) |
Fix Released
|
Undecided
|
Loïc Minier | ||
Maverick |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Undecided
|
Loïc Minier |
Bug Description
Having installed the cross toolchain & xdeb, using the sources.list in the attached .tgz
xdeb -a armel -d ../dest --apt-source ncurses
fails with
arm-linux-
../obj_s/tic.o: In function `open_tempfile':
/home/chroot-
/usr/lib/
../lib/
../lib/
../lib/
collect2: ld returned 1 exit status
make[2]: *** [tic] Error 1
make[2]: Leaving directory `/home/
The link can be made to succeed by either adding
-Wl,-rpath=
or
by using a linker script (in the attached .tgz) with
SEARCH_
The default arm-linux-
SEARCH_
A toolchain with the attached linker script as default builds all the ncurses packages successfully, using the same xdeb command.
tags: | added: patch |
affects: | gcc-linaro → binutils-linaro |
Changed in binutils-linaro: | |
status: | New → Confirmed |
Changed in ncurses (Ubuntu): | |
assignee: | nobody → Loïc Minier (lool) |
status: | New → Confirmed |
status: | Confirmed → In Progress |
status: | In Progress → Fix Committed |
Changed in binutils: | |
status: | Unknown → Confirmed |
Changed in binutils-linaro: | |
assignee: | nobody → Marcin Juszkiewicz (hrw) |
Changed in binutils-linaro: | |
assignee: | Marcin Juszkiewicz (hrw) → nobody |
Changed in binutils (Ubuntu): | |
assignee: | nobody → Marcin Juszkiewicz (hrw) |
Changed in gcc-4.4 (Ubuntu): | |
milestone: | none → ubuntu-10.10 |
Changed in gcc-4.5 (Ubuntu): | |
milestone: | none → ubuntu-10.10 |
Changed in armel-cross-toolchain-base (Ubuntu Maverick): | |
status: | New → In Progress |
Changed in armel-cross-toolchain-base (Ubuntu Natty): | |
status: | New → In Progress |
Changed in armel-cross-toolchain-base (Ubuntu Natty): | |
assignee: | nobody → Marcin Juszkiewicz (hrw) |
status: | In Progress → Fix Released |
Changed in binutils: | |
importance: | Unknown → Undecided |
status: | Confirmed → New |
status: | New → Invalid |
Peter, I think this is a valid bug for the default cross-compiler library search path, could you include the exact version of binutils and gcc which you use for cross-compilation?
However, the reason you're failing to cross-compile this particular package with xdeb is due to a missing -ldl in the ncurses build rules; this should be addressed as well, I've opened another task in this bug against ncurses to track this. Would you take care of this?