Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613888 - commit "host gcc should not search binutils from PATH" breaks bootstrap
Summary: commit "host gcc should not search binutils from PATH" breaks bootstrap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-26 11:42 UTC by Benda Xu
Modified: 2021-01-06 13:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2017-03-26 11:42:46 UTC
Hi Michael,

On a system with only a normal user account, one cannot do anything to the host gcc.

But wait...
Getting a closer look at your compiler setup makes me believe there
is room for improvement: Your compiler does search the assembler
and linker binaries using the PATH environment variable.

Please execute:
  ln -s . "/usr/x86_64-redhat-linux"

$ ln -s . "/usr/x86_64-redhat-linux"
ln: failed to create symbolic link ‘/usr/x86_64-redhat-linux’: Permission denied

It is out of our control.

The solution is to always have the latest binutils in Gentoo tree.

What do you think?

Reproducible: Always
Comment 1 Michael Haubenwallner (RETIRED) gentoo-dev 2017-03-27 15:18:26 UTC
What about this one instead:
https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=521e9fe1fa9853c0895e89229748eba4ddec61fb
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2017-03-27 15:22:16 UTC
erm, without the testing '|| true' of course.
https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=ce7f5c5a5d8efb40a227d56075debe9dddbb31f1
Comment 3 Benda Xu gentoo-dev 2017-03-28 00:59:30 UTC
Yeah, it works for me.  Thanks for the update!
Comment 4 Benda Xu gentoo-dev 2019-07-16 14:25:22 UTC
Hi Michael,

I am taking a closer look at https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=521e9fe1fa9853c0895e89229748eba4ddec61fb.  The comment is reproduced as

> RHEL's system gcc is set up to use binutils via PATH search.  If
> the version of our binutils an older one, they may not provide what
> the system gcc is configured to use.  We need to direct the
> system gcc to find the system binutils.

The RHEL binutils is always older than Gentoo.  Why would this ever happen?

Benda
Comment 5 Michael Haubenwallner (RETIRED) gentoo-dev 2019-07-29 06:35:04 UTC
(In reply to Benda Xu from comment #4)

> > RHEL's system gcc is set up to use binutils via PATH search.  If
> > the version of our binutils an older one, they may not provide what
> > the system gcc is configured to use.  We need to direct the
> > system gcc to find the system binutils.
> 
> The RHEL binutils is always older than Gentoo.  Why would this ever happen?

This may be true for vanilla Prefix on RHEL, not sure about Fedora though.

However, I'm doing VeryLongTermSupport (~20 years) releases of Gentoo Prefix, so there is chance to have newer binutils on the host OS.

Beyond that, I could think of binutils features the host compiler does use, but are disabled in Prefix binutils.
Comment 6 Fabian Groffen gentoo-dev 2021-01-06 13:49:47 UTC
bot rpath and standalone bootstraps work these days?