Re: [Mingw-users] troubles compiling the GNU GMP under MinWG
- Date: Mon, 24 Jul 2017 19:33:39 +0100
- From: Keith Marshall via MinGW-users <mingw-users@xxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: [Mingw-users] troubles compiling the GNU GMP under MinWG
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 24/07/17 16:46, Eli Zaretskii wrote:
>> From: "Euchner, Martin" <martin.euchner@xxxxxxx>
>> Date: Mon, 24 Jul 2017 15:20:32 +0000
>>
>> $ make factorize
>> gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=sandybridge -march=sandybridge factorize.c -o factorize
>> C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x23): undefined reference to `__gmpz_powm'
>> C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x33): undefined reference to `__gmpz_cmp_ui'
The OP sent me a copy of his build log, by private mail; it shows that
he chose a non-standard prefix, for installation of his GMP build, so
not only ...
> The GCC command line obviously lacks the reference to GMP library.
... but also lacks a specification of the path to it. (Alternatively,
if the MinGW.org pre-built GMP-6.1.2 is installed -- the "dev" package,
not just the DLL -- it would be found in GCC's default library path).
I
> would look at the Makefile which produced this command, probably some
> variable isn't set there correctly or has an empty value.
Maybe LDFLAGS for the -L path, and LIBS for the library reference itself,
since GMP uses an autoconf generated configuration.
> Did the library itself build successfully?
The OP's log suggests that it did.
- --
Regards,
Keith.
Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
iQIcBAEBAgAGBQJZdj2DAAoJEMCtNsY0flo/WMgP/RL9fwLXrLvhzbSgA+9JTYzA
CrJfWyy6YV+Z1I1T0hPoAJWSDh7eUDDz8zas7PVu3MGHhDubAFs8TryYOyelBKaO
DxgUsulZzCcVTiMyzII6twcNq9BMOlmhZ3rKiU7qEIhNl5z7wTdYQOFT276TjeHv
0fc9J9JEXPOQBEai5pApH8bH9chpHIKFzX9wx3y2jXLWtwYiJe9qQnENXrQu6wU6
9gnBp7+xnAk7xksxirxeSfAHQozwF2ME6yP857omWxgGuzTI2fKl2t47pGsH8Uyd
UiLntvXQekcgi0ZLLfxkIfl1j2Z30JfUGiwk5h4Ne/kwBv96jxSevqUQsyy/k6rN
e5N4HyXlQOsmsAML6PSGaTaKV2jwk4bssNJgzQJrgvs+/ICFl1URmQrgi7NMKti9
PgPqbIsKV2yzdXG8AswYp1BxvWM94cx0JsJpN+eNgKNmcRMrR7oZ+LNx2O6P1GmI
f7N+sFKYTKNdXEHB6FOonYVLLouNe101jOGmCSyWNd6KV2nvO1z9KUL2mII6L24T
NQ1RSMe7c9n5Ry3fU6EIQlKg8rITnzsoRzTsWEnkxZ2lDeBxXBnaanU1yiPiaMcJ
pUBtFwD8VK9tSARMejaf4Xoh5hxmPwbKmJZxa7dj6DY+IYGg3DvEjikjdOWphDt3
6XS8Cx+Bu3Gf01q+5vOo
=4g6K
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe