Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266666 - [PATCH] sys-devel/gcc-config-1.4.1-r00.1 fails activate any profile on amd64-linux
Summary: [PATCH] sys-devel/gcc-config-1.4.1-r00.1 fails activate any profile on amd64-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-18 17:56 UTC by Stefan Hoelldampf
Modified: 2009-04-30 08:34 UTC (History)
0 users

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


Attachments
gcc-config.patch (gcc-config.patch,633 bytes, patch)
2009-04-18 17:57 UTC, Stefan Hoelldampf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Hoelldampf 2009-04-18 17:56:27 UTC
Without the attached patch the following error occurs on amd64-linux due to multilib paths:

$ gcc-config 1
 * Switching native-compiler to x86_64-pc-linux-gnu-4.3.3 ...
/tmp/gentoo/usr/bin/gcc-config: line 558: pushd: /tmp/gentoo/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3:/tmp/gentoo/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/.: No such file or directory

(The extraction of the first path of LDPATH has been copied from line 345.)
Comment 1 Stefan Hoelldampf 2009-04-18 17:57:14 UTC
Created attachment 188818 [details, diff]
gcc-config.patch
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-28 15:19:37 UTC
(In reply to comment #1)
> Created an attachment (id=188818) [edit]
> gcc-config.patch
> 

grobian: plz2review, I'll fix it with your ack.
Comment 3 Fabian Groffen gentoo-dev 2009-04-28 15:48:34 UTC
That comment sounds familiar, is it something that's in 1.4.0 by chance?  Then I just forgot to add it back to 1.4.1.  In that case it's ok to commit.
Comment 4 Fabian Groffen gentoo-dev 2009-04-28 19:57:25 UTC
@spanky: doesn't this apply to gentoo-x86 as well?

It seems to me LDPATH is resourced again from gcc's env.d file, where LDPATH can contain more than one path (toolchain.eclass:665), hence we need to do the same prayers as before, right?
Comment 5 SpanKY gentoo-dev 2009-04-29 21:52:39 UTC
i cant coordinate that change with what's in gentoo-x86 cvs, so i cant really comment on it (it certainly doesnt apply at all)
Comment 6 Fabian Groffen gentoo-dev 2009-04-30 08:33:24 UTC
I checked the wrong source file, sorry for bothering.
Comment 7 Fabian Groffen gentoo-dev 2009-04-30 08:34:43 UTC
similar patch applied, hope that solves the issue.