Building demos

julien.livet at free.fr julien.livet at free.fr
Tue Sep 3 14:10:59 CEST 2024


Hello Marc, 


Thank you for your answer. 
I try the command: "make factorize.exe" and it works with adding ".exe". 
I don't know that I have to specify the executable extension... 


Thank you for your support and have a nice day, 



Julien 

----- Mail original -----

De: "Marc Glisse" <marc.glisse at inria.fr> 
À: "julien livet" <julien.livet at free.fr> 
Cc: gmp-bugs at gmplib.org 
Envoyé: Lundi 2 Septembre 2024 20:28:09 
Objet: Re: Building demos 

On Mon, 2 Sep 2024, julien.livet at free.fr wrote: 

> I have recently downloaded and installed GMP on my computer, using MSYS2 with UCRT64 compiler. 
> I wanted to test demos, for that, I followed steps to build demos but it fails. 
> For example, in the demos folder, here is the console output: 
> $ make factorize 
> gcc -O2 -pedantic -fomit-frame-pointer -m64 -mtune=k8 -march=k8 factorize.c -o factorize 

On Linux, we get something like 

gcc -DHAVE_CONFIG_H -I. -I/home/glisse/repos/gmp/demos -I.. -I/home/glisse/repos/gmp -O2 -pedantic -fomit-frame-pointer -m64 -mtune=nehalem -march=nehalem -c -o factorize.o /home/glisse/repos/gmp/demos/factorize.c 
/bin/bash ../libtool --tag=CC --mode=link gcc -O2 -pedantic -fomit-frame-pointer -m64 -mtune=nehalem -march=nehalem -o factorize factorize.o ../libgmp.la 
libtool: link: gcc -O2 -pedantic -fomit-frame-pointer -m64 -mtune=nehalem -march=nehalem -o .libs/factorize factorize.o ../.libs/libgmp.so 

Makefile.am has 
LDADD = $(top_builddir)/libgmp.la 

which should link with the gmp that was built before the demo. I have no 
idea why that silently fails to happen on your computer. 

-- 
Marc Glisse 



More information about the gmp-bugs mailing list