[LLVMdev] How can I using the right triple?

Liu proljc at gmail.com
Sun Sep 25 07:59:29 PDT 2011


Hi all

When I use
user at ubuntu:/home$ clang -cc1 -triple mips64el-unknown-linux-gnu
-ccc-clang-archs mips64el -mabi=n64 a.c

I get a error:
error: unknown argument: '-ccc-clang-archs'
error: unknown argument: '-mabi=n64'

So I use
user at ubuntu:/home$ clang -ccc-host-triple mips64el-unknown-linux-gnu
-mabi=n64 a.c

I get s error like:
clang: warning: unknown platform, assuming -mfloat-abi=soft
In file included from a.c:1:
In file included from /usr/include/stdio.h:28:
In file included from /usr/include/features.h:388:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
# include <gnu/stubs-32.h>

How can I use the right triple?
Thanks.

--Liu



More information about the llvm-dev mailing list