Summary: | sys-devel/gcc-config should provide ldpath only for current, selected implementation | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kacper Kowalik (Xarthisius) (RETIRED) <xarthisius> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 419895 |
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? As per irc discussion with vapier, that's a valid behaviour |
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)