php-5.2.17 mips 컴파일 시 오류
php-5.2.17 을 다운 받아 mips로 컴파일 하기 위해 configure 옵션을 보니 CC와 CFLAGS 옵션이 없더 군요. 그래서 아래와 같이 configure 설정 하고
./configure --build=i686-pc-linux-gnu --host=mipsel-pc-linux-gnu --prefix=
만들어진 Makefile을 open 하여
CC = /opt/hardhat/devkit/mips/fp_le/bin/mips_fp_le-gcc
CFLAGS 를 변경 한 후 make 하였습니다. 그러니 아래 와 같은 에러 가 발생 하더군요.
cc1: warning: include location "/usr/include" is unsafe for cross-compilation
cc1: warning: include location "/usr/include/libxml2" is unsafe for cross-compilation
/usr/include/bits/mathinline.h: In function `__atan2l':
/usr/include/bits/mathinline.h:445: unknown register name `st(1)' in `asm'
make: *** [ext/iconv/iconv.lo] Error 1
mips용 헤더 파일이 따로 존재 하지도 않고요. 왜 st(1) 이라는 레지스터가 무엇인지 모르겠습니다.
Makefile에서 다른 무엇인가를 수정 해 줘야 하는 것 같은데 어디를 수정 해야 하는 지 모르겠네요..
추가로 php와 busybox-1.00의 httpd와 연동 하려고 합니다.
php 설치시 옵션이 --with-thttpd=/usr/src/busybox-1.00, --with-thttpd=/usr/src/busybox-1.00 으로 설정 해도 에러가 나더군요.
어떤 옵션을 사용해야 하는 지요?
감사합니다.
댓글 달기