[lldb-dev] [patch] FreeBSD build fix

Enrico Granata egranata at apple.com
Tue Mar 20 18:12:05 PDT 2012


As far as the Python modules are concerned, on OSX, when building LLDB we actually copy gnu_libstdcpp, CFString (and several other formatter modules) into Resources/Python
I never worked on the Makefile building process, but I am guessing something should be changed in there so that everything that is copied in place on OSX gets also copied on FreeBSD.

Enrico Granata
✉ egranata@.com
✆ (four oh eight) 862-7683


On Mar 20, 2012, at 6:06 PM, Pawel Worach wrote:

> They seem to end up in Release+Asserts/bin so if I run lldb from there I get the same result but with different missing modules:
> 
> tcsh% ./lldb /bin/sh
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
> ImportError: No module named gnu_libstdcpp
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
> ImportError: No module named CFString
> Current executable set to '/bin/sh' (x86_64).
> tcsh% 
> 
> CFString is in examples/summaries/cocoa/ which looks like a strange place for a module that is supposed to be loaded by default. A couple of weeks back I think I at least got to the (lldb) prompt event with the python import errors.. so it is likely something else that needs to catch up on the FreeBSD plugin side but I can't really figure out what.
> 
> -- 
> Pawel
> 
> On Mar 21, 2012, at 01:57, Enrico Granata wrote:
> 
>> At a glance, I would say that LLDB is unable to find the embedded_interpreter Python module and thus cannot finish initializing the ScriptInterpreter
>> You may want to figure out how Python resources are laid out on FreeBSD (on OSX, they are part of the framework) and if anything needs to be changed in the code that looks for them upon startup.
>> 
>> Enrico Granata
>> ✉ egranata@.com
>> ✆ (four oh eight) 862-7683
>> 
>> On Mar 20, 2012, at 5:52 PM, Pawel Worach wrote:
>> 
>>> Index: source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp
>>> ===================================================================
>>> --- source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp	(revision 153128)
>>> +++ source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp	(working copy)
>>> @@ -73,7 +73,7 @@ PlatformFreeBSD::Initialize ()
>>>     if (!g_initialized)
>>>     {
>>> #if defined (__FreeBSD__)
>>> -        PlatformSP default_platform_sp (CreateInstance());
>>> +        PlatformSP default_platform_sp (new PlatformFreeBSD(true));
>>>         default_platform_sp->SetSystemArchitecture (Host::GetArchitecture());
>>>         Platform::SetDefaultPlatform (default_platform_sp);
>>> #endif
>>> 
>>> However now it just quits immediately, any ideas ?
>>> tcsh% ./Release+Asserts/bin/lldb /bin/sh
>>> Traceback (most recent call last):
>>>  File "<string>", line 1, in <module>
>>> ImportError: No module named embedded_interpreter
>>> Traceback (most recent call last):
>>>  File "<string>", line 1, in <module>
>>> ImportError: No module named embedded_interpreter
>>> Traceback (most recent call last):
>>>  File "<string>", line 1, in <module>
>>> ImportError: No module named embedded_interpreter
>>> Traceback (most recent call last):
>>>  File "<string>", line 1, in <module>
>>> NameError: name 'run_one_line' is not defined
>>> Traceback (most recent call last):
>>>  File "<string>", line 1, in <module>
>>> NameError: name 'run_one_line' is not defined
>>> Traceback (most recent call last):
>>>  File "<string>", line 1, in <module>
>>> NameError: name 'run_one_line' is not defined
>>> Current executable set to '/bin/sh' (x86_64). 
>>> tcsh% 
>>> 
>>> -- 
>>> Pawel
>>> 
>>> 
>>> _______________________________________________
>>> lldb-dev mailing list
>>> lldb-dev at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20120320/61786d00/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: finish-swig-Python-LLDB.sh
Type: application/octet-stream
Size: 14551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20120320/61786d00/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20120320/61786d00/attachment-0001.html>


More information about the lldb-dev mailing list