error: cannot run C compiled programs

Dan Kegel dank at
Thu Sep 10 06:52:07 PDT 2015

On Sep 9, 2015 8:28 PM, "Hardik A Gohil" <hardik at> wrote:
> Hello,
> ...
> checking whether we are cross compiling... configure: error: in
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> make: ***
Error 1

Well, *are* you trying to cross-complie?

IIRC pkg-config has dependencies that make it hard to bootstrap.
I switched to pkgconf, it's compatible and easier to build.  See

For completeness, here's how I build it (not directly useful for you):

- Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the pkg-config mailing list