<div dir="ltr">
<div text="#000000" bgcolor="#FFFFFF">
Hello,<br>
I'm using clang on x86 cross build for mips, here is my main
configure parameters<br>
llvm/configure \<br>
--prefix=/usr \<br>
--target=mipsel-unknown-linux-gnu \<br>
--enable-targets=mips \<br>
--enable-optimized \<br>
--enable-shared \<br>
--disable-assertions<br>
I want to build code for <b>mips3</b> with <b>o32</b> abi, but
fails:<br>
<blockquote type="cite">mipsel-unknown-linux-gnu-clang++ test.cpp
-mips3<br>
/tmp/test-a51985.s: Assembler messages:<br>
/tmp/test-a51985.s:11: Warning: `fp=64' used with a 32-bit ABI<br>
/usr/local/bin/mipsel-unknown-linux-gnu-ld: Warning: a.out uses
-mdouble-float (set by
/opt/toolchain_clang/host/usr/mipsel-unknown-linux-gnu/sysroot/usr/lib/../lib/crt1.o),
/tmp/test-d48db1.o uses -mgp32 -mfp64</blockquote>
How can I change the <b>fp=64</b> to <b>fp=32</b>? Have tried
pass -mfp32 to mipsel-unknown-linux-gnu-clang++ but with no luck.<br>
Though this is a warning, but it fails to compile Qt.<br>
Yes I known it works if uses <b>-mips64</b> etc, but I need
mips3.<br>
<br>
Please let me know if I'm post to the wrong place, I'm new here.<br>
Thank you.<br>
<div>-- <br>
<i>Regards</i></div>
</div>
</div>