Discussion:
[Mingw-cross-env-list] isl fails to build for target x86_64-pc-linux-gnu
Anast Gramm
2018-04-09 18:16:38 UTC
Permalink
Hello, I've downloaded the mxe environment as described by the tutorial,
and I've edited my `settings.mk` file to contain the following:

MXE_TARGETS := x86_64-w64-mingw32.static
LOCAL_PKG_LIST := qt5 opencv hdf5 gcc cc exiv2 cmake
.DEFAULT_GOAL := local-pkg-list
local-pkg-list: $(LOCAL_PKG_LIST)

I am trying to cross compile a cpp application with cmake
to run on windows.

After invoking `make` the command fails with the following
errors:

Failed to build package isl for target x86_64-pc-linux-gnu!
------------------------------------------------------------
checking gmp.h presence... yes
checking for gmp.h... yes
checking for main in -lgmp... yes
configure: error: gmp library too old
make[1]: *** [Makefile:806: build-only-isl_x86_64-pc-linux-gnu] Error 1
make[1]: Leaving directory '/opt/mxe'
real 0m3.881s
user 0m3.107s
sys 0m0.818s
------------------------------------------------------------
[log] /opt/mxe/log/isl_x86_64-pc-linux-gnu

make: *** [Makefile:794: /opt/mxe/usr/x86_64-pc-linux-gnu/installed/isl] Error 1

Also I noticed that just before trying to build isl, there was
a successful build of gmp.

Why is it building for pc-linux-gnu while I specified mingw32?
What am I doing wrong and the compilation fails?

Thank you for your time.

--

Anastasis
Tony Theodore
2018-04-10 10:26:21 UTC
Permalink
Post by Anast Gramm
Hello, I've downloaded the mxe environment as described by the tutorial,
MXE_TARGETS := x86_64-w64-mingw32.static
LOCAL_PKG_LIST := qt5 opencv hdf5 gcc cc exiv2 cmake
.DEFAULT_GOAL := local-pkg-list
local-pkg-list: $(LOCAL_PKG_LIST)
That all looks correct.
Post by Anast Gramm
configure: error: gmp library too old
[…]
Also I noticed that just before trying to build isl, there was
a successful build of gmp.
It’s a strange error, can you post the full log? Preferably as a gist
(https://gist.github.com) or other pastebin.
Post by Anast Gramm
Why is it building for pc-linux-gnu while I specified mingw32?
gcc requires some native libraries (gmp, mpfr, isl, mpc) and these are built
once for the native platform to be used in each cross-compile target for gcc.

Cheers,

Tony
Anast Gramm
2018-04-11 07:14:40 UTC
Permalink
Hello,
Post by Tony Theodore
It’s a strange error, can you post the full log? Preferably as a gist
(https://gist.github.com) or other pastebin.
Thanks for the quick reply, here is another try today recorded by `script`

https://ptpb.pw/UC0w

There is not much more info tbh.

I am on Arch Linux if that's relevant.

Thanks,

Anastasis
Tony Theodore
2018-04-11 09:16:17 UTC
Permalink
Post by Anast Gramm
Hello,
Post by Tony Theodore
It’s a strange error, can you post the full log? Preferably as a gist
(https://gist.github.com) or other pastebin.
Thanks for the quick reply, here is another try today recorded by `script`
https://ptpb.pw/UC0w
There is not much more info tbh.
I am on Arch Linux if that's relevant.
It shouldn’t be, though `zsh` may have some impact.

The full log is in:

/opt/mxe/log/isl_x86_64-pc-linux-gnu

and

/opt/mxe/tmp-isl_x86_64-pc-linux-gnu/isl-0.15/config.log

should have some more info.

Cheers,

Tony

Loading...