member is not an object, can't build Julia. #1214

Closed
11Kilobytes opened this Issue Aug 25, 2012 · 10 comments

Projects

None yet

4 participants

@11Kilobytes

When I build the latest julia revision, this happens:

Linking Release Shared Library libLLVM-3.1.so
/home/kabelo/julia/deps/llvm-3.1/Release/lib/libLLVMX86CodeGen.a: member /home/kabelo/julia/deps/llvm-3.1/Release/lib/libLLVMX86CodeGen.a(X86ISelLowering.o) in archive is not an object
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [/home/kabelo/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
make: *** [release] Error 2

@ViralBShah
Member

Was LLVM building for you earlier?

@11Kilobytes

Yes!

@11Kilobytes

Excuse me, I made the silly mistake of not installing GNU m4.

@11Kilobytes 11Kilobytes reopened this Aug 25, 2012
@11Kilobytes

Nope, same thing. I thought it was building.

@JeffBezanson
Member

Is this because of the switch to building with clang?

@ViralBShah
Member

What OS / compiler are you using? We only use clang as the default on OS X 10.7 and later.

@11Kilobytes

Ok, when I build with gcc, I get the same error:

/home/kabelo/julia/deps/llvm-3.1/Release/lib/libLLVMX86CodeGen.a: member /home/kabelo/julia/deps/llvm-3.1/Release/lib/libLLVMX86CodeGen.a(X86ISelLowering.o) in archive is not an object
collect2: ld returned 1 exit status
make[4]: *** [/home/kabelo/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
make: *** [release] Error 2

@11Kilobytes

I am using Ubuntu 12.04 with all the latest updates.

@StefanKarpinski
Member

Have you tried deleting the llvm-3.1 directory and building again?

@11Kilobytes

Thank you stefan, I was able to build Julia after deleting the llvm-3.1 directory. Time to start hacking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment