<div dir="ltr">Take a look at #ifdef __APPLE__ around ObjectFileMachO in SystemInitializerCommon.cpp.<div><br></div><div>I tried removing that, but that led to a bunch of undefined symbol errors (because of other stuff that was ifdefed out). It could be this is just a matter of removing enough ifdefs, but I haven't tried following through on that (so I don't know whether we'll run into some code including system headers or such...).</div></div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, 14 Mar 2018 at 17:20, Greg Clayton via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org">lldb-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What part is ifdef'ed? Mach core files should be available on any platform?<br>
<br>
> On Mar 14, 2018, at 7:16 AM, Jonas Devlieghere via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a>> wrote:<br>
><br>
> Author: jdevlieghere<br>
> Date: Wed Mar 14 07:16:23 2018<br>
> New Revision: 327512<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=327512&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=327512&view=rev</a><br>
> Log:<br>
> [test] Disable TestMachCore everywhere except on Darwin<br>
><br>
> Apparently the parser is wrapped inside ifdef's so the logic isn't<br>
> available on non-Darwin platforms.<br>
><br>
> Should fix build bot failure:<br>
> <a href="http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/20463" rel="noreferrer" target="_blank">http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/20463</a><br>
><br>
> Modified:<br>
> lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/mach-core/TestMachCore.py<br>
><br>
> Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/mach-core/TestMachCore.py<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/mach-core/TestMachCore.py?rev=327512&r1=327511&r2=327512&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/mach-core/TestMachCore.py?rev=327512&r1=327511&r2=327512&view=diff</a><br>
> ==============================================================================<br>
> --- lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/mach-core/TestMachCore.py (original)<br>
> +++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/mach-core/TestMachCore.py Wed Mar 14 07:16:23 2018<br>
> @@ -26,6 +26,7 @@ class MachCoreTestCase(TestBase):<br>
> lldb.DBG.SetSelectedPlatform(self._initial_platform)<br>
> super(MachCoreTestCase, self).tearDown()<br>
><br>
> + @skipUnlessDarwin<br>
> def test_selected_thread(self):<br>
> """Test that the right thread is selected after a core is loaded."""<br>
> # Create core form YAML.<br>
><br>
><br>
> _______________________________________________<br>
> lldb-commits mailing list<br>
> <a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br>
<br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br>
</blockquote></div>