error: cannot run C compiled programs

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


On Sep 9, 2015 8:28 PM, "Hardik A Gohil" <hardik at willowglen.com.my> wrote:
>
> Hello,
>
> ...
> checking whether we are cross compiling... configure: error: in
`/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-host/pkg-config-0.25':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> make: ***
[/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/state/host-pkg-config.prepare]
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
https://github.com/pkgconf/pkgconf

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

https://github.com/Oblong/yobuild/tree/master/recipes/pkgconf

- Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pkg-config/attachments/20150910/62f88f9b/attachment.html>


More information about the pkg-config mailing list