installation issues

Maroun Mourani mmourani1 at me.com
Sun Feb 17 14:37:04 CET 2013


1 - I run the command: ./configure
	I get the result :
	Version:           GNU MP 5.1.1
	Host type:         coreiwsm-apple-darwin11.4.2
	ABI:               64
	Install prefix:    /usr/local
	Compiler:          gcc -std=gnu99
	Static libraries:  yes
	Shared libraries:  yes

2 - Then I read this :

	MacOS X (‘*-*-darwin*’)
	Libtool currently only knows how to create shared libraries on MacOS X
using the
	native cc (which is a modified GCC), not a plain GCC. A static-only build
should
	work though (‘--disable-shared’).

	So I run the command : ./configure --disable-shared

	I get the following result :

		Version:           GNU MP 5.1.1
		Host type:         coreiwsm-apple-darwin11.4.2
		ABI:               64
		Install prefix:    /usr/local
		Compiler:          gcc -std=gnu99
		Static libraries:  yes
		Shared libraries:  no


3 - Then I read this also for link options :
		Compiler link options
		The version of libtool currently in use rather aggressively strips
compiler options
		when linking a shared library. This will hopefully be relaxed in the
future, but for
		now if this is a problem the suggestion is to create a little script to
hide them, and
		for instance configure with
		./configure CC=gcc-with-my-options

		So I run the following : ./configure CC=cc

		I get the following result:

			Version:           GNU MP 5.1.1
			Host type:         coreiwsm-apple-darwin11.4.2
			ABI:               64
			Install prefix:    /usr/local
			Compiler:          cc
			Static libraries:  yes
			Shared libraries:  yes

4 - then I wanted to combine all of the comments I read in your
installation manual
	So I run the following : ./configure CC=cc --disable-shared

		I get the following result :
			Version:           GNU MP 5.1.1
			Host type:         coreiwsm-apple-darwin11.4.2
			ABI:               64
			Install prefix:    /usr/local
			Compiler:          cc
			Static libraries:  yes
			Shared libraries:  no

5 - I run : "make" and then "make check"

I still get the same results

libtool: link: ( cd ".libs" && rm -f "libtests.la" && ln -s
"../libtests.la" "libtests.la" )
cc -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic -fomit-frame-pointer
-m64 -mtune=corei7 -march=corei7 -c t-bswap.c
/bin/sh ../libtool --tag=CC   --mode=link cc  -O2 -pedantic
-fomit-frame-pointer -m64 -mtune=corei7 -march=corei7   -o t-bswap
t-bswap.o libtests.la ../libgmp.la
libtool: link: cannot find the library `/gmp-5.1.1/libgmp.la' or unhandled
argument `/gmp-5.1.1/libgmp.la'
make[4]: *** [t-bswap] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2



The cc version is : Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM
3.2svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

Uname -a : Darwin Maroun-Mouranis-MacBook-Pro.local 11.4.2 Darwin Kernel
Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012;
root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64


Can you please help me in what is the proper configuration ? Cause I did
read your installation manual and I tried many different options with
"configure" and I still get he same error.

Best Regards, 

Maroun Mourani











On 2/17/13 2:09 PM, "Torbjorn Granlund" <tg at gmplib.org> wrote:

>Maroun Mourani <mmourani1 at me.com> writes:
>
>  Hi, 
>  
>  I am trying to install gmp on my machine. I downloaded the latest
>version
>  5.1.1. 
>  
>  OS platform MAC OS Lion version 10.7.5, 2.66ghz intel Core i7, 4GB 1067
>Mhz
>  DDR3 of RAM. 
>  I have installed Xcode ver 4.6 and all the command line tools.
>  
>  and I did the following :
>  
>  1 - ./configure cc=--disable-shared (as mentioned in your realease
>notes)
>  2 ­ Make check 
>  
>  I end up with the error :
>  libtool: link: cannot find the library `../libgmp.la' or unhandled
>argument
>  `../libgmp.la'
>  make[4]: *** [libtests.la] Error 1
>  make[3]: *** [check-am] Error 2
>  make[2]: *** [check-recursive] Error 1
>  make[1]: *** [check-recursive] Error 1
>  make: *** [check] Error 2
>  
>Please re-read the installation instructions.  You're making at least
>three mistakes.
>
>-- 
>Torbjörn




More information about the gmp-bugs mailing list