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é
On Feb 28, 2008, at 4:03 AM, HyperQuantum wrote:> /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 > directoryDo: find . -name cc1 -print to find cc1 in the build directory. Then, copy this file by hand to to llvm-gcc -print-prog-name=cc1.
On Thu, Feb 28, 2008 at 7:26 PM, Mike Stump <mrs at apple.com> wrote:> On Feb 28, 2008, at 4:03 AM, HyperQuantum wrote:> > llvm-gcc: error trying to exec 'cc1': execvp: No such file or > > directory > > Do: > > find . -name cc1 -print > > to find cc1 in the build directory. Then, copy this file by hand to > to llvm-gcc -print-prog-name=cc1.The destination was unclear, it just printed "cc1" without a directory. But I found where to put it by looking where cc1 is located for the other GCCs on my PC. At least I got llvm-gcc running again. Thanks.