Make and Install bugs ?

Sören Rundgren soren_rundgren at hotmail.com
Sun Jan 22 18:00:30 UTC 2017


Hi
   Downloaded 6.1.2 using windows tools and WinRAR (after uncompressing lz file within cygwin64) with the intent to create a gmp library and use it together with gnat Ada2012 from Adacore.  Changed later to Cygwin32 according to instructions from AdaCore.
I had to install Cygwin32 on top of the GNAT installation in order for the ./configure, make and install to work.  In Cygwin then the path was set to /cygdrive/c/GNAT/2016. In Windows the path is C:\GNAT\2016.  ./configure log attached.
When making all in mpn then an error occured.
-------------------------------------------------------------------------------------------
../gmp-mparam.h:1:1: error: expected identifier or '(' before '!' token
!<symlink>¦¦m p n / x 8 6 / p 6 / g m p - m p a r a m . h
^
../gmp-mparam.h:1:1: error: stray '\377' in program
../gmp-mparam.h:1:1: error: stray '\376' in program
../gmp-mparam.h:1:14: warning: null character(s) ignored
-------------------------------------------------------------------------------------------
Fixed the error by command to replace all the symlinks in the mpn folder with hardlinks.
At soren at DESKTOP-6RDFJ0O /cygdrive/c/Users/soren/Downloads/gmp-6.1.2/build9/mpn executed
$ find -type l -exec bash -c 'ln -f "$(readlink -m "$0")" "$0"' {} \;
Then when running install.
-----------------------------------------------------------------------------------------------------------------------
make[3]: Entering directory '/cygdrive/c/Users/soren/Downloads/gmp-6.1.2/build9'
/usr/bin/mkdir -p '/cygdrive/c/GNAT/2016/lib'
/bin/sh ./libtool   --mode=install /usr/bin/install -c   libgmp.la '/cygdrive/c/GNAT/2016/lib'
libtool: install: /usr/bin/install -c .libs/libgmp.lai /cygdrive/c/GNAT/2016/lib/libgmp.la
libtool: install: /usr/bin/install -c .libs/libgmp.a /cygdrive/c/GNAT/2016/lib/libgmp.a
libtool: install: chmod 644 /cygdrive/c/GNAT/2016/lib/libgmp.a
libtool: install: ranlib /cygdrive/c/GNAT/2016/lib/libgmp.a
C:\GNAT\2016\bin\ranlib.exe: '/cygdrive/c/GNAT/2016/lib/libgmp.a': No such file
make[3]: *** [Makefile:832: install-libLTLIBRARIES] Error 1
------------------------------------------------------------------------------------------------------------------------
Suddenly when running the install script the file reference in windows format appear:
C:\GNAT\2016\bin\ranlib.exe
Fixed the error by executing ranlib at the folder /cygdrive/c/GNAT/2016/lib on the file libgmp.a manually.
Apparently the install script did not point to the proper folder to execute ranlib.
$ uname -a
CYGWIN_NT-10.0-WOW DESKTOP-6RDFJ0O 2.6.1(0.305/5/3) 2016-12-16 11:50 i686 Cygwin
$ ./config.guess
i686-pc-cygwin
$ ./configfsf.guess
i686-pc-cygwin

Managed to succeed with the creation of the library and ran the demo regexp and factorize.
$ ./pexpr 2^256-111
115792089237316195423570985008687907853269984665640564039457584007913129639825
$ ./factorize 115792089237316195423570985008687907853269984665640564039457584007913129639825
115792089237316195423570985008687907853269984665640564039457584007913129639825: 5 5 19 83 24071 1450711 35741921 143766607609825715149 16368023331020534988563820704049941
BR’s
Sören Rundgren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.rar
Type: application/rar
Size: 23197 bytes
Desc: config.rar
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20170122/9c1e6de4/attachment-0001.bin>


More information about the gmp-bugs mailing list