gcc-config only creates /usr/bin/cpp. /usr/bin/gcc is missing. This is really bad because if you do "su" and not "su -" you dont have a gcc in your path. I know i'm not the only one who dislikes "su -" and prefers plain "su". I think the most common programm names (gcc cc g++ c++) should exist as wrapper or at least as symlink in /usr/bin. gcc-config can update those when you update your gcc profile. Having such basic things only at exotic locations causes lots of troubles. For example "make menuconfig" after "su" already fails because it can't find "gcc"
Been wondering about this one, but have not done it, as it could 'screw' old installes. Maybe we should just add them if they do not exists ...
I talked to Azarah, and he is looking into fixing this by adding lightweight compiled C wrappers for the various compiler tools ... in /usr/bin.
Added sys-devel/cc-config. Please test. Seem to work fine with ccache. I have not yet done a bootstrap and emerge system, will start now.
Actually, until we get past 1.4, gcc-config-1.3.1 or later should be used, as it contains important bug fixes.
*** Bug 13576 has been marked as a duplicate of this bug. ***
i've found another bug on gcc 2.95 and glibc 2.2 based system, cc doesn't work tested with gcc-config 1.3.0 and 1.3.1 sv24 files # cc /bin/bash: /usr/i686-pc-linux-gnu/gcc-bin/2.95/cc: No such file or directory
Then you have an old wrapper.c or invalid symlinks or something else. ---------------------------------------- nosferatu lame-3.93.1 # gcc --version 2.95.3 nosferatu lame-3.93.1 # cc gcc: No input files nosferatu lame-3.93.1 # ---------------------------------------- Which is done in the wrapper: ----------------------------------------------------- /* cc calls gcc ... */ if (0 == strcmp(wrappername, "cc")) sprintf(wrappername, "%s", "gcc"); -----------------------------------------------------
maybe this is broken by color-gcc `?
Got colorgcc here. Do a strace and see what happens or something ?
stable gcc-config doesnt create symlinks for stable gcc
None are creating symlinks. Please read the full bug report, gcc-config-1.3.1 use fast C wrappers ...
Has been fixed a long time ago