[LLVMdev] llvm-gcc and mips

HyperQuantum hyperquantum at gmail.com
Thu Feb 28 04:03:16 PST 2008


On Wed, Feb 27, 2008 at 7:32 PM, Mike Stump <mrs at apple.com> wrote:
> On Feb 27, 2008, at 8:38 AM, HyperQuantum wrote:
>  > I tried to cross-compile llvm-gcc for mips, but it crashes

> > But now I'm stuck. I don't need a full cross-compiler, just generating
>  > LLVM code is sufficient for me.
>
>  make -k install will install a mips cross compiler for you, I believe.
>
>  If you don't want to install it, you can run it as cd gcc && ./xgcc -
>  B./ t.c.

Thanks for your help. I tried your first suggestion, but it doesn't work:

/home/kevin/Documents/School/Thesis/work/install/llvmgcc-mips/bin/llvm-gcc
-nostdlib -nostdinc
-I/home/kevin/Documents/School/Thesis/work/install/psptoolchain/psp/include
-I/home/kevin/Documents/School/Thesis/work/install/psptoolchain/lib/gcc/psp/4.1.0/include
-c -emit-llvm -Wall \
                -D_PSP_FW_VERSION=150 -DPSP=1 -D__psp__=1 -D_PSP=1
-I/home/kevin/Documents/School/Thesis/work/install/psptoolchain/psp/sdk/include
 -O1 main.c -o main.o
llvm-gcc: error trying to exec 'cc1': execvp: No such file or directory

When I ran "make -k install" it looked like every invocation of xgcc
died with an abort (after throwing std::bad_alloc). Something serious
happening here?


Regards,
Kevin André




More information about the llvm-dev mailing list