gcc should support update-alternatives

Bug #145486 reported by Wolfgang Silbermayr
4
Affects Status Importance Assigned to Milestone
gcc-4.2 (Ubuntu)
Won't Fix
Low
Matthias Klose

Bug Description

Binary package hint: gcc-4.2

When you install different versions of gcc, it is not possible to switch between them using the update-alternatives command.

Steps to reproduce this:
sudo aptitude install gcc-4.1 gcc-4.2
update-alternatives --list gcc

the last command writes that there are no alternatives for gcc.

It would be nice, especially for developers that want to verify errors or warnings, to quickly change the gcc version that way.

Revision history for this message
spiceisland (graham-hudspith) wrote :

Please can I vote for this enhancement too?

Frankly, I find it bizarre that a system, with at least five C++ compilers (g++ versions 2.95, 3.3, 3.4, 4.1 and 4.2) available, can't easily nominate a default compiler using the Debian alternatives system. Shame on you.

I would welcome pointers to information about making gcc/g++ work with said alternatives system so that I can better appreciate why the above statement shows that I do not understand how hard this is to implement !

Revision history for this message
Matthias Klose (doko) wrote :

GCC versions come with different ABIs and APIs, therefore it is not an alternative. If you do want to use a different version do so by building witj CC=gcc-X.Y CXX=g++-X.Y

Changed in gcc-4.2:
assignee: nobody → doko
importance: Undecided → Low
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.