gcc-4.3.2 설치 에러입니다.
글쓴이: kmc963 / 작성시간: 월, 2009/05/25 - 3:13오후
[root@newbrain gcc-4.3.2]# make
블라~블라~
블라~블라~
블라~블라~
블라~블라~
Checking multilib configuration for libgcc...
make[2]: Entering directory `/home/kmc963/toolchain/gcc-4.3.2/arm-linux/libgcc'
Makefile:144: ../.././gcc/libgcc.mvars: 그런 파일이나 디렉토리가 없습니다
make[2]: *** 타겟 `../.././gcc/libgcc.mvars'를 만들 규칙이 없음. 멈춤.
make[2]: Leaving directory `/home/kmc963/toolchain/gcc-4.3.2/arm-linux/libgcc'
make[1]: *** [all-target-libgcc] 오류 2
make[1]: Leaving directory `/home/kmc963/toolchain/gcc-4.3.2'
make: *** [all] 오류 2
[root@newbrain gcc-4.3.2]#
이렇게 에러가 나는데 어떻게 해결해야 하나요?
Forums:
srcdir != objdir
자세한 것은 올리신 내용만으로 알 수 없지만, 왜 gcc-4.3.2 디렉토리에서 make를 하시나요? 소스 디렉토리와 다른 디렉토리에서 빌드하셔야 합니다.
GCC 문서에서는 srcdir과 objdir이라고 하는데, 소스 디렉토리에서 그대로 make를 하는 빌드는 지원되지 않는 빌드 방법입니다. (대개는 잘 되지만 크로스 컴파일 등에서는 자주 깨집니다.)
binutils-2.19 # cd
binutils-2.19
# cd binutils-2.19
# ./configure --target=arm-linux --prefix=/usr/local/arm
# make
# make install
후에
gcc-4.3.2
# cd gcc-4.3.2
# ./configure --target=arm-linux --prefix=/usr/local/arm
# make
이렇게 한것인데 에러가 난 것입니다...
문서를 보세요
그러니까 그렇게 하지 마시구요, GCC 문서를 보고 하세요.
# cd gcc-4.3.2
# mkdir build
# cd build
# ../configure ...
# make
이렇게 하셔야 됩니다. gcc-4.3.2 안에서 make 하시면 안 됩니다.
댓글 달기