2009-10-24 2 views
0

내 문제 : 나는 내 버추얼에 오픈 솔라리스 2009.06의 내 설치 GCC 4.4.2을 컴파일, 빌드 및 설치하려고했습니다오류 1 & 2 오픈 솔라리스에 GCC 4.4.2을 컴파일 할 때 2009.06

3 i386 기계.

> checking whether ln -s works... yes 
checking for i386-pc-solaris2.11-gcc... /src/gcc-4.4.2/host-i386-pc-solaris2.11/gcc/xgcc -B/src/gcc-4.4.2/host-i386-pc-solaris2.11/gcc/ -B/usr/gnu/i386-pc-solaris2.11/bin/ -B/usr/gnu/i386-pc-solaris2.11/lib/ -isystem /usr/gnu/i386-pc-solaris2.11/include -isystem /usr/gnu/i386-pc-solaris2.11/sys-include 
checking for suffix of object files... configure: error: in `/src/gcc-4.4.2/i386-pc-solaris2.11/libgcc': 
configure: error: cannot compute suffix of object files: cannot compile 
See `config.log' for more details. 
make[2]: *** [configure-stage1-target-libgcc] Error 1 
make[2]: Leaving directory `/src/gcc-4.4.2' 
make[1]: *** [stage1-bubble] Error 2 
make[1]: Leaving directory `/src/gcc-4.4.2' 
make: *** [all] Error 2 

시도 솔루션 : 메이크업을 실행하지만 나는이 같은 오류가 계속 Problem compiling gcc 4.4.0 on OpenSolaris 2009.6

./configure --prefix=/usr/gnu --with-gmp=/usr/gnu --with-mpfr=/usr/gnu --with-as=/usr/sfw/bin/gas --with-gnu-as --with-gnu-ld

  • I : 나는이 질문에 대한 대답을 시도

    1. GNU GCC의 플랫폼 별 솔루션을 시도 : GNU Solaris specific build instructions,즉

      ./configure --prefix=/usr/gnu --with-gmp=/usr/gnu --with-mpfr=/usr/gnu --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-shared

    난 아직도

    어떤 도움을 위의 두 가지 솔루션을 ./configure를 실행에도 불구하고 같은 오류를 얻고있다 주시면 감사하겠습니다! 감사합니다.

  • +0

    "자세한 내용은 config.log를 참조하십시오."- 유용한 정보가 있습니까? – schnaader

    답변

    1
    • 기존 GCC로 프로그램을 컴파일 할 수 있습니까?

      If not, you need to resolve that.

      If you can, then you need to look at that monstrous 7-argument command (the one where it says 'checking for i386-pc-solaris2.11-gcc' - why those 7 arguments?).

    • 'make bootstrap'을 (를) 실행하고 있습니까?

      If not, what happens when you do?

      If so, whereabouts in the processing is it? (Is this stage 1, or stage 2, or what?)

    • 당신은 /src/gcc-4.4.2-obj, 말에, 말에 GCC의 소스와 함께, /src/gcc-4.4.2 및 오브젝트 파일을 권장 설정을 사용하고 ?

      If not, do so. Use: cd /src/gcc-4.4.2-obj; ../gcc-4.4.2/configure ...

    • 어떤 셸을 사용하나요?

      On regular Solaris 10 (not OpenSolaris - and SPARC, not Intel), I have to set CONFIG_SHELL=/bin/ksh in the environment to make things compile (by default, it uses /bin/sh, but the /bin/sh on Solaris 10 is Bourne shell and there's a script deep down in the Java section (IIRC) that uses Bash/Korn/POSIX shell notations like $(cmd ...)). However, that normally affects a much later stage in the processing.

    는 그러나, 나는 (부트 스트랩 컴파일러로 GCC 4.4.1 사용) 문제없이 Solaris 10에서 GCC 4.4.2을 가지고있다.

    +0

    'make bootstrap'을 시도했지만 프로세스가 몇 시간 동안 계속되고 '메모리 부족'오류 2가 발생했습니다. 먼저 'make clean & make distclean'을 실행하여 다시 시작하려했는데 메시지 중 하나가 ' 재귀 변수'AR_FOR_TARGET '자체는 ..... [clean-stage3-target-libgcc] 오류 2'를 참조합니다. 어떤 아이디어? – hpy

    +0

    이제 "make bootstrap"을 실행 한 후 다른 오류 메시지가 나타납니다 : "C 컴파일러의 작동 여부 확인 ... configure : error : in /src/gcc-4.4.2/i386-pc-solaris2.11/amd64/libgcc ': configure : error : C 컴파일 된 프로그램을 실행할 수 없다. 컴파일 할려고한다면'--host'를 사용한다 .. 자세한 내용은'config.log '를 참조하시오 make [2] : *** [1] : *** [stage3-bubble] 오류 2 make [1] : 오류 1 make [2] : 디렉토리'/src/gcc-4.4.2를 남기기 ' [1] : 디렉토리'/ src/gcc-4.4.2 ' make : *** [bootstrap] Error 2 " 고마워! – hpy

    +0

    시간에 대해서는 상당히 오래되었지만'make -j4 '(컴퓨터의 코어 수에 맞는 숫자로), 1보다 큰 숫자를 사용하면 시간이 많이 걸릴 것입니다. 또한 2 ~ 4GB 정도의 공간이 필요합니다. 문제는 현대 시스템에서 발생하지만, 알고 있어야합니다 (골동품 SPARC에 공간을 만들어야합니다.) '재귀 변수'는 수수께끼입니다. –