C compiler cannot create executables

Have been having this strange error appear for a while when attempting to compile sys-libs/db (and compiling other software with C has no problems). The package is fine as my other box compiles the package fine.

I’m using CCACHE and Gentoo 2006.0 AMD64.

For anybody else with this problem, the solution seems to be deleting (or moving) /usr/lib/ccache/bin/x86_64-pc-linux-gnu-cc (on AMD64 systems) or /usr/lib/ccache/bin/i686-pc-linux-gnu-cc on x86 systems.

One thought on “C compiler cannot create executables”

  1. I encountered the same problem. I have links to ccache at /usr/local/bin and at make.conf ccache in my feature list. So I disabled it at make.conf and put /usr/local/bin out of my root’s path. – But then i686-pc-linux-gnu-cc was out of the path totally.
    I found a missing symbolic link which did the trick:

    at /usr/bin do

    ln -s ../i686-pc-linux-gnu/gcc-bin/4.1.1/i686-pc-linux-gnu-gcc i686-pc-linux-gnu-cc

    BTW: Then it also compiled at the other shell which had /usr/local/bin in root’s path and ccache enabled at make.conf if this symbolic link exists.

Leave a Reply

Your email address will not be published. Required fields are marked *