[Lldb-commits] [lldb] r154108 - /lldb/trunk/source/lldb.cpp

Charles Davis cdavis at mymail.mines.edu
Thu Apr 5 17:25:21 PDT 2012


On Apr 5, 2012, at 6:08 PM, Bill Wendling wrote:

> Unfortunately, it doesn't look like it :-(
> 
> Undefined symbols for architecture x86_64:
>  "DynamicLoaderPOSIXDYLD::Initialize()", referenced from:
>      lldb_private::Initialize() in liblldbInitAndLog.a(lldb.o)
>  "DynamicLoaderPOSIXDYLD::Terminate()", referenced from:
>      lldb_private::Terminate() in liblldbInitAndLog.a(lldb.o)
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
You also need to add this library to lib/Makefile. (This is the makefile that is responsible for linking liblldb.dylib.)

Chip

> 
> 
> -bw
> 
> On Apr 5, 2012, at 10:43 AM, Greg Clayton <gclayton at apple.com> wrote:
> 
>> Bill, let me know if this fixes your makefile build issue:
>> 
>> % svn commit
>> Sending        source/Plugins/Makefile
>> Transmitting file data .
>> Committed revision 154109.
>> 
>> 
>> On Apr 5, 2012, at 10:38 AM, Bill Wendling wrote:
>> 
>>> Author: void
>>> Date: Thu Apr  5 12:38:07 2012
>>> New Revision: 154108
>>> 
>>> URL: http://llvm.org/viewvc/llvm-project?rev=154108&view=rev
>>> Log:
>>> Revert r154086. It may be needed for Darwin. But the symbols are still missing in the dylib.
>>> 
>>> Modified:
>>>  lldb/trunk/source/lldb.cpp
>>> 
>>> Modified: lldb/trunk/source/lldb.cpp
>>> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/lldb.cpp?rev=154108&r1=154107&r2=154108&view=diff
>>> ==============================================================================
>>> --- lldb/trunk/source/lldb.cpp (original)
>>> +++ lldb/trunk/source/lldb.cpp Thu Apr  5 12:38:07 2012
>>> @@ -101,6 +101,7 @@
>>>       UnwindAssembly_x86::Initialize();
>>>       EmulateInstructionARM::Initialize ();
>>>       ObjectFilePECOFF::Initialize ();
>>> +        DynamicLoaderPOSIXDYLD::Initialize ();
>>>       PlatformFreeBSD::Initialize();
>>>       PlatformLinux::Initialize();
>>> #if defined (__APPLE__)
>>> @@ -123,8 +124,6 @@
>>>       PlatformRemoteiOS::Initialize();
>>>       PlatformMacOSX::Initialize();
>>>       PlatformiOSSimulator::Initialize();
>>> -#else
>>> -        DynamicLoaderPOSIXDYLD::Initialize ();
>>> #endif
>>> #if defined (__linux__)
>>>       //----------------------------------------------------------------------
>>> @@ -178,6 +177,7 @@
>>>   UnwindAssemblyInstEmulation::Terminate();
>>>   EmulateInstructionARM::Terminate ();
>>>   ObjectFilePECOFF::Terminate ();
>>> +    DynamicLoaderPOSIXDYLD::Terminate ();
>>>   PlatformFreeBSD::Terminate();
>>>   PlatformLinux::Terminate();
>>> #if defined (__APPLE__)
>>> @@ -197,8 +197,6 @@
>>>   PlatformMacOSX::Terminate();
>>>   PlatformRemoteiOS::Terminate();
>>>   PlatformiOSSimulator::Terminate();
>>> -#else
>>> -    DynamicLoaderPOSIXDYLD::Terminate ();
>>> #endif
>>> 
>>>   Debugger::SettingsTerminate ();
>>> 
>>> 
>>> _______________________________________________
>>> lldb-commits mailing list
>>> lldb-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
>> 
> 
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits





More information about the lldb-commits mailing list