gcc v3.4.6을 사용하여 내 우분투에 glibc 2.3.2를 설치하려고하는데 문제가 있습니다. Glibc는 mips 용으로 빌드해야합니다. 나는 32 비트와 64 비트 기계 모두에서 시도했지만 여전히 같은 문제가있다. configure
에 대한 입력 매개 변수는 다음과 같습니다glibc 설치 : 오브젝트 파일의 접미어를 계산할 수 없습니다.
BUILD="i686-pc-linux-gnu"
HOST="i686-pc-linux-gnu"
TARGET=mipseb-linux
export CFLAGS="-O2 -mips2 -mabi=32 -fno-PIC -mno-abicalls"
export CZFLAGS="-mips2 -mabi=32 -fno-PIC -mno-abicalls"
./configure --build=${BUILD} --host=${HOST} --target=${TARGET} ....
오류는 다음과 같습니다
...
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
과 config.log :
내가 먼저 문제를 생각...
configure:2941: $? = 1
configure:2945: checking for suffix of object files
configure:2967: gcc-3.4 -c -O2 -mips2 -mabi=32 -fno-PIC -mno-abicalls conftest.c >&5
cc1: error: invalid option `ips2'
cc1: error: invalid option `abi=32'
cc1: error: invalid option `no-abicalls'
configure:2970: $? = 1
configure: failed program was:
| #line 2950 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define DO_STATIC_NSS 1
| #define USE_REGPARMS 1
| /* end confdefs.h. */
|
| int
| main()
| {
|
| ;
| return 0;
| }
configure:2984: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
내가 BUILD
을 설정하지 않은 것입니다 , HOST
, TARGET
이 올바르게 입력되었으므로 HOST
을 mipseb-linux
으로 변경했지만 오류 및 로그는 여전히 t입니다. 그는 동일합니다.
사람이 어떤 생각 -ranlib} -ar
대한 ranlib = $ {TARGET}? – aminfar