Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419991 - sys-devel/gcc-config should provide ldpath only for current, selected implementation
Summary: sys-devel/gcc-config should provide ldpath only for current, selected impleme...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 419895
  Show dependency tree
 
Reported: 2012-06-06 21:08 UTC by Kacper Kowalik (Xarthisius) (RETIRED)
Modified: 2012-06-06 22:03 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 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-06 21:08:34 UTC
Currently gcc-config does things like that:

aiur ld.so.conf.d # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.4.6 *
 [2] x86_64-pc-linux-gnu-4.6.2-asneeded
 [3] x86_64-pc-linux-gnu-4.6.3
aiur ld.so.conf.d # gcc-config 1
 * Switching native-compiler to x86_64-pc-linux-gnu-4.4.6 ...                                             [ ok ]
aiur ld.so.conf.d # cat 05gcc-x86_64-pc-linux-gnu.conf 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.6/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.6

which leads to funny things like:

aiur xarth # env-update 
>>> Regenerating /etc/ld.so.cache...
aiur xarth # source /etc/profile
aiur xarth # gfortran --version | head -1
GNU Fortran (Gentoo 4.4.6-r1 p1.0, pie-0.4.5) 4.4.6
aiur xarth # gfortran foo.f90 
aiur xarth # ldd ./a.out | grep gcc
	libgfortran.so.3 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgfortran.so.3 (0x00007f357581b000)
	libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so.1 (0x00007f3575313000)
	libquadmath.so.0 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libquadmath.so.0 (0x00007f3574d3e000)
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-06 21:35:23 UTC
meh, just found bug 297685 so I guess this is intended change. Any advice on how can I cluebat my system to have working gfortran-4.4 with gcc-4.6 installed?
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-06 22:03:01 UTC
As per irc discussion with vapier, that's a valid behaviour