Building LLVM on PPC

Please don't be alarmed by the failed compiles on llvm-ppc-darwin. They are likely not your fault.

I'm trying to get a PPC build bot setup (arxan_bellini), and so far it's dying here:

Linking CXX shared library ../../lib/libgtest.dylib
Undefined symbols:
  "vtable for llvm::raw_ostream", referenced from:
      __ZTVN4llvm11raw_ostreamE$non_lazy_ptr in gtest.cc.o
      __ZTVN4llvm11raw_ostreamE$non_lazy_ptr in gtest-death-test.cc.o
      __ZTVN4llvm11raw_ostreamE$non_lazy_ptr in gtest-port.cc.o
      __ZTVN4llvm11raw_ostreamE$non_lazy_ptr in gtest-typed-test.cc.o
  "llvm::raw_os_ostream::~raw_os_ostream()", referenced from:
      llvm::convertible_fwd_ostream::~convertible_fwd_ostream()in gtest.cc.o
      llvm::convertible_fwd_ostream::~convertible_fwd_ostream()in gtest.cc.o
      llvm::convertible_fwd_ostream::~convertible_fwd_ostream()in gtest-death-test.cc.o
      llvm::convertible_fwd_ostream::~convertible_fwd_ostream()in gtest-death-test.cc.o
      llvm::convertible_fwd_ostream::~convertible_fwd_ostream()in gtest-port.cc.o
      llvm::convertible_fwd_ostream::~convertible_fwd_ostream()in gtest-port.cc.o
      llvm::convertible_fwd_ostream::~convertible_fwd_ostream()in gtest-typed-test.cc.o
      llvm::convertible_fwd_ostream::~convertible_fwd_ostream()in gtest-typed-test.cc.o

Any thoughts (besides don't try to build on PowerPC)

I'm trying to build with gcc-4.2 to see if that helps...

Joe

Joe Abbey
Software Architect
Arxan Technologies, Inc.
1305 Cumberland Ave, Ste 215
West Lafayette, IN 47906
jabbey@arxan.com
www.arxan.com

This also seems to fail on x86_64 Darwin (in this exact way) if -DBUILD_SHARED_LIBS is true.

It would seem that’s not maintained… I’m still working through some build failures.

I had to set BUILD_SHARED_LIBS for PowerPC because the linker was failing to generate jumps > 16M

Still churning away, but there seem to be issues with LLVMJIT (required CodeGen in the CMakeLists.txt)

and also seem to be issues with llvm-objdump.

File bugs against build-scripts, cmake?

Cheers,

Joe Abbey
Software Architect
Arxan Technologies, Inc.
1305 Cumberland Ave, Ste 215
West Lafayette, IN 47906
jabbey@arxan.com