[LLVMdev] Problems Cross Compiling for x86 and ia64
michael.mccracken at gmail.com
Thu Sep 15 22:38:49 CDT 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:
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
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
make: *** [llvm-ia64] Bus error (core dumped)
-- note that this has no -filetype option at all.
UCSD CSE PhD Candidate
More information about the LLVMdev