Bug 469096 (codeblocks_gcc)

Summary: compiler is not detected
Product: [Fedora] Fedora Reporter: Yao Ziyuan <coolspeech>
Component: codeblocksAssignee: Dan Horák <dan>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: medium    
Version: rawhideCC: dan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 8.02-4.fc10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-31 14:26:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yao Ziyuan 2008-10-29 20:43:47 UTC
Description of problem:

In Rawhide (Fedora 9.92), first install CodeBlocks and wxSmith by 'yum install codeblocks' and 'yum install codeblocks-contrib', and then start CodeBlocks, create a new wxWidgets project (which uses wxGTK 2.8.x), and choose wxSmith as the project's GUI builder, and follow the defaults for the rest of the project's settings. And then click Build and Run, and CodeBlocks will say: "Project XXX uses an invalid compiler." GNU GCC Compiler is the project's compiler and works well in a console. So the bug is that Rawhide's CodeBlocks can't handle GCC somehow.

Version-Release number of selected component (if applicable):

8.02

How reproducible:

See above ("Description of problem").

Actual results:

See above ("Description of problem").

Expected results:

The wxWidgets project should build and run without errors.

Additional info:

Comment 1 Yao Ziyuan 2008-10-29 21:03:56 UTC
I found the solution at http://forums.codeblocks.org/index.php?topic=8006.msg59929

Please modify Fedora's codeblocks package to reflect the corrections specified by the above link.

Comment 2 Dan Horák 2008-10-31 07:24:32 UTC
C::B contains a bug when it is detecting the compiler. It searches whether gcc is in the "PATH" and gets fooled when ccache (the compiler cache) package is installed (it adds /usr/lib/ccache into PATH, last directory is stripped by C::B and we have /usr/lib as compiler location).
There are some changes in the detection code in the SVN, so I will check them first.

What is your output of "which gcc"? I would expect "/usr/lib/ccache/gcc".

Comment 3 Yao Ziyuan 2008-10-31 09:47:07 UTC
> What is your output of "which gcc"? I would expect "/usr/lib/ccache/gcc".

Yes:

[yaoziyuan@localhost ~]$ which gcc
/usr/lib/ccache/gcc

Comment 4 Fedora Update System 2008-10-31 12:58:35 UTC
codeblocks-8.02-3.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/codeblocks-8.02-3.fc9

Comment 5 Fedora Update System 2008-10-31 12:59:11 UTC
codeblocks-8.02-3.fc8 has been submitted as an update for Fedora 8.
http://admin.fedoraproject.org/updates/codeblocks-8.02-3.fc8

Comment 6 Dan Horák 2008-10-31 14:26:15 UTC
You can grab updated packages for Rawhide at https://koji.fedoraproject.org/koji/buildinfo?buildID=68173

Comment 7 Fedora Update System 2008-11-04 19:51:22 UTC
codeblocks-8.02-4.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/codeblocks-8.02-4.fc10

Comment 8 Fedora Update System 2008-11-21 11:00:51 UTC
codeblocks-8.02-3.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2008-11-21 11:01:34 UTC
codeblocks-8.02-3.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2008-12-07 04:15:50 UTC
codeblocks-8.02-4.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.