FS#20795 - [cross-arm-elf-binutils] with sysroot please

Attached to Project: Community Packages
Opened by David '-1' Schmid (gdkags) - Thursday, 09 September 2010, 21:09 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 21 December 2010, 16:27 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Please configure arm-elf-ld to use systemroots

Description:
I tried compiling the recent chdk [1] with this toolchain (+ gcc-base).

Problem is, when linking ld says:
/usr/bin/arm-elf-ld: this linker was not configured to use sysroots

When building binutils from abs with sysroot like gcc-base the following error occurs:
/usr/bin/arm-elf-ld: skipping incompatible /usr/lib/gcc/arm-elf/4.5.0/thumb/libgcc.a when searching fot -lgcc
/usr/bin/arm-elf-ld: skipping incompatible /usr/lib/gcc/arm-elf/4.5.0/libgcc.a when searching fot -lgcc
/usr/bin/arm-elf-ld: cannot find -lgcc

reproducing the bug/feature request(/point out the problem?):
get chdk [2] and cross-arm-elf-gc-base (+ deps),
go into main folder of subversion dir, make.

OR rebuild arm-elf-binutils, then arm-elf-gcc-base from abs while adding the line:
'--with-sysroot=/usr/$CHOST/arm-elf \'
to the PKGBUILD of binutils to the ./configure parameters.

[1] http://chdk.wikia.com/wiki/CHDK
[2] svn co https://tools.assembla.com/svn/chdk/trunk chdk
This task depends upon

Closed by  Sergej Pupykin (sergej)
Tuesday, 21 December 2010, 16:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  --with-sysroot=/usr/$CHOST/arm-elf added to cross-arm-elf-binutils
Comment by David '-1' Schmid (gdkags) - Thursday, 09 September 2010, 21:26 GMT
Hm, no chance of editing...
I am sorry for the choice of the summary/title of this feature request.
Should be: "cross-arm-elf-binutils - with sysroot please"
Comment by Gerardo Exequiel Pozzi (djgera) - Thursday, 09 September 2010, 23:22 GMT
  • Field changed: Summary (cross-arm-elf-binutils → [cross-arm-elf-binutils] with sysroot please)
  • Field changed: Status (Unconfirmed → Assigned)
  • Field changed: Category (Upstream Bugs → Packages)
  • Task assigned to Sergej Pupykin (sergej)
@David: Fixed title, next time use [package] description ;) Looks like your FR is not Upstream Bug.

Loading...