[LLVMdev] llvm-gcc : Did not get a target machine! Triplet is mips64el-unknown-linux-gnu

吴伟 wuwei08 at iscas.ac.cn
Wed Jul 7 00:22:35 PDT 2010


Hi all,
   I met this error(title) when i was trying to compile llvm-gcc-4.2-2.7 on
loongson2f,a mips compatible platform.I also failed to build a
 cross-compiler and the error message was the same . Is that means llvm-gcc
cannot support mips back-end now?
   Thanks.

Here is my configure options:
$export TARGET=mips64el-unknown-linux-gnu
$../../src/llvm-gcc-4.2-2.7.source/configure --target=$TARGET
--prefix=$PREFIX --without-headers --disable-shared --disable-nls
--enable-checking --with-gnu-as --with-gnu-id --enable-languages=c,c++
--enable-llvm=$(pwd)/../llvm-2.7 && make all-gcc

------------------------------------------------------
echo '#endif' >> tp-bit.c
/home/ext3/loongson/build/llvm-gcc/./gcc/xgcc
-B/home/ext3/loongson/build/llvm-gcc/./gcc/
-B/home/ext3/loongson/install/mips64el-unknown-linux-gnu/bin/
-B/home/ext3/loongson/install/mips64el-unknown-linux-gnu/lib/ -isystem
/home/ext3/loongson/install/mips64el-unknown-linux-gnu/include -isystem
/home/ext3/loongson/install/mips64el-unknown-linux-gnu/sys-include -O2 -O2
-g -O2  -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -I. -I. -I../../../src/llvm-gcc-4.2-2.7.source/gcc
-I../../../src/llvm-gcc-4.2-2.7.source/gcc/.
-I../../../src/llvm-gcc-4.2-2.7.source/gcc/../include
-I../../../src/llvm-gcc-4.2-2.7.source/gcc/../libcpp/include
 -I../../../src/llvm-gcc-4.2-2.7.source/gcc/../libdecnumber
-I../libdecnumber -I/home/ext3/loongson/build/llvm-gcc/../llvm-2.7/include
-I/home/ext3/loongson/src/llvm-2.7/include  -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-toplevel-reorder -Dinhibit_libc  \
  -c ../../../src/llvm-gcc-4.2-2.7.source/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
*Did not get a target machine! Triplet is mips64el-unknown-linux-gnu*
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/home/ext3/loongson/build/llvm-gcc/gcc'
make: *** [all-gcc] Error 2


-- 
Wei Wu
wuwei08 at iscas.ac.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100707/8e1104c8/attachment.html>


More information about the llvm-dev mailing list