Gcc upgrade follow-up

Source: Internet
Author: User
Gcc upgrade-general Linux technology-Linux programming and kernel information. The following is a detailed description. This article by qingsong original and in accordance with the GPL-V2 and its subsequent versions issued, reproduced please indicate the source http://hi.baidu.com/chinsungand should include this line of voice.

After upgrading the system today, gcc also went to version 4.2.3. However, after removing the old gcc from emerge -- depclean, the problem came along: gcc cannot be found! When I want other emerge software, the system prompts:

Checking for C compiler default output file name...
Configure: error: C compiler cannot create executables
See 'config. log' for more details.

View the gcc version:
Kgentoo ~ # Gcc-v
* Gcc-config: Active gcc profile is invalid!
Gcc-config error: cocould not run/locate "gcc"

What about gcc-config:
Kgentoo ~ # Gcc-config-B
* Gcc-config: Active gcc profile is invalid!
[1] i686-pc-linux-gnu-4.2.3

The problem is basically found. The solution is as follows:
Kgentoo ~ # Gcc-config i386-pc-linux-gnu-4.2.3

In general, gcc-vcan provide correct feedback.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.