우분투(7.10)에서 gcc-3.2.3 설치시 에러
우분투에서 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
------------------------------------------------
이상입니다. 이렇게 자꾸 에러가 발생하네요..
왜 그런지 여러분들께 도움을 부탁드립니다...
감사합니다~!
gcc-4.x 로 컴파일하지
gcc-4.x 로 컴파일하지 마시고 gcc-3.x 버전을 패키지로 받아 설치하신 후에 그것으로 빌드해보세요.
--
/~eunjea
http://eunjaeim.com
gcc-3.x 버전은...
지금 시스템이 gcc-4.x 버전으로 되어있는데... 3.x 버전을 패키지로 받아설치하면 괜찮을까요??
그렇게 하지않고 저 에러를 고칠수 있는 방법은 없나요??
댓글 달기