I had to apply the attached patch as well to get it linked properly on FreeBSD.
Mark
On 2/27/12 2:18 PM, Greg Clayton wrote:
I am not sure how the makefile system works, but it sounds like the
PlatformFreeBSD .a file isn't being built on linux when it should be.
Try this out and let me know how things go:
cd lldb/source/Plugins/Platform
patch -p0< platform.patch
On Feb 27, 2012, at 11:43 AM, Thomas Davie wrote:
Thanks for the fix Greg, unfortunately, there appears to still be an issue here
re linking:
llvm[3]: Linking Release+Asserts Shared Library liblldb.so
/home/tatd2/build/Release+Asserts/lib/liblldbInitAndLog.a(lldb.o): In function
`lldb_private::Initialize()':
/home/tatd2/llvm/tools/lldb/source/lldb.cpp:(.text+0xdf): undefined reference
to `PlatformFreeBSD::Initialize()'
(and similarly in Terminate)
Cheers
Tom Davie
if (*ra4 != 0xffc78948) { return false; }
On 27 Feb 2012, at 19:17, Greg Clayton wrote:
% svn commit
Sending lldb.xcodeproj/project.pbxproj
Sending source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp
Sending source/Plugins/Platform/Linux/PlatformLinux.cpp
Sending source/Plugins/Platform/Linux/PlatformLinux.h
Sending source/lldb.cpp
Transmitting file data .....
Committed revision 151539.
Fixed!
I also changed the Mac build to always build PlatformLinux, PlatformFreeBSD and
the POSIX-DYLD plug-ins to help catch these things in the future.
On Feb 27, 2012, at 12:57 AM, Thomas Davie wrote:
Hi all,
I didn't see an lldb-users mailing list, so I'm sending this here hoping that
it's an appropriate place. I'm having some trouble getting lldb to build under
linux, specifically, I'm ending up with this output:
/home/tatd2/llvm/tools/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp:155:50:
error: too many arguments to function call, expected at most 6, have 9
NULL,
^~~~~
/usr/local/bin/../lib/clang/3.1/include/stddef.h:47:14: note: expanded from
macro 'NULL'
#define NULL __null
^~~~~~
/home/tatd2/llvm/tools/lldb/source/Plugins/Platform/Linux/../../../../include/lldb/Core/ModuleList.h:402:5:
note: 'GetSharedModule' declared here
static Error
^
/home/tatd2/llvm/tools/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp:184:54:
error: too many arguments to function call, expected at most 6, have 9
NULL,
^~~~~
/usr/local/bin/../lib/clang/3.1/include/stddef.h:47:14: note: expanded from
macro 'NULL'
#define NULL __null
^~~~~~
/home/tatd2/llvm/tools/lldb/source/Plugins/Platform/Linux/../../../../include/lldb/Core/ModuleList.h:402:5:
note: 'GetSharedModule' declared here
static Error
^
6 warnings and 2 errors generated.
I'm not really sure where to go to try and sort this out. I'd really
appreciate any hints on this front.
Thanks
Tom Davie
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
Index: lib/Makefile
===================================================================
--- lib/Makefile (revision 151602)
+++ lib/Makefile (working copy)
@@ -61,7 +61,10 @@
clangParse.a \
clangSema.a \
clangSerialization.a \
- LLVMMCDisassembler.a
+ LLVMMCDisassembler.a \
+ lldbPluginPlatformMacOSX.a \
+ lldbPluginPlatformLinux.a \
+ lldbPluginPlatformFreeBSD.a
include $(LLDB_LEVEL)/../../Makefile.config
@@ -76,7 +79,6 @@
lldbPluginObjectFileMachO.a \
lldbPluginOperatingSystemDarwinKernel.a \
lldbPluginSymbolVendorMacOSX.a \
- lldbPluginPlatformMacOSX.a \
lldbPluginProcessDarwin.a \
lldbPluginProcessMachCore.a
endif
@@ -85,7 +87,6 @@
USEDLIBS += lldbPluginProcessPOSIX.a \
lldbPluginProcessLinux.a \
lldbPluginDynamicLoaderPOSIX.a \
- lldbPluginPlatformLinux.a \
lldbHostLinux.a
endif
@@ -93,8 +94,7 @@
USEDLIBS += lldbHostFreeBSD.a \
lldbPluginDynamicLoaderPOSIX.a \
lldbPluginProcessPOSIX.a \
- lldbPluginProcessFreeBSD.a \
- lldbPluginPlatformFreeBSD.a
+ lldbPluginProcessFreeBSD.a
endif
include $(LEVEL)/Makefile.common
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev