Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13589 - gcc-config does not create a /usr/bin/gcc wrapper script
Summary: gcc-config does not create a /usr/bin/gcc wrapper script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 13576 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-09 12:59 UTC by Christian Birchinger (RETIRED)
Modified: 2003-09-11 15:49 UTC (History)
2 users (show)

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 Christian Birchinger (RETIRED) gentoo-dev 2003-01-09 12:59:31 UTC
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"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-12 14:34:17 UTC
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 ...
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2003-01-12 22:44:51 UTC
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.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-13 17:20:53 UTC
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.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 13:55:28 UTC
Actually, until we get past 1.4, gcc-config-1.3.1 or later should be used, as
it contains important bug fixes.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 18:30:19 UTC
*** Bug 13576 has been marked as a duplicate of this bug. ***
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-01-25 16:45:10 UTC
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

Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-26 01:21:07 UTC
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");
-----------------------------------------------------
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-01-26 04:11:02 UTC
maybe this is broken by color-gcc `?
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-26 08:14:30 UTC
Got colorgcc here.  Do a strace and see what happens or something ?
Comment 10 Bob Johnson (RETIRED) gentoo-dev 2003-02-06 14:14:32 UTC
stable gcc-config doesnt create symlinks for stable gcc 
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-16 03:01:42 UTC
None are creating symlinks.  Please read the full bug report, gcc-config-1.3.1
use fast C wrappers ...
Comment 12 Christian Birchinger (RETIRED) gentoo-dev 2003-09-11 15:49:15 UTC
Has been fixed a long time ago