Compile Giac on Mac OS X
Publié : jeu. déc. 02, 2010 3:57 pm
Hello,
We are two students from the greek University of Thessaly and we were currently assigned with a project in which we want to compile Giac on Mac OS.
Our system preferences:
We have two laptops. Both of them are PCs and have hackintosh on them.
Both have Intel processors.
One of them is running Mac OS X 10.5.8 and the other one 10.5.6.
Till now we tried lot of things.
Using MacPorts we installed all of the libaries we though that were nessecary:
expat @2.0.1_1 (active)
gcc43 @4.3.5_2 (active)
gettext @0.18.1.1_2 (active)
gmp @5.0.1_0 (active)
gperf @3.0.4_0 (active)
gsl @1.14_0 (active)
libiconv @1.13.1_0 (active)
libpng @1.2.44_0 (active)
mpfr @3.0.0-p8_0 (active)
ncurses @5.7_1 (active)
ncursesw @5.7_1 (active)
ntl @5.4.2_0 (active)
perl5 @5.8.9_0 (active)
perl5.8 @5.8.9_3 (active)
tcl @8.5.9_0 (active)
texinfo @4.13_2 (active)
xz @5.0.0_0 (active)
zlib @1.2.5_0 (active)
Build-in gcc compiler on our Mac OS is:
gcc version 4.0.1 (Apple Inc. build 5493)
Reading this thread we tried your suggestions:
We downloaded and extracted giac-0.8.6.tar.gz and in the folder which was created we wrote these commands in the terminal:
After all the exports we execute:
Everything ran smoothly till this point with the exception that after ./configure command the terminal stops working properly. Any sudo command after this returns an "illegal operation" message and doesn't execute. After this misbehavior of the terminal we perform a reboot which brings the terminal back to a working state and then we continue by executing:
which returns these errors in the terminal:
Beside this attempt we also tried compliling giac-0.9.0 both frozen and unstable version using these exports:
After the exports we execute:
This returns an error message "GMP version is way too old" despite the fact that we tried compiling also with GMP 5.0.1, GMP 4.3.1 and GMP 3.1 installed.
Thanks for reading our long post, and we are looking forward hearing any suggestions.
Regards,
Petros and Filio.
We are two students from the greek University of Thessaly and we were currently assigned with a project in which we want to compile Giac on Mac OS.
Our system preferences:
We have two laptops. Both of them are PCs and have hackintosh on them.
Both have Intel processors.
One of them is running Mac OS X 10.5.8 and the other one 10.5.6.
Till now we tried lot of things.
Using MacPorts we installed all of the libaries we though that were nessecary:
expat @2.0.1_1 (active)
gcc43 @4.3.5_2 (active)
gettext @0.18.1.1_2 (active)
gmp @5.0.1_0 (active)
gperf @3.0.4_0 (active)
gsl @1.14_0 (active)
libiconv @1.13.1_0 (active)
libpng @1.2.44_0 (active)
mpfr @3.0.0-p8_0 (active)
ncurses @5.7_1 (active)
ncursesw @5.7_1 (active)
ntl @5.4.2_0 (active)
perl5 @5.8.9_0 (active)
perl5.8 @5.8.9_3 (active)
tcl @8.5.9_0 (active)
texinfo @4.13_2 (active)
xz @5.0.0_0 (active)
zlib @1.2.5_0 (active)
Build-in gcc compiler on our Mac OS is:
gcc version 4.0.1 (Apple Inc. build 5493)
Reading this thread we tried your suggestions:
We downloaded and extracted giac-0.8.6.tar.gz and in the folder which was created we wrote these commands in the terminal:
Code : Tout sélectionner
export CFLAGS='-O2 -I/usr/local/include-arch i386-Set to be -L/usr/local/lib /Developer/SDKs/MacOSX10.4u.sdk-mmacosx-version-min = 10.4'
export CXXFLAGS=$CFLAGS
export MACOSX_DEPLOYMENT_TARGET='10.5'
export CC='/usr/bin/gcc4.0'
export CXX='/usr/bin/g++4.0'
Code : Tout sélectionner
sudo ./configure
Code : Tout sélectionner
sudo make
Code : Tout sélectionner
make all-recursive
Making all in src
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -g -O2 -c sym2poly.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -g -O2 -c sym2poly.cc -o sym2poly.o
echo timestamp > sym2poly.lo
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -g -O2 -c gausspol.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -g -O2 -c gausspol.cc -o gausspol.o
threaded.h: In function 'void giac::type_operator_plus_times(const giac::my_mpz&, const giac::my_mpz&, giac::my_mpz&)':
threaded.h:189: error: 'mpz_addmul' was not declared in this scope
threaded.h: In function 'void giac::type_operator_plus_times_reduce(const giac::my_mpz&, const giac::my_mpz&, giac::my_mpz&, int)':
threaded.h:194: error: 'mpz_addmul' was not declared in this scope
gausspol.cc: In function 'giac::gen giac::ichrem_smod(__mpz_struct (*)[1], __mpz_struct (*)[1], __mpz_struct (*)[1], __mpz_struct (*)[1], const giac::gen&, const giac::gen&)':
gausspol.cc:424: error: 'mpz_addmul' was not declared in this scope
gausspol.cc: In function 'giac::gen giac::ichrem_smod(__mpz_struct (*)[1], __mpz_struct (*)[1], __mpz_struct (*)[1], __mpz_struct (*)[1], longlong, longlong)':
gausspol.cc:448: error: 'mpz_addmul' was not declared in this scope
gausspol.cc: In function 'giac::gen giac::ichrem_smod(const giac::gen&, const giac::gen&, const giac::gen&, const giac::gen&)':
gausspol.cc:487: error: 'mpz_addmul' was not declared in this scope
make[2]: *** [gausspol.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
Code : Tout sélectionner
export CXXFLAGS=-I/usr/local/include
export CXXFLAGS=-L/usr/local/lib
export CFLAGS=-I/usr/local/include
export CFLAGS=-L/usr/local/lib
Code : Tout sélectionner
sudo ./configure
Thanks for reading our long post, and we are looking forward hearing any suggestions.
Regards,
Petros and Filio.