Building demos
Marc Glisse
marc.glisse at inria.fr
Mon Sep 2 20:28:09 CEST 2024
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