우분투(7.10)에서 gcc-3.2.3 설치시 에러

eterpure의 이미지

우분투에서 gcc-3.2.3을 로컬하게 설치해서 사용하려고 하는데
make bootstrap에서 다음과 같은 에러가 자꾸 생기네요...

(참고로, 현재 설치된 gcc버전은 4.1.3이고, 다음과 같이 설치를 했습니다)

> ./configure --prefix=/usr/local/gcc-3.2.3
---> 이상없음

> make bootstrap

-----------------------------------------------
make[1]: Entering directory `/usr/local/src/gcc-3.2.3/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional -pedantic regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional -pedantic regex.c
In file included from ./../include/xregex.h:26,
from regex.c:195:
./../include/xregex2.h:548: warning: ISO C90 does not support ‘static’ or type qualifiers in parameter array declarators
In file included from regex.c:649:
regex.c: In function ‘byte_compile_range’:
regex.c:4602: warning: signed and unsigned type in conditional expression
regex.c:4612: warning: signed and unsigned type in conditional expression
regex.c:4612: warning: signed and unsigned type in conditional expression
regex.c: At top level:
regex.c:1428: warning: traditional C rejects string constant concatenation
regex.c: In function ‘xregcomp’:
regex.c:8099: warning: signed and unsigned type in conditional expression
regex.c: In function ‘xregerror’:
regex.c:8234: warning: unused parameter ‘preg’
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional -pedantic cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional -pedantic cplus-dem.c
cplus-dem.c: In function ‘ada_demangle’:
cplus-dem.c:1003: warning: dereferencing type-punned pointer will break strict-aliasing rules
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional -pedantic cp-demangle.c -o pic/cp-demangle.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional -pedantic cp-demangle.c
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional -pedantic md5.c -o pic/md5.o; \
else true; fi

중략...

./rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
gcc -c -DIN_GCC -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./. -I./config -I./../include rtl.c -o rtl.o
In file included from rtl.c:24:
rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
gcc -c -DIN_GCC -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./. -I./config -I./../include ./read-rtl.c -o read-rtl.o
In file included from ./read-rtl.c:24:
./rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
./rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
./read-rtl.c: In function ‘fatal_with_file_and_line’:
./read-rtl.c:62: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function ‘read_rtx’:
./read-rtl.c:662: error: invalid lvalue in increment
make[2]: *** [read-rtl.o] 오류 1
make[2]: Leaving directory `/usr/local/src/gcc-3.2.3/gcc'
make[1]: *** [stage1_build] 오류 2
make[1]: Leaving directory `/usr/local/src/gcc-3.2.3/gcc'
make: *** [bootstrap] 오류 2
------------------------------------------------

이상입니다. 이렇게 자꾸 에러가 발생하네요..
왜 그런지 여러분들께 도움을 부탁드립니다...

감사합니다~!

eunjea의 이미지

gcc-4.x 로 컴파일하지 마시고 gcc-3.x 버전을 패키지로 받아 설치하신 후에 그것으로 빌드해보세요.

--
/~eunjea

eterpure의 이미지

지금 시스템이 gcc-4.x 버전으로 되어있는데... 3.x 버전을 패키지로 받아설치하면 괜찮을까요??
그렇게 하지않고 저 에러를 고칠수 있는 방법은 없나요??

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.