Bug 377761 - icecream breaks when ccache is installed
icecream breaks when ccache is installed
Product: Fedora
Classification: Fedora
Component: icecream (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Michal Schmidt
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-11-12 08:56 EST by Michal Schmidt
Modified: 2012-06-29 22:35 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-28 04:24:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michal Schmidt 2007-11-12 08:56:39 EST
Description of problem:
icecream and ccache can't be easily used together.

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

How reproducible:

Steps to Reproduce:
1. yum install icecream ccache
2. (login)
3. gcc --version
Actual results:
ICECC[14017] 12:29:12: icecream seems to have invoked itself recursively

Expected results:
icecream and ccache should be able to work together.

Additional info:
The shell looks for gcc in $PATH and finds icecream's symlink. icecream looks
for the real gcc, finds ccache, runs it. ccache looks for real gcc, finds
icecream, runs it...
Comment 1 Michal Schmidt 2007-11-28 04:24:27 EST
icecream-0.8.0-5.20071101svn.fc9 prevents the recursive invocation - only 
ccache is used if both are installed.

Having ccache and icecream cooperate requires a small modification in ccache.
Comment 2 Max Waterman 2009-04-27 02:42:55 EDT
This bug still seems to be current.

Any clues on how to make these two products work together?
Comment 3 Michal Schmidt 2009-04-27 04:13:22 EDT

does it mean you're seeing the message "icecream seems to have invoked itself recursively"?
What versions of ccache and icecream do you have?
How does your $PATH look like?
I don't usually use ccache, but I've installed it now and it seems icecream and ccache work fine here together.
Comment 4 Michal Schmidt 2009-04-30 10:43:59 EDT
OK, I'm clearing the needinfo flag and leaving this bug CLOSED. Max was just confused, he does not use Fedora.
Comment 5 Dhaval Giani 2010-02-01 10:38:40 EST
I can see the same issue on F12. If I remove ccache from the PATH things work, else icecc fails with the same error.
Comment 6 Michal Schmidt 2010-02-01 11:19:29 EST
(In reply to comment #5)
> I can see the same issue on F12. If I remove ccache from the PATH things work,
> else icecc fails with the same error.    

What exact versions do you have installed?:
rpm -q icecream ccache

How does your PATH look after login?:
echo $PATH
Comment 7 Dhaval Giani 2010-02-01 11:27:18 EST
[dhaval@gondor ~]$ rpm -q icecream ccache

and I do export PATH=/usr/lib64/icecc/bin:$PATH as menmtioned in man icecc

[dhaval@gondor ~]$ echo $PATH
Comment 8 Michal Schmidt 2010-02-01 12:07:54 EST
I see. icecream+ccache only work right if ccache precedes icecream in PATH. Normally PATH is set automatically for you by the profile script /etc/profile.d/icecream.sh - it takes care to put icecream after ccache if it finds it there. It's hacky, but it works for me. I wonder why the profile script did not put /usr/lib64/icecc/bin into PATH for you.
Comment 9 James Preston 2012-06-28 14:26:23 EDT
I too am having the same problem on FC16
Based on the above comments here are the versions and $PATH

echo $PATH

And here is the error in Code::Blocks
ICECC[23563] 11|12|icecream seems to have invoked itself recursively!|

However, the command gcc --version works fine so .... maybe a Code::Blocks problem.

gcc --version
gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO

Code::Blocks version is:
rpm -q codeblocks
Comment 10 James Preston 2012-06-29 22:35:12 EDT
Is a Code::Blocks problem. Although the path has ccache before icecc, Code::Blocks auto detect gcc compiler ALWAYS selects /usr/lib64/icecc, manually selecting /usr/lib64/ccache solves the problem.

Note You need to log in before you can comment on or make changes to this bug.