r266308 causes build failures on x86_64 Darwin
| Bugzilla Link | 27354 |
| Resolution | FIXED |
| Resolved on | Apr 14, 2016 17:47 |
| Version | unspecified |
| OS | MacOS X |
| CC | @uweigand |
Extended Description
Differential Revision: http://reviews.llvm.org/D18978
Console Output: http://lab.llvm.org:8080/green/job/lldb_build_test/17650/consoleFull#-1586822805dd1929ea-7054-4089-b7ef-4624c3781fa4
Sorry for not marking this as fixed!
Fixed in r266361. Thanks Greg!
I've CC'd Todd Fiala for advice (last person to touch lldb.xcodeproj :).
I'll also check if there's some way to remove the cmake cache on the builder -- perhaps that's the issue.
It seems none of the newly added files are built on that system.
I've added those file to the appropriate CMakeLists.txt, which gets them built when building via cmake.
It seems from the logs that on Darwin the build is done using XCode instead of cmake. Is that right?
I don't know what needs to be done to add the new files there. I see there is a directory lldb.xcodeproj which contains in project.pbxproj something that looks like a list of files to build. But I don't know how to update that file, it looks autogenerated from some tool.
Any pointers on how the XCode build process works?
The relevant output from the log seems to be:
ld: warning: ignoring file /Users/buildslave/jenkins/sharedspace/lldb@2/lldb/llvm-build/Release+Asserts/x86_64/lib/libclang_rt.cc_kext_i386_osx.a, file was built for archive which is not the architecture being linked (x86_64): /Users/buildslave/jenkins/sharedspace/lldb@2/lldb/llvm-build/Release+Asserts/x86_64/lib/libclang_rt.cc_kext_i386_osx.a Undefined symbols for architecture x86_64: "ABISysV_s390x::Initialize()", referenced from: lldb_private::SystemInitializerFull::Initialize() in SystemInitializerFull.o "ABISysV_s390x::Terminate()", referenced from: lldb_private::SystemInitializerFull::Terminate() in SystemInitializerFull.o "RegisterContextLinux_s390x::RegisterContextLinux_s390x(lldb_private::ArchSpec const&)", referenced from: ThreadElfCore::CreateRegisterContextForFrame(lldb_private::StackFrame*) in liblldb-core.a(ThreadElfCore.o) "RegisterContextCorePOSIX_s390x::RegisterContextCorePOSIX_s390x(lldb_private::Thread&, lldb_private::RegisterInfoInterface*, lldb_private::DataExtractor const&, lldb_private::DataExtractor const&)", referenced from: ThreadElfCore::CreateRegisterContextForFrame(lldb_private::StackFrame*) in liblldb-core.a(ThreadElfCore.o) ld: symbol(s) not found for architecture x86_64