Bug 1011412 - Enable sysroot support
Enable sysroot support
Product: Fedora
Classification: Fedora
Component: cross-binutils (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: David Howells
Fedora Extras Quality Assurance
Depends On:
Blocks: 1011415
  Show dependency treegraph
Reported: 2013-09-24 04:44 EDT by Marcin Juszkiewicz
Modified: 2014-06-17 09:28 EDT (History)
2 users (show)

See Also:
Fixed In Version: cross-binutils-2.24-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-06-17 09:28:27 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
spec patch (360 bytes, patch)
2013-09-24 04:46 EDT, Marcin Juszkiewicz
no flags Details | Diff

  None (edit)
Description Marcin Juszkiewicz 2013-09-24 04:44:33 EDT
Description of problem:

I am aware that cross-{binutils,gcc} are limited to be useful only for bootloader/kernel compilation as there is no userspace support in packages.

But they can also be used for userspace compilation when sysroot with libraries/headers is created.

Version-Release number of selected component (if applicable):

How reproducible:


Steps to Reproduce:
1. grab aarch64 system image
2. populate it with glibc-devel
3. mount at /mnt
4. aarch64-linux-gnu-gcc helloworld.c --sysroot /mnt -o hello-aarch64

Actual results:

"linker is not configured for sysroots"

Expected results:

links and gives proper binary

Additional info:

Same is needed for cross-gcc and will be reported.
Comment 1 Marcin Juszkiewicz 2013-09-24 04:46:35 EDT
Created attachment 802100 [details]
spec patch
Comment 2 David Howells 2014-03-31 05:59:35 EDT
This should be dealt with in cross-binutils-2.24-2, which should be hitting updates-testing shortly.  Note that the default sysroot is /usr/<arch>/sys-root/ rather than / as the latter causes problems when compiling libgcc.

Note You need to log in before you can comment on or make changes to this bug.