<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 7, 2010, at 12:22 AM, 吴伟 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all,<div>   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?</div></blockquote><div><br></div><div>I don't think that LLVM supports mips64 yet... Bruno?</div><div><br></div><div>-Chris</div><br><blockquote type="cite">
<div>   Thanks.</div><div><br></div><div>Here is my configure options:</div><div><div>$export TARGET=mips64el-unknown-linux-gnu</div></div><div>$../../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</div>
<div><br></div><div>------------------------------------------------------</div><div><div>echo '#endif' >> tp-bit.c</div><div>/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  \</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>  -c ../../../src/llvm-gcc-4.2-2.7.source/gcc/crtstuff.c -DCRT_BEGIN \</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>  -o crtbegin.o</div>
<div><b>Did not get a target machine! Triplet is mips64el-unknown-linux-gnu</b></div><div>make[1]: *** [crtbegin.o] Error 1</div><div>make[1]: Leaving directory `/home/ext3/loongson/build/llvm-gcc/gcc'</div><div>make: *** [all-gcc] Error 2</div>
</div><div><br clear="all"><div><br></div>-- <br>Wei Wu<br><a href="mailto:wuwei08@iscas.ac.cn" target="_blank">wuwei08@iscas.ac.cn</a><br>
<br>
</div>
_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></body></html>