Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2418 - gcc-config like java-config
Summary: gcc-config like java-config
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-03 18:24 UTC by squeeze
Modified: 2003-02-04 19:42 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 squeeze 2002-05-03 18:24:20 UTC
Would it be possible to have a gcc-config like the java-config. This would let
the user choose between 2.95.x or 3.x

Cheers

/Mario
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-04 09:39:27 UTC
You already have the choise if the projects build tools (./configure && 
Makefile)are written properly:

# CC=gcc-3.0 CXX=g++-3.0 ./configure && make all install

Comment 2 squeeze 2002-05-04 16:29:37 UTC
Ok, that will do it. But I thought more of a "complete" solution with path set etc and one didn't 
have to bother with setting env vars. 
 
Well my idea may be unnesessary. 
 
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-05 03:30:03 UTC
I guess I dont have that a big an issue, except that most people who have
both installed, is devs who compile their own projects and the CC and CXX
is usually how they change it.  Then supposidly gcc-3.1 will be out in a while,
and that should fix most of gcc-3.0's problems, so that we can hopefully
get a default gcc-3.1 profile.

Uhm, maybe I was just rambling above.  Biggest problem will be that there will
be major changes to both gcc-2.95.3 and gcc-3.0.4 ebuilds, meaning things could
really get broken.  I will speak to Daniel Robbins, and get his opinion.
Comment 4 squeeze 2002-05-05 06:02:09 UTC
And a second thought says to me that if there are new ebuilds, one must compile gcc over again just 
for an little gcc-config file... 
 
Comment 5 Bernardo S. A. Silva 2002-12-22 16:03:20 UTC
Hi...

Strange... I had the gcc-3.2.1 installed. So, I install gcc-2.95.3-r8 and after 
that the gcc-config.
Then I made : # gcc-config --get-current-profile
So I made : # gcc-config --use-portage-chost i686-pc-linux-gnu-2.95.3
When I compile the things it compile with gcc2 and works very well.
But when I made any command of the portage like:
# env-update
or:
# gcc-config --use-portage-chost i686-pc-linux-gnu-3.2.1
It makes and error on shared files from gcc3. So I modify the ld.so.conf by 
hand and made the ldconfig, I can came back with my gcc-3.2.1. I think that the 
gcc-config do not create the profiles well. Why?

   Thanx a lot... Bernardo S. A. Silva
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-22 18:05:01 UTC
You do not make much sense.  If you want it fixed, post what version gcc-config,
and also what the contents of /etc/env.d/05gcc was when it borked.