Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195054 - sys-apps/gcc-config-1.4.0-r3 generates incorrectly suffixed env.d entries (CTARGET-VER instead of CTARGET)
Summary: sys-apps/gcc-config-1.4.0-r3 generates incorrectly suffixed env.d entries (CT...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 195490 195727 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-08 05:03 UTC by Shunichi Fuji
Modified: 2010-07-27 13:41 UTC (History)
5 users (show)

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


Attachments
ls -l /etc/env.d/05* /etc/env.d/gcc/ (log.ls,868 bytes, text/plain)
2007-10-08 14:41 UTC, Shunichi Fuji
Details
gcc-config -x 2 >& log.2 (log.2,24.90 KB, text/plain)
2007-10-08 14:46 UTC, Shunichi Fuji
Details
gcc-config -x 3 >& log.3 (log.3,25.07 KB, text/plain)
2007-10-08 14:46 UTC, Shunichi Fuji
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shunichi Fuji 2007-10-08 05:03:22 UTC
1.system has been emerged multiple gccs
2.gcc-config 2 (i686-pc-linux-gnu-4.2.0) -> generate env.d/05gcc-i686-pc-linux-gnu-4.2.0
3.gcc-config 3 (i686-pc-linux-gnu-4.2.1) -> generate env.d/05gcc-i686-pc-linux-gnu-4.2.1

thus, shell has string-ordered path to gcc after "source /etc/profile".
"gcc -v" and "gcc-config -l"report using minimum version of gcc.

Reproducible: Always

Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2007-10-08 11:41:01 UTC
post the output of:
ls -l /etc/env.d/05* /etc/env.d/gcc/

run `gcc-config -x 2 >& log.2` and `gcc-config -x 3 >& log.3` and post the files as attachments
Comment 2 Shunichi Fuji 2007-10-08 14:41:00 UTC
Created attachment 132920 [details]
ls -l /etc/env.d/05* /etc/env.d/gcc/
Comment 3 Shunichi Fuji 2007-10-08 14:46:08 UTC
Created attachment 132924 [details]
gcc-config -x 2 >& log.2
Comment 4 Shunichi Fuji 2007-10-08 14:46:34 UTC
Created attachment 132926 [details]
gcc-config -x 3 >& log.3
Comment 5 Shunichi Fuji 2007-10-09 07:20:48 UTC
i see that /etc/env.d/gcc/.NATIVE symlink was changed properly.
Comment 6 Dennis Schridde 2007-10-09 09:52:23 UTC
I can confirm this.
In /etc/env.d/gcc/ gcc-config creates config-CTARGET-VERSION files, while it seems as if it previously generated only one config-CTARGET file.
Comment 7 Vladimir G. Ivanovic 2007-10-09 10:13:44 UTC
I had the same problem on AMD64. 

After I emerged gcc-4.2.1, even though `gcc-config x86_64-pc-linux-gnu-4.2.1'
completed without error, `gcc-config -l' always pointed to
x86_64-pc-linux-gnu-4.2.0. 

After un-emerging gcc-4.2.0, `gcc-config -l' returned with the error "Active
gcc profile is invalid!". 

I tracked the problem down to the contents of
/etc/env.d/gcc/config-x86_64-pc-linux-gnu which still containted
"CURRENT=x86_64-pc-linux-gnu-4.2.0" and to the contents of 
/etc/env.d/05gcc-x86_64-pc-linux-gnu which refered to 4.2.0 rather than 4.2.1.

I made config-x86_64-pc-linux-gnu a copy of config-x86_64-pc-linux-gnu-4.2.1
and made 05gcc-x86_64-pc-linux-gnu a copy of 05gcc-x86_64-pc-linux-gnu-4.2.1.

Since neither config-x86_64-pc-linux-gnu-4.2.0 nor
05gcc-x86_64-pc-linux-gnu-4.2.0 were now owned by a package, I deleted them.

All seems well. `gcc -v' indicates it's gcc-4.2.1 and `gcc-config -l' returns "
[1] x86_64-pc-linux-gnu-4.2.1 *". (As Shunichi-san noted in Comment #5, the
.NATIVE link was correct and wasn't changed.) Two test compiles completed
without error and their programs ran correctly.

I am using sys-devel/gcc-config-1.4.0-r3.
Comment 8 SpanKY gentoo-dev 2007-10-11 05:27:24 UTC
fixed with 1.4.0-r4
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-10-11 13:43:16 UTC
*** Bug 195490 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-10-13 18:00:54 UTC
*** Bug 195727 has been marked as a duplicate of this bug. ***