[lldb-dev] Linux Build Errors w/ LLDB

Enrico Granata egranata at apple.com
Tue Oct 15 15:24:11 PDT 2013


Michael,
that is correct

I did make the changes to Init/Terminate because somehow the OSX build was confused as to the absence of a definition at link-time. I sent an email to the list asking if anyone had a proper fix for the issue, however to no avail yet
I am planning to see what is wrong there ASAP today, but if this is blocking you more critically, feel free to revert while I take a closer look

With that said, I am not sure what the other problem is, a GCC bug maybe?

Enrico Granata
📩 egranata@.com
☎️ 27683

On Oct 15, 2013, at 3:03 PM, Michael Sartain <mikesart at gmail.com> wrote:

> I'm running into these errors while building Linux LLDB with clang 3.3 right now and r192738 for llvm, clang, and lldb:
> 
> /home/mikesart/data/src/llvm.svn/llvm/tools/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp:114:18: error: redefinition of 'Initialize'
> /home/mikesart/data/src/llvm.svn/llvm/tools/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp:133:18: error: redefinition of 'Terminate'
> 
> To fix these, I had to undo the change in r192724 (see down below).
> 
> I'm also now hitting this error when linking after I fixed the above two though:
> 
> /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/chrono:535:6: error: no matching constructor for initialization of 'duration' (aka 'std::chrono::duration<long, std::ratio<1, 1000000> >')
>           : __d(__t.time_since_epoch())
>             ^   ~~~~~~~~~~~~~~~~~~~~~~
> 
> Anyone else seeing this?
> Thanks.
>  -Mike
> 
> -----------------------
> mikesart at mikesart64:~/data/src/llvm.hg/llvm/tools/lldb (master)$ git --no-pager diff
> diff --git a/source/Plugins/Platform/Windows/PlatformWindows.h b/source/Plugins/Platform/Windows/PlatformWindows.h
> index e701751..67d3e88 100644
> --- a/source/Plugins/Platform/Windows/PlatformWindows.h
> +++ b/source/Plugins/Platform/Windows/PlatformWindows.h
> @@ -24,10 +24,10 @@ class PlatformWindows : public Platform
>  public:
>  
>      static void
> -    Initialize(void) {}
> +    Initialize(void);
>  
>      static void
> -    Terminate(void) {}
> +    Terminate(void);
>  
>      PlatformWindows(bool is_host);
> 
> _______________________________________________
> 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/20131015/28c117d6/attachment.html>


More information about the lldb-dev mailing list