Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It so happens that I hit a bug in Ubuntu's GCC 4.7.0, which has been fixed in later versions of GCC; I believe it's already fixed in 4.7.1.

  1. I can always download the source, compile and install it, but wouldn't it conflict with Ubuntu's package management?
  2. There's a "Toolchain test builds" PPA, but it seems to only contain 4.7.0 for Ubuntu 12.04.

What should I do to install GCC without disrupting my system?

share|improve this question
Do the first, but don't use make install use checkinstall to create a .deb package and install it so the package manager is aware of it. – Uri Herrera Sep 23 '12 at 19:38
There's an answer-less question here on AskUbuntu about checkinstall tracking half of the filesystem, making the created package quite useless. Then again, maybe the poster was missing something with the prefix or suffix. – user1071136 Sep 24 '12 at 0:17
Well I've used it before, with Inkscape and with Media Explorer (an HTPC software) and they're causing no trouble in my system. – Uri Herrera Sep 24 '12 at 3:37
You'll have to agree Inkscape is not the same as a compiler which contains OpenMP, ld and stdc++... :) In addition, it seems building GCC for Ubuntu is not free of pitfalls. I used… and it was pretty smooth, but the result fails to link some programs. – user1071136 Sep 24 '12 at 10:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.