On 10/23/2012 12:20 PM, Sunil Saggar wrote:> I was able to process further by making some code changes and replacing > export-dynamic with -bexpfull in Makefile.config. Now, i am getting > following error while linking .. > > llvm[3]: Linking Release+Asserts Loadable Module LLVMHello.soWhat exactly was the linking command? -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
AIX 7.1 & Power5 I have downloaded the llvm source and ran the following steps: 1. ./configure --enable-targets=powerpc 2. gmake Apart from it, i had to make a few changes. i. dladdr code has been commented for the time being and using the default constructor code for that method ii. In Makefile.config, 2 changes were done. +153 # Linker flags. +154 LDFLAGS+=-Wl,-G,-bexpfull +211 # What to pass as -rdynamic flag to g++ +212 #RDYNAMIC := -Wl,-export-dynamic +213 RDYNAMIC := -Wl,-brtl It helped me to proceed lot further with the compilation but i am stuck at assembler error while compiling /usr/llvm/llvm-3.1.src/lib/Target/PowerPC/PPCJITInfo.cpp file. It throws the following error. # pwd /usr/llvm/llvm-3.1.src/lib/Target/PowerPC # gmake llvm[0]: Compiling PPCJITInfo.cpp for Release+Asserts build Assembler: /tmp//ccKtnq1J.s: line 5: 1252-016 The specified opcode or pseudo-op is not valid. Use supported instructions or pseudo-ops only. gmake: *** [/usr/llvm/llvm-3.1.src/lib/Target/PowerPC/Release+Asserts/PPCJITInfo.o] Error 1 # Also, the file mentions it as a "JIT interfaces for the 32-bit PowerPC target" but i have a 64-bit machine . So, do i need this file? Am i missing something while compiling ? Please advise. Thanks -- View this message in context: http://llvm.1065342.n5.nabble.com/Error-building-llvm-on-AIX-7-1-tp50322p50361.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
I googled and found that there was a bug raised with similar issue. http://llvm.org/bugs/show_bug.cgi?id=2210 I applied the code changes mentioned in the bug and it worked. Now, i am stuck at the following error. Working overit .. llvm[2]: Compiling SmallVectorTest.cpp for Release+Asserts build llvm[2]: Compiling SparseBitVectorTest.cpp for Release+Asserts build llvm[2]: Compiling SparseSetTest.cpp for Release+Asserts build llvm[2]: Compiling StringMapTest.cpp for Release+Asserts build llvm[2]: Compiling StringRefTest.cpp for Release+Asserts build llvm[2]: Compiling TripleTest.cpp for Release+Asserts build llvm[2]: Compiling TwineTest.cpp for Release+Asserts build llvm[2]: Compiling VariadicFunctionTest.cpp for Release+Asserts build llvm[2]: Compiling ilistTest.cpp for Release+Asserts build gmake[2]: *** No rule to make target `/usr/llvm/llvm-3.1.src/unittests/lib/libLLVMSupport.a', needed by `Release+Asserts/ADTTests'. Stop. gmake[2]: Leaving directory `/usr/llvm/llvm-3.1.src/unittests/ADT' gmake[1]: *** [ADT/.makeall] Error 2 gmake[1]: Leaving directory `/usr/llvm/llvm-3.1.src/unittests' gmake: *** [all] Error 1 # cd /usr/llvm/llvm-3.1.src/unittests/ADT # gmake gmake: *** No rule to make target `/usr/llvm/llvm-3.1.src/unittests/lib/libLLVMSupport.a', needed by `Release+Asserts/ADTTests'. Stop. # any idea ? -- View this message in context: http://llvm.1065342.n5.nabble.com/Error-building-llvm-on-AIX-7-1-tp50322p50365.html Sent from the LLVM - Dev mailing list archive at Nabble.com.