gcc v3.4.6を使用して私のUbuntuに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
に変更しましたが、エラーとログは依然として彼は同じです。
誰任意のアイデア-ranlib? – aminfar