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
Hello> How can I use the right triple? > Thanks.You're using the "right" triplet. However: 1. Your system is unknown to driver (as shown in the warning) 2. You need to "teach" driver to look for paths to the includes for your platform -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
On Mon, Sep 26, 2011 at 1:23 AM, Anton Korobeynikov <anton at korobeynikov.info> wrote:> Hello > >> How can I use the right triple? >> Thanks. > You're using the "right" triplet. However: > 1. Your system is unknown to driver (as shown in the warning)I'm looking into it.> 2. You need to "teach" driver to look for paths to the includes for > your platformAfter added -I, I get more errors...> > -- > With best regards, Anton Korobeynikov > Faculty of Mathematics and Mechanics, Saint Petersburg State University >Thank you. --Liu