This is an archive of the discontinued LLVM Phabricator instance.

Link liblldb.so with LLVMObjCARCOpts.a
ClosedPublic

Authored by krytarowski on Sep 9 2015, 6:41 PM.

Details

Summary

Problems reported on NetBSD:

llvm[4]: Linking Debug+Asserts executable lldb
/tmp/build-llvm/Debug+Asserts/lib/liblldb.so: undefined reference to `llvm::createObjCARCExpandPass()'
/tmp/build-llvm/Debug+Asserts/lib/liblldb.so: undefined reference to `llvm::createObjCARCOptPass()'
/tmp/build-llvm/Debug+Asserts/lib/liblldb.so: undefined reference to `llvm::createObjCARCAPElimPass()'
/tmp/build-llvm/Debug+Asserts/lib/liblldb.so: undefined reference to `llvm::createObjCARCContractPass()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
 /tmp/llvm/Makefile.rules:1434: recipe for target '/tmp/build-llvm/Debug+Asserts/bin/lldb' failed

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski updated this revision to Diff 34400.Sep 9 2015, 6:41 PM
krytarowski retitled this revision from to Link liblldb.so with LLVMObjCARCOpts.a.
krytarowski updated this object.
krytarowski added a reviewer: joerg.
krytarowski set the repository for this revision to rL LLVM.
krytarowski added a subscriber: lldb-commits.
sas accepted this revision.Sep 10 2015, 10:03 AM
sas added a reviewer: sas.
sas added a subscriber: sas.

I suppose this is not a NetBSD issue and the Makefiles just got out of sync with the CMake build system. Correct?

This revision is now accepted and ready to land.Sep 10 2015, 10:03 AM
In D12749#243410, @sas wrote:

I suppose this is not a NetBSD issue and the Makefiles just got out of sync with the CMake build system. Correct?

It seems so.

brucem added a subscriber: brucem.Sep 10 2015, 5:34 PM

Yes, Ted Woodward and others have mentioned having this issue on the buildbots.

This revision was automatically updated to reflect the committed changes.

I needed this fix in place to test some other build system changes, so I landed it. Thanks!