When compiling with -fparallel (which is to be coupled with -O2, -O3 or -Ofast), I am running across the following error:
[armeabi-v7a] SharedLibrary : libbzip2.so
jni/blocksort.c:1068: error: undefined reference to 'polly_translib_static_loop_start'
jni/blocksort.c:897: error: undefined reference to 'polly_translib_static_loop_start'
jni/blocksort.c:243: error: undefined reference to 'polly_translib_static_loop_start'
jni/blocksort.c:297: error: undefined reference to 'polly_translib_static_loop_start'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make.exe: *** [obj/local/armeabi-v7a/libbzip2.so] Error 1
Please help me out here. I believe that there is an error in reference, which might have something to do with these files:
libclang_rt.translib32.a
libclang_rt.translib64.a
try linking with:
toolchainpath := llvm-Snapdragon_LLVM_for_Android_3.6/prebuilt/linux-x86_64/lib/clang/3.6.0/lib/linux-propri_rt/
-L $(toolchainpath) -l clang_rt.translib32
Can you please post the entire command line so that I can reproduce the issue?