[LLVMdev] Problems Cross Compiling for x86 and ia64

Michael McCracken michael.mccracken at gmail.com
Thu Sep 15 20:38:49 PDT 2005

Hi, I'm having some problems cross-compiling from ppc (OS X) to x86
object files and to ia64, at all. I'd appreciate some advice as to
whether or not I'm actually supposed to be able to do this, and what's
wrong if so.

Here's how I configured it:

../llvm-darcslocal/llvm/configure --with-llvmgccdir=$LLVMGCCDIR

The results work fine when building for ppc.

Here's what I tried:

LLVM/cfe-src/install/bin/gcc -o loopUnroll loopUnroll.c 
LLVM/obj-llvm-darcslocal/Debug/bin/llvmc -O3 -o loopUnroll-llvm loopUnroll.bc
llvm-ld: warning: Cannot find library 'c'

LLVM/obj-llvm-darcslocal/Debug/bin/llc -march=x86 -f -filetype=obj -o
loopUnroll-x86 loopUnroll.bc
failed assertion `0 && "unimp"'
^Cmake: *** [llvm-x86] Abort trap (core dumped)

-- note that without -filetype=obj I get no problems and an apparently
fine x86 asm file.

LLVM/obj-llvm-darcslocal/Debug/bin//llc -march=ia64 -stats -f -o
loopUnroll-ia64 loopUnroll.bc
make: *** [llvm-ia64] Bus error (core dumped)

-- note that this has no -filetype option at all.

Any hints?


Michael McCracken
UCSD CSE PhD Candidate
research: http://www.cse.ucsd.edu/~mmccrack/
misc: http://michael-mccracken.net/blog/

More information about the llvm-dev mailing list