Closed quesada closed 11 years ago
The output is truncated and hard to read here. Could you please post the log to a pastebin site (pastebin, hpaste, Sprunge, etc.) and place a link here?
It would be great if you could narrow it down to the relevant part of the output where the actual error occurs. Typically this is near the end.
Snippet copied from email:
llvm[5]: Compiling Binary.cpp for Release build
llvm[5]: Compiling COFFObjectFile.cpp for Release build
llvm[5]: Compiling ELFObjectFile.cpp for Release build
llvm[5]: Compiling Error.cpp for Release build
llvm[5]: Compiling MachOObjectFile.cpp for Release build
llvm[5]: Compiling Object.cpp for Release build
llvm[5]: Compiling ObjectFile.cpp for Release build
llvm[5]: Building Release Archive Library libLLVMObject.a
llvm[4]: Linking Release Shared Library libLLVM-3.1.so
/home/quesada/tmp/julia/deps/llvm-3.1/Release/lib/libLLVMInstCombine.a: member /home/quesada/tmp/julia/deps/llvm-3.1/Release/lib/libLLVMInstCombine.a(InstCombineAddSub.o) in archive is not an object
collect2: error: ld returned 1 exit status
make[4]: *** [/home/quesada/tmp/julia/deps/llvm-3.1/Release/lib/libLLVM-3.1.so] Error 1
make[3]: *** [all] Error 1
make[2]: *** [llvm-3.1/Release/lib/libLLVM-3.1.so] Error 2
make[1]: *** [julia-release] Error 2
Seems like something for the upstream LLVM?
What OS/release?
Oh, I see this is Ubuntu 12.10.
Yes. Is Ubuntu 12.10 unsupported?
No. This seems to be a problem with building LLVM on ubuntu, and perhaps needs to be reported on the llvm mailing list. If ubuntu 12.10 has llvm 3.1, you could try building with make USE_SYSTEM_LLVM=1
.
Also, we will soon be moving to llvm 3.2, and perhaps that will work.
Hmm, with that I get a bunch of llvm-config: Command not found
http://josequesada.com @quesada
On Tue, Jan 1, 2013 at 3:25 PM, Viral B. Shah notifications@github.comwrote:
No. This seems to be a problem with building LLVM on ubuntu, and perhaps needs to be reported on the llvm mailing list. If ubuntu 12.10 has llvm 3.1, you could try building with make USE_SYSTEM_LLVM=1.
Also, we will soon be moving to llvm 3.2, and perhaps that will work.
— Reply to this email directly or view it on GitHubhttps://github.com/JuliaLang/julia/issues/1796#issuecomment-11789663.
The llvm-config command not found errors are typically because your llvm-config command is named slightly differently. Open up a terminal, type llvm-config<TAB>
and use the tab completion to figure out what your llvm-config is called. For instance, on my 12.10 box, mine is called llvm-config-3.1
. To use this instead of just plain old llvm-config
, you have to use the make incantation:
make USE_SYSTEM_LLVM=1 LLVM_CONFIG=llvm-config-3.1
Could you post the dependecies (packages)? I don't have any llvm-config.
http://josequesada.com @quesada
On Wed, Jan 2, 2013 at 7:41 AM, Elliot Saba notifications@github.comwrote:
make USE_SYSTEM_LLVM=1 LLVM_CONFIG=llvm-config-3.1
I believe apt-get install llvm-3.1
should do the trick. If it is not available, then the version of llvm available is perhaps too old, and you have to build from source.
Can't reproduce, so closing. @quesada, feel free to reopen if you're still having problems.
Here's my log: