Bug 6027 - Bootstrap of combined gcc + binutils, with --enable-shared, with sysroot fails
Summary: Bootstrap of combined gcc + binutils, with --enable-shared, with sysroot fails
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.18
: P2 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-03 14:48 UTC by Jason Childs
Modified: 2014-05-28 19:42 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Childs 2008-04-03 14:48:35 UTC
Hello,

This bug is a continuation from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35532 and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35752 and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35804

It appears that native retargeting of the gcc compiler is not supported in the
4.3/4.4 series in favor of the sysroot option.  When trying to build a pass 1
compiler with combined gcc and binutils in a single directory, ld is appending
an extra sysroot prefix in the linker during libgcc linking.

The entire glibc and gcc+binutils toolchain is being installed in a non root
directory that will eventually be used to chroot with and allow for follow on
installation of a host system in the real root directory without overwriting any
tool binary files.

Whether the patch in http://sourceware.org/bugzilla/show_bug.cgi?id=4966 is
correct or not, when applied to the combined toolchain source, it allows the
bootstrap to complete successfully.
Comment 1 Alan Modra 2009-01-17 02:37:19 UTC
Sorry, you haven't presented any evidence of a sysroot ld bug.  All you've
really shown is that bootstrapping toolchains is difficult.  The patch in
http://sourceware.org/bugzilla/show_bug.cgi?id=4966 is definitely wrong.
Comment 2 Jason Childs 2009-01-18 17:49:14 UTC
(In reply to comment #1)
> Sorry, you haven't presented any evidence of a sysroot ld bug.  All you've
> really shown is that bootstrapping toolchains is difficult.  The patch in
> http://sourceware.org/bugzilla/show_bug.cgi?id=4966 is definitely wrong.

Did you have a look at bug 35804 over at gcc bugzilla?  Admittedly, this was
last year and my memory is fading, but I think the problem is in the paths that
sysroot ld is prepending.
Comment 3 Alan Modra 2009-01-18 23:37:03 UTC
Yes, I did look at the gcc bugzillas, and I don't believe that ld is doing
anything wrong with sysrooted paths.  I've added a comment to the glibc bugzilla.
Comment 4 Alan Modra 2009-01-19 00:07:58 UTC
..added a comment to the gcc buzilla is what I meant to say.
Comment 5 Jackie Rosen 2014-02-16 17:45:09 UTC Comment hidden (spam)