Can't find specified CC

Volker Simonis volker.simonis at gmail.com
Thu Nov 19 13:31:25 UTC 2015


CC contains the compiler command, not a path where the compiler can be
found (what would be the compiler name otherwise?).

bash configure --help
...
  CC          C compiler command
  CXX         C++ compiler command
...

Regards,
Volker

On Thu, Nov 19, 2015 at 2:13 PM, Frieder Berthold
<berthold.frieder at googlemail.com> wrote:
> Hello to all,
>
> I want to build the openJDK with a musl cross-compiler.
> For that reason I configure the project with CC=/absolut/path/to/my/compiler
> Configure then says that it can't find a working C Compiler.
> Using strace on the configure command I can see that it tries to open the
> specified path appended to some default paths (e.g
> /usr/local/sbin//absolut/path/to/my/compiler or
> /usr/bin//absolut/path/to/my/compiler)
> My solution right now is a symlink to my compiler in one of those paths,
> but this doesn't feel right.
> Is there a more correct way of doing it?
>
> Frieder



More information about the build-dev mailing list