ccache: FATAL: Could not find compiler "gcc" in PATH

Asked by Pierre Rudloff on 2012-01-12

Hello,
I am trying to build a package for MacPorts (https://code.launchpad.net/~rudloff/+junk/macports-package).
If I launch debuild, the package builds just fine. But when I use pbuilder, the configure script fails with this error:
configure:3036: checking for gcc
configure:3052: found /usr/lib/ccache/gcc
configure:3063: result: gcc
configure:3292: checking for C compiler version
configure:3301: gcc --version >&5
ccache: FATAL: Could not find compiler "gcc" in PATH

I have absolutely no idea of what causes this.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ccache Edit question
Assignee:
No assignee Edit question
Solved by:
Pierre Rudloff
Solved:
2012-01-18
Last query:
2012-01-18
Last reply:
Pierre Rudloff (rudloff) said : #1

I used this as a workaround:
CC=/usr/bin/gcc