Web lists-archives.com

Re: [Mingw-users] troubles compiling the GNU GMP under MinWG




Dear Eli,

Thanks, and sorry for the too big attachment. I removed the compile log of GMP; here's where I got stuck with compiling the GMP demos:

$ cd demos

$ 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'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x43): undefined reference to `__gmpz_cmp'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x6c): undefined reference to `__gmpz_cmp_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x91): undefined reference to `__gmpz_powm_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x9d): undefined reference to `__gmpz_cmp'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x123): undefined reference to `__gmpz_clear'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x1a5): undefined reference to `__gmpz_cmp'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x229): undefined reference to `__gmpz_init'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x252): undefined reference to `__gmpz_set'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x27f): undefined reference to `__gmpz_set'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x303): undefined reference to `__gmpz_init'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x364): undefined reference to `__gmpz_init'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x394): undefined reference to `__gmpz_init_set_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x3ac): undefined reference to `__gmpz_clear'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x3e8): undefined reference to `__gmpz_init'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x3f8): undefined reference to `__gmpz_scan1'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x40a): undefined reference to `__gmpz_fdiv_q_2exp'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x459): undefined reference to `__gmpz_cmp_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x473): undefined reference to `__gmpz_divisible_ui_p'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x487): undefined reference to `__gmpz_tdiv_q_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x4ab): undefined reference to `__gmpz_clear'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x4fa): undefined reference to `__gmpz_cmp_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x57a): undefined reference to `__gmpz_cmp_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x599): undefined reference to `__gmpz_cmp_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x5cd): undefined reference to `__gmpz_inits'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x5ec): undefined reference to `__gmpz_sub_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x600): undefined reference to `__gmpz_scan1'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x61e): undefined reference to `__gmpz_tdiv_q_2exp'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x62e): undefined reference to `__gmpz_set_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x6b2): undefined reference to `__gmpz_divexact'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x6cd): undefined reference to `__gmpz_powm'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x6dd): undefined reference to `__gmpz_cmp_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x70e): undefined reference to `__gmpz_add_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x79f): undefined reference to `__gmpz_clears'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x7e3): undefined reference to `__gmpz_set'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x891): undefined reference to `__gmpz_inits'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x8a5): undefined reference to `__gmpz_init_set_si'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x8b5): undefined reference to `__gmpz_init_set_si'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x8c9): undefined reference to `__gmpz_init_set_si'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x8dd): undefined reference to `__gmpz_init_set_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x913): undefined reference to `__gmpz_cmp_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x93c): undefined reference to `__gmpz_mul'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x953): undefined reference to `__gmpz_mod'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x96a): undefined reference to `__gmpz_add_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x97e): undefined reference to `__gmpz_sub'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x999): undefined reference to `__gmpz_mul'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x9bb): undefined reference to `__gmpz_mod'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x9e4): undefined reference to `__gmpz_gcd'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0x9f4): undefined reference to `__gmpz_cmp_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xa0c): undefined reference to `__gmpz_set'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xa30): undefined reference to `__gmpz_set'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xa6c): undefined reference to `__gmpz_mul'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xa83): undefined reference to `__gmpz_mod'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xa9a): undefined reference to `__gmpz_add_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xac0): undefined reference to `__gmpz_set'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xb00): undefined reference to `__gmpz_mul'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xb14): undefined reference to `__gmpz_mod'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xb2f): undefined reference to `__gmpz_add_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xb47): undefined reference to `__gmpz_sub'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xb57): undefined reference to `__gmpz_gcd'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xb67): undefined reference to `__gmpz_cmp_ui'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xb91): undefined reference to `__gmpz_divexact'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xbfb): undefined reference to `__gmpz_mod'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xc16): undefined reference to `__gmpz_mod'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xc31): undefined reference to `__gmpz_mod'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text+0xc95): undefined reference to `__gmpz_clears'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text.startup+0x89): undefined reference to `__gmpz_init'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text.startup+0xa6): undefined reference to `__gmpz_inp_str'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text.startup+0xc5): undefined reference to `__gmp_printf'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text.startup+0x125): undefined reference to `__gmp_printf'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text.startup+0x16d): undefined reference to `__gmpz_init'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text.startup+0x197): undefined reference to `__gmpz_set_str'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text.startup+0x1a7): undefined reference to `__gmp_printf'
C:\Users\euchner\AppData\Local\Temp\ccEo6gbB.o:factorize.c:(.text.startup+0x205): undefined reference to `__gmp_printf'
collect2.exe: error: ld returned 1 exit status
make: *** [factorize] Error 1

Do you have any idea what needs to be changed to get the demos executable?

Regards,

Martin.


-----Original Message-----
From: Eli Zaretskii [mailto:eliz@xxxxxxx] 
Sent: Monday, July 24, 2017 4:31 PM
To: MinGW Users List <mingw-users@xxxxxxxxxxxxxxxxxxxxx>
Cc: Euchner, Martin <martin.euchner@xxxxxxx>
Subject: Re: [Mingw-users] troubles compiling the GNU GMP under MinWG

> From: "Euchner, Martin" <martin.euchner@xxxxxxx>
> Date: Mon, 24 Jul 2017 11:50:35 +0000
> 
> I’m facing troubles compiling the GNU GMP under MinWG and would like 
> to hear which mailing list (mingw-users@xxxxxxxxxxxxxxxxxxxxx or 
> gmp-discuss@xxxxxxxxxx) is most appropriate to following-up with detailed questions?

It depends on what problems are you having.  So it's hard to answer that with only the information you provided.
------------------------------------------------------------------------------
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