Red Hat Bugzilla – Bug 377761
icecream breaks when ccache is installed
Last modified: 2012-06-29 22:35:12 EDT
Description of problem:
icecream and ccache can't be easily used together.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum install icecream ccache
3. gcc --version
ICECC 12:29:12: icecream seems to have invoked itself recursively
icecream and ccache should be able to work together.
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...
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.
This bug still seems to be current.
Any clues on how to make these two products work together?
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.
OK, I'm clearing the needinfo flag and leaving this bug CLOSED. Max was just confused, he does not use Fedora.
I can see the same issue on F12. If I remove ccache from the PATH things work, else icecc fails with the same error.
(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?:
[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
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.
I too am having the same problem on FC16
Based on the above comments here are the versions and $PATH
And here is the error in Code::Blocks
ICECC 11|12|icecream seems to have invoked itself recursively!|
However, the command gcc --version works fine so .... maybe a Code::Blocks problem.
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
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Code::Blocks version is:
rpm -q codeblocks
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.