새 머신에서 피코가 생성한 systemc 어플리케이션 컴파일이 안돼 gcc-3.2.3과 systemc를 다시 설치했다.
gcc-3.2.3은 ftp.gnu.org에서 소스를 받아와 debian 패키지의 gcc-3.3으로 컴파일을 하니 문제없이 컴파일 되었다. 컴파일 옵션은 ./configure --prefix=/opt/gcc-3.2.3 --program-suffix=-3.2.3 i686-pc-linux-gnu gcc는 문제없이 성공한 후 systemc를 컴파일 했는데 문제가 발생했다. 오류 메시지는 다음과 같았다. sungjin:/usr/src/systemc-2.1.v1# ./configure CC=/opt/gcc-3.2.3/bin/gcc-3.2.3 CXX=/opt/gcc-3.2.3/bin/g++-3.2.3 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /usr/src/systemc-2.1.v1/config/missing: Unknown `--run' option Try `/usr/src/systemc-2.1.v1/config/missing --help' for more information configure: WARNING: `missing' script is too old or missing checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for gcc... /opt/gcc-3.2.3/bin/gcc-3.2.3 checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /opt/gcc-3.2.3/bin/gcc-3.2.3 accepts -g... yes checking for /opt/gcc-3.2.3/bin/gcc-3.2.3 option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of /opt/gcc-3.2.3/bin/gcc-3.2.3... gcc3 checking whether we are using the GNU C++ compiler... yes checking whether /opt/gcc-3.2.3/bin/g++-3.2.3 accepts -g... yes checking dependency style of /opt/gcc-3.2.3/bin/g++-3.2.3... gcc3 checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c configure: error: "sorry...compiler not supported" 왜왜왜왜왜? 안될까. 이해가 안돼 이것 저것 고민을 하다가 결국 해결책을 찾았는데 원인은 이상하게 만들어진 systemc의 configure 때문이었다. CC(=gcc-3.2.3)의 경우 gcc-3.2.3과 같이 실행 파일 뒤에 suffix가 붙어도 문제가 없었는데 CXX(=g++-3.2.3)의 경우 이름이 정확하게 g++이 아니면 configure: error: "sorry...compiler not supported"라는 어이없는 오류를 뱉어내는 것ㅠㅠ. 간단히 g++-3.2.3에 링크된 g++이란 심볼을 만들어 그 심볼을 실행 파일로 지정하니 문제없이 컴파일이 되었다. |