Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > GMP on OSX

GMP on OSX
Thread Tools
01000111
Guest
Status:
Reply With Quote
Dec 13, 2000, 09:41 AM
 
I have been trying, albeit unsuccessfully to get GNU's Multiple Precision Arithmetic Library compiled and running under OSX. Ultimately I'd like to get Pike and then Caudium running, but they require GMP to be properly installed. I have downloaded GMP3.1.1 and came upon this in the process:


Code:
make all-recursive Making all in mpn Making all in tests make[3]: Nothing to be done for `all'. m4 -DPIC -DOPERATION_add_n add_n.asm >tmp-add_n.s /bin/sh ../libtool --mode=compile cc -c -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DOPERATION_add_n -g tmp-add_n.s -o add_n.lo cc -c -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DOPERATION_add_n -g tmp-add_n.s -o add_n.o tmp-add_n.s:38:Parameter syntax error (parameter 2) tmp-add_n.s:39:Parameter syntax error (parameter 1) tmp-add_n.s:40:Parameter syntax error (parameter 1) tmp-add_n.s:41:Parameter syntax error (parameter 1) tmp-add_n.s:42:Parameter syntax error (parameter 1) tmp-add_n.s:44:Parameter syntax error (parameter 1) tmp-add_n.s:45:Parameter syntax error (parameter 1) tmp-add_n.s:46:Parameter syntax error (parameter 1) tmp-add_n.s:47:Parameter syntax error (parameter 1) tmp-add_n.s:49:Parameter syntax error (parameter 1) tmp-add_n.s:50:Parameter syntax error (parameter 1) tmp-add_n.s:51:Parameter syntax error (parameter 1) tmp-add_n.s:52:Parameter syntax error (parameter 1) tmp-add_n.s:55:Parameter syntax error (parameter 1) tmp-add_n.s:56:Parameter syntax error (parameter 1) tmp-add_n.s:57:Parameter syntax error (parameter 1) tmp-add_n.s:58:Parameter syntax error (parameter 1) tmp-add_n.s:60:Parameter syntax error (parameter 1) tmp-add_n.s:61:Parameter syntax error (parameter 1) tmp-add_n.s:62:Parameter syntax error (parameter 1) tmp-add_n.s:63:Parameter syntax error (parameter 1) tmp-add_n.s:66:Junk character -1 (<caron> ). make[3]: *** [add_n.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2
I'm told that this means there is a problem compiling some assembly files. So I tried to do a generic install with ./configure --target=none. That actually made it through the 'make' process and it compiles fine, but it just plain doesn't work. Doing a 'make check' gives these errors:
Code:
cc -g -o t-mul t-mul.o ../../.libs/libgmp.a /usr/bin/ld: archive: ../../.libs/libgmp.a has no table of contents, add one with ranlib(1) (can't load from it) make[3]: *** [t-mul] Error 1 make[2]: *** [check-am] Error 2 make[1]: *** [check-recursive] Error 1 make: *** [check-recursive] Error 1
Any suggestions would be helpful, I'm kind of against a wall here. I'm not sure what else to try.

thanks,

--glen


------------------
01100111 01101100
01100101
01101110 01100010
01101111



[This message has been edited by 01000111 (edited 12-13-2000).]
     
Professional Poster
Join Date: Jan 2000
Status: Offline
Reply With Quote
Dec 13, 2000, 11:18 AM
 
I'm going to move this over to the Mac OS X Developer forum. Click through to find your post.
     
Forum Regular
Join Date: Dec 2000
Status: Offline
Reply With Quote
Dec 13, 2000, 06:59 PM
 
target=none seems like a bad idea. Have you copied the config.sub and config.guess files?
If it's not compiling, you'll have to fix the problems yourself. That takes some experience in writing c/c++ libraries. If you haven't got that, you might want to give up.
     
01000111
Guest
Status:
Reply With Quote
Dec 13, 2000, 07:53 PM
 
Originally posted by Mniot:
target=none seems like a bad idea. Have you copied the config.sub and config.guess files?
If it's not compiling, you'll have to fix the problems yourself. That takes some experience in writing c/c++ libraries. If you haven't got that, you might want to give up.
Yeah, I thoght it seemed like a bad idea as well. 8) config.sub and config.guess are in the install directory. Where do I have to copy them to? No, I don't really have any experience writing c/c++libraries... but I do have experience with c/c++, so I'll monkey around with it and see what I can come up wih. I've got some guys here at work that are helping me with it, I just wanted to see if anyone out there had any specific experience in getting it to run on OSX.

thanks,

--glen


------------------
01100111 01101100
01100101
01101110 01100010
01101111

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:20 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2