[질문] toolchain 구축 문제
arm용 toolchain을 만들려고 합니다.
binutils 2.18
gcc 4.3.0
glibc 2.7
linux kernel 2.6.25.9
를 사용하고 있고요 문제점은 다음과 같습니다.
glibc를 configure할 때 특별한 오류없이 make파일이 생성이 되었습니다.
하지만 make를 실행시키면 다음과 같은 오류가 발생합니다.
--------------------------------------------------------------
glibc-build>make
.............................중략..............................
In file included from /usr/local/arm-linux/include/asm/page.h:178,
from ../ports/sysdeps/unix/sysv/linux/arm/ioperm.c:48:
/usr/local/arm-linux/include/asm/memory.h:191: error: expected '=', ',', ';', 'asm' or '__attribute' before 'unsigned'
/usr/local/arm-linux/include/asm/memory.h:196: error: expected '=', ',', ';', 'asm' or '__attribute' before 'void'
make[2]: ***[/usr/local/toolchain/glibc-build/misc/ioperm.o] 오류 1
make[2]: Leaving directory '/usr/local/toolchain/glibc-2.7/misc'
make[1]: ***[misc/subdir_lib] 오류 2
make[1]: Leving directory '/usr/local/toolchain/glibc-2.7'
make ***[all] 오류 2
---------------------------------------------------------------
구글링을 해보았으나 이 오류에 대한 명확한 답을 못 찾겠더군요...;;
혹시나 해서 configure했을 때 출력을 확인해보았습니다.
---------------------------------------------------------------
glibc-build>CC=arm-linux-gcc CXX=arm-linux-c++ ../glibc-2.7/configure arm-linux --prefix=/usr/local/arm-linux
--enable-add-ons --with-headers=/usr/local/arm-linux/include --enable-languages=c,c++
configure: WARNING: you should use --build --host --target
checking build system type... arm-unkown-linux-gnu
checking host system type... arm-unkown-linux-gnu
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on linuxthreads
linuxthreads disabled because nptl add-on is also in use
configure: running configure fragment for add-on nptl
checking add-on ports for preconfigure fragments... am33 arm hppa m68k mips
checking sysdep dir... ports/sysdeps/arm/elf ports/sysdeps/unix/sysv/linux/arm/nptl ports/sysdeps/
.................................................중략.............................................
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for arm-linux-gcc... arm-linux-gcc
checking for suffix of object files... 0
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept -g... yes
checking how to run the C preprocessor... arm-linux-gcc -E
checking whether we are using the GNU C++compiler... yes
checking whether arm-linux-c++ accepts -g... yes
..................................................중략..............................................
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for long double... no
checking size of long double... 0
...................................................중략..............................................
중간에 보니 ANSI C headers checking이 no라고 뜨더군요.
이것이 의심이 되기는 한데 이것도 해결방안을 모르겠어요..
혹시나 해결방안을 아신다면 도움을 부탁드리겠습니다... 굽신굽신...(__)


댓글 달기