[LLVMdev] Running cross compiled binaries for ARM on gem5
silkyar at umich.edu
Sun Mar 17 15:40:41 PDT 2013
Thanks Renato and Giang.
I was able to run a simple HelloWorld program on gem5 (in SE mode) by using
-target -arm-none-linux-gnueabi as the option during cross compilation.
I am trying to cross compile some Computer Vision algorithms, which use
OpenCV libraries, and I tried using the same command line options -
clang++ *-emit-llvm -static -c -Wall -g -O0 -mfpu=vfp -mfloat-abi=soft
-march=armv7-a -target arm-none-linux-gnueabi* -DCLOCK_GETTIME_TIMING
However, this errors out saying
error: cannot compile this atomic library call yet
note: expanded from macro 'CV_XADD'
#define CV_XADD(addr, delta)
__c11_atomic_fetch_add((_Atomic(int)*)(addr), (delta), __ATOMIC_SEQ_CST)
Could someone please suggest what I am missing here, or what the error
Thank you all.
View this message in context: http://llvm.1065342.n5.nabble.com/Running-cross-compiled-binaries-for-ARM-on-gem5-tp55767p56023.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
More information about the llvm-dev