Skip to content
Advertisement

How do I fix this libgcrypt cross-compilation error?

I’m trying to cross compile GPG for an ElinOS on a board with an imx6. I have a problem when I compile libgcrypt. First, here’s what I do:

JavaScript

The configuration part shows no errors or warning, but the make displays this:

JavaScript

The first error leads me to this part of the code :

JavaScript

Any idea where this comes from? It looks like a configuration problem, but I’m not sure where to look now.

Advertisement

Answer

In the config.log file, CC was setup correctly: CC='arm-unknown-linux-gnueabihf-gcc'.

Yet I needed to specify it in the make command. So instead of simply using make all, which didn’t work, I had to use make all CC=arm-unknown-linux-gnueabihf-gcc.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement