Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 1.76 KB

install_gcc.md

File metadata and controls

38 lines (34 loc) · 1.76 KB

install gmp, mpfr, mpc sequentially

gmp

  • ./configure --prefix=/opt/gmp6
  • make -j 10; make all; make install

mpfr

  • ./configure --prefix=/opt/mpfr/4.0.1 --with-gmp=/opt/gmp6
  • make -j 10; make all; make install

mpc

  • ./configure --prefix=/opt/mpc102 --with-gmp=/opt/gmp6 --with-mpfr=/opt/mpfr/4.0.1
  • make -j 20; make install

gcc8.2 using gcc4.8

  • mkdir build ; cd build
  • ../configure --prefix=/opt/compiler/gcc/8.2 --enable-languages=c,c++,fortran --with-gmp=/opt/libs/gmp/6.1.2/ --with-mpc=/opt/libs/mpc/1.1.0 --with-mpfr=/opt/libs/mpfr/4.0.1 --disable-multilib
    • 32bit support is disabled
  • lib of mpfr is needed in LD_LIBRARY_PATH
    • export LD_LIBRARY_PATH+=:/opt/libs/mpfr/4.0.1/lib
    • In csh/tcsh, setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/opt/libs/mpfr/4.0.1/lib
  • make -j 20; make all ; make install

trouble-shooting

  • When configure: error: error verifying int64_t uses long long message appears
    • The system doesn't have g++ compiler
  • When `configure: error: cannot compute suffix of object files: cannot compile' appers
    • Update LD_LIBRARY_PATH with libs of mpfr, gmp, mpc

5.3 source compiling using 8.2

5.5 source compiling using 8.2