On 10/25/2012 4:40 AM, sunilsaggar wrote:> Any idea how to fix this makefile issue .. i am stuck here .. It seems i am > missing some config paramter here .. If i copy the library to the > respective location, the compilation proceeds further .. but there are > multiple libraries which needs to be copied .. > > Please advise.Seems like you're building it in the source tree. Try building it from a separate directory. -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Pardon my ignorance but i didn't understand what it means by building it from separate directory .. # pwd /usr/llvm/llvm-3.1.src ===> entire source code is extracted here .. #gmake ... gmake[2]: Entering directory `/usr/llvm/llvm-3.1.src/tools/llvm-config' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/usr/llvm/llvm-3.1.src/tools/llvm-config' gmake[2]: Entering directory `/usr/llvm/llvm-3.1.src/tools/opt' gmake[2]: *** No rule to make target `/usr/llvm/llvm-3.1.src/tools/lib/libLLVMipo.a', needed by `/usr/llvm/llvm-3.1.src/Release+Asserts/bin/opt'. Stop. gmake[2]: Leaving directory `/usr/llvm/llvm-3.1.src/tools/opt' gmake[1]: *** [opt/.makeall] Error 2 gmake[1]: Leaving directory `/usr/llvm/llvm-3.1.src/tools' gmake: *** [all] Error 1 # cd /usr/llvm/llvm-3.1.src/tools/opt <<<moving to opt directory >>> # gmake gmake: *** No rule to make target `/usr/llvm/llvm-3.1.src/tools/lib/libLLVMipo.a', needed by `/usr/llvm/llvm-3.1.src/Release+Asserts/bin/opt'. Stop. # How should i resolve this ? Thanks in advance .. -Sunil -- View this message in context: http://llvm.1065342.n5.nabble.com/Error-building-llvm-on-AIX-7-1-tp50322p50415.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
On 10/25/2012 2:58 PM, sunilsaggar wrote:> Pardon my ignorance but i didn't understand what it means by building it from > separate directory .. > > # pwd > /usr/llvm/llvm-3.1.src ===> entire source code is extracted here .. > #gmakeI meant this: $ mkdir /path/to/build-dir $ cd /path/to/build-dir $ /path/to/sources/configure -foo -bar -blah -etc $ make all $ make install In other words, make the build process put output files somewhere outside of the source tree. -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation