### GCC 


# gcc (GNU Compiler Collection) Linux에서 기본적으로 제공하는 컴파일러. 

# glibc는 리눅스에서 C로 짜여진 프로그램들이 참고하는 라이브러리입니다.


https://gcc.gnu.org/mirrors.html

### 다운로드 페이지


http://ftp.kaist.ac.kr/gnu/gnu/

ftp://gcc.gnu.org/pub/gcc/infrastructure/

### 필요한 패키지 다운로드

### requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.


gmp-6.1.0.tar.bz2 2015-Nov-24 20:48:55 2.2M application/x-bzip2

mpfr-3.1.4.tar.bz2 2016-Mar-06 22:55:35 1.2M application/x-bzip2

mpc-1.0.3.tar.gz 2015-Feb-21 00:24:45 654.2K application/x-gzip


### gmp 6.1

  ./configure --prefix=/tmp/gcc/gmp-6.1


### mpfr  3.1.4

  ./configure --prefix=/tmp/gcc/mpfr-3.1.4 --with-gmp=/tmp/gcc/gmp-6.1

  

### mpc 1.0.3

  ./configure --prefix=/tmp/gcc/mpc-1.0.3 --with-gmp=/tmp/gcc/gmp-6.1 --with-mpfr=/tmp/gcc/mpfr-3.1.4

  

# ISL 0.16

  ./configure --prefix=/tmp/gcc/isl-0.16 --with-gmp-prefix=/tmp/gcc/gmp-6.1


# ISL 0.15

  ./configure --prefix=/tmp/gcc/isl-0.15 --with-gmp-prefix=/tmp/gcc/gmp-6.1

  

# ISL 0.14

  ./configure --prefix=/tmp/gcc/isl-0.14 --with-gmp-prefix=/tmp/gcc/gmp-6.1

   

# ISL 0.14.1

  ./configure --prefix=/tmp/gcc/isl-0.14.1 --with-gmp-prefix=/tmp/gcc/gmp-6.1

  

============================================================================================================================


### gcc 5.2 ### vmware RedHat 7.0 에 설치 못함. 

( only isl 0.14 사용 하라고 되어있지만 버그 있는지 설치 안됨!)

cd gcc-5.2/contrib

./download_prerequisites

export LIBRARY_PATH=/usr/lib64


./configure --prefix=/tmp/gcc/gcc-5.2 --with-gmp=/tmp/gcc/gmp-6.1 --with-mpfr=/tmp/gcc/mpfr-3.1.4 --with-mpc=/tmp/gcc/mpc-1.0.3 --with-isl=/tmp/gcc/isl-0.14.1 --with-isl-include=/tmp/gcc/isl-0.14.1/include --with-isl-lib=/tmp/gcc/isl-0.14.1/lib  --disable-multilib


make && make install 실행시 아래와 같은 isl 관련 Errer 발생함.

============================================================================================================================

r -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/../libbacktrace -I/tmp/gcc/isl-0.16/include  -o graphite.o -MT graphite.o -MMD -MP -MF ./.deps/graphite.TPo ../.././gcc/graphite.c

In file included from ../.././gcc/graphite.c:88:0:

../.././gcc/graphite-poly.h:398:43: error: ‘isl_constraint’ has not been declared

 extern void print_isl_constraint (FILE *, isl_constraint *);

                                           ^

../.././gcc/graphite-poly.h:402:35: error: variable or field ‘debug_isl_constraint’ declared void

 extern void debug_isl_constraint (isl_constraint *);

                                   ^

../.././gcc/graphite-poly.h:402:35: error: ‘isl_constraint’ was not declared in this scope

../.././gcc/graphite-poly.h:402:51: error: expected primary-expression before ‘)’ token

 extern void debug_isl_constraint (isl_constraint *);

                                                   ^

make[3]: *** [graphite.o] Error 1

make[3]: Leaving directory `/tmp/install/gcc-5.2.0/host-x86_64-unknown-linux-gnu/gcc'

make[2]: *** [all-stage1-gcc] Error 2

make[2]: Leaving directory `/tmp/install/gcc-5.2.0'

make[1]: *** [stage1-bubble] Error 2

make[1]: Leaving directory `/tmp/install/gcc-5.2.0'

make: *** [all] Error 2

[root@node001 gcc-5.2.0]#

============================================================================================================================  

 

 

### gcc 4.9.3 RedHat 7.0 설치 가능

cd gcc-4.9.3/contrib

./download_prerequisites 

or 관련 패키지 설치


export LIBRARY_PATH=/usr/lib64

./configure --prefix=/tmp/gcc/gcc-4.9.3 --with-gmp=/tmp/gcc/gmp-6.1 --with-mpfr=/tmp/gcc/mpfr-3.1.4 --with-mpc=/tmp/gcc/mpc-1.0.3 --disable-multilib



### Redhat 7.0 CD 설치시 되어있는 gcc 4.8.2 configure

./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info \

--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared \

--enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit \

--disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id \

--with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto \

--enable-plugin --enable-initfini-array --disable-libgcj \

--with-isl=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/isl-install \

--with-cloog=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/cloog-install \

--enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux



'Server > Linux' 카테고리의 다른 글

linux 검색 방법  (1) 2016.05.20
Module (PATH 편하게 잡기)  (0) 2016.04.05
linux IP 설정시  (0) 2015.12.22
sftp 사용법  (0) 2014.07.02
redhat에서 yum하기  (0) 2014.05.28
블로그 이미지

§§

내 주머니속 작은 수첩

,