Subject | : SAD on Lion |
Article No | : 1025 |
Date | : 2012/07/10(Tue) 07:55:02 |
Contributor | : Y. Ohnishi |
SAD Install memo System: MacBook Air '11 $ uname -a Darwin adzuki.local 11.4.2 Darwin Kernel Version 11.4.2: Wed May 30 20:13:51 PDT 2012; root:xnu-1699.31.2~1/RELEASE_X86_64 x86_64
OS: OSX 10.7.4 (Lion)
[0] Install Xcode, then execute Xcode and install "Command Line Tools" on "Downloads" tab by hand.
These packages are prepared to build SAD: gcc-4.7.1 gmp-5.0.5 mpfr-3.1.1 mpc-0.9
[1] Build of gmp $ ./configure --enable-cxx --infodir=/usr/local/share/info CC=gcc CXX=g++ $ make $ make check $ sudo make install
[2] Build of mpfr $ ./configure --infodir=/usr/local/share/info CC=gcc CXX=g++ $ make $ make check $ sudo make install
[3] Build of mpc $ ./configure $ make $ sudo make install
[4] Build of gcc $ mkdir obj_gcc-4.7.1 $ cd obj_gcc-4.7.1 $ make-gcc.sh 4.7.1 <enter> $ make bootstrap $ sudo make install $ sudo chown -R root:wheel /usr/local/lib/gcc-4.7.1
make-gcc.sh:
#!/bin/tcsh set var =$< echo gcc-${var}
../gcc-${var}/configure \ --enable-languages=c,c++,fortran \ --disable-nls \ --with-system-zlib \ --program-suffix=-${var} \ --infodir=/usr/local/share/info/gcc-${var} \ --mandir=/usr/local/share/man \ --libdir=/usr/local/lib/gcc-${var} \ --with-gxx-include-dir=/usr/local/include/c++/${var} \ --build=x86_64-apple-darwin11.4.2 \ CC=gcc CXX=g++
sad.conf: # -- GNU Compiler Collection -- # Recommended GCC: 4.4.6 or later COMPILER=GNU USE_GCC=4.7.1 CC=gcc-4.7.1 FC=gfortran-4.7.1
## X11 setup # USE_X11=YES
## Tcl/Tk setup # USE_TCLTK=YES ##BUILD_TCLTK=YES ##USE_TCLTK_SHARED_LIBRARY=YES ##TCLTK_GUI_BACKEND=X11|AQUA ##TCLTK_FONT_SYSTEM=Xlib|Xft TCLTK_VERSION=8.5.10
Bench mark test:
*********** summary of the bench mark Function Test 1.5943020284175873 Optics Test1.9816958904266357 Tracking Test2.358720064163208 Matching Test.1295328140258789 Overall Score (smaller is faster): .08452153844492775
|