Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-14 Thread René J . V . Bertin via lldb-dev
On Tuesday September 13 2016 11:09:11 Chris Bieneman wrote: >> - fix finding CheckAtomic.cmake (or just install it with LLVM) > >CheckAtomic is installed with LLVM on trunk, and will be this way in future >releases. Good, thanks for confirming that the tentative solution I adopted in my 3.9.0 p

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-13 Thread Chris Bieneman via lldb-dev
> On Sep 10, 2016, at 12:11 PM, René J.V. Bertin via lldb-dev > wrote: > > On Saturday September 10 2016 17:26:26 Michał Górny wrote: > > Re: MIUtilParse: I'm building the 3.9.0 release so no worries that the class > has been added back supposing it was removed *after* the release. > >>> Agr

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-11 Thread Kamil Rytarowski via lldb-dev
On 09.09.2016 10:55, René J.V. Bertin via lldb-dev wrote: > Hi, > > I've been working on a MacPorts port for lldb > There is already available framework with standalone build of LLDB for Darwin -- pkgsrc. So far it ships with local patches, but they are being eliminated. http://pkgsrc.se/devel/

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-10 Thread René J . V . Bertin via lldb-dev
On Saturday September 10 2016 17:26:26 Michał Górny wrote: Re: MIUtilParse: I'm building the 3.9.0 release so no worries that the class has been added back supposing it was removed *after* the release. >> Agree that a standalone build would be great to have working, it just >> requires someone w

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-10 Thread Michał Górny via lldb-dev
On Sat, 10 Sep 2016 15:09:13 + Zachary Turner via lldb-dev wrote: > Agree that a standalone build would be great to have working, it just > requires someone willing and able to come along and fix it :) I have it on my TODO but honestly speaking, LLDB is a bit of a mess right now and I'm not

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-10 Thread Michał Górny via lldb-dev
On Fri, 09 Sep 2016 12:37:01 -0700 (PDT) René J.V. Bertin via lldb-dev wrote: > Hi, > > I wanted to see how far I could get with a standalone build, so I copied the > missing CheckAtomic.cmake file into the installed cmake/llvm directory, and > tried to build lldb. > It aborted at 93% because

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-10 Thread Zachary Turner via lldb-dev
Agree that a standalone build would be great to have working, it just requires someone willing and able to come along and fix it :) On Sat, Sep 10, 2016 at 1:00 AM René J.V. Bertin wrote: > On Friday September 09 2016 20:00:34 Zachary Turner wrote: > >To be completely honest with you I don't eve

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-10 Thread René J . V . Bertin via lldb-dev
There's another issue with the standalone build. I call cmake with -DDCMAKE_INSTALL_PREFIX=/opt/local/libexec/llvm-3.9, so that lldb gets installed with the rest of llvm 3.9, into /opt/local/libexec/llvm-3.9 . It looks like liblldb.${version} is generated with the wrong install path recorded:

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-10 Thread René J . V . Bertin via lldb-dev
On Friday September 09 2016 20:00:34 Zachary Turner wrote: >To be completely honest with you I don't even know why this class exists. >All it needs to do is use llvm's regex class. The entire MIUtilParse.h / >.cpp files can be deleted as far as I'm concerned. That clearly needs a bit more work, i

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-09 Thread Zachary Turner via lldb-dev
To be completely honest with you I don't even know why this class exists. All it needs to do is use llvm's regex class. The entire MIUtilParse.h / .cpp files can be deleted as far as I'm concerned. On Fri, Sep 9, 2016 at 12:45 PM Zachary Turner wrote: > Yes, this is a bug in LLDB. You're welco

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-09 Thread Zachary Turner via lldb-dev
Yes, this is a bug in LLDB. You're welcome to try to fix it by changing it to include "llvm/Support/Regex.h" instead of this private header. Not sure if you will run into any issues, but in theory I see no reason why it shouldn't work. On Fri, Sep 9, 2016 at 12:37 PM René J.V. Bertin via lldb-de

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-09 Thread René J . V . Bertin via lldb-dev
Hi, I wanted to see how far I could get with a standalone build, so I copied the missing CheckAtomic.cmake file into the installed cmake/llvm directory, and tried to build lldb. It aborted at 93% because it tried to include a headerfile from the llvm source: {{{ In file included from /opt/loc

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-09 Thread René J . V . Bertin via lldb-dev
On Friday September 09 2016 10:34:37 Greg Clayton wrote: Hi, >The biggest issue with trying to use cmake on macOS is that there is no >support for building frameworks, please correct me if I am wrong. The xcode >build will build a "LLDB.framework" that contains all headers and the shared >libr

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-09 Thread Zachary Turner via lldb-dev
It's possible they weren't supported in the past, but creating Frameworks is definitely supported now. https://cmake.org/cmake/help/v3.6/manual/cmake-buildsystem.7.html#apple-frameworks https://cmake.org/cmake/help/v3.6/prop_tgt/FRAMEWORK.html#prop_tgt:FRAMEWORK Here's a more detailed example. h

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-09 Thread Greg Clayton via lldb-dev
The biggest issue with trying to use cmake on macOS is that there is no support for building frameworks, please correct me if I am wrong. The xcode build will build a "LLDB.framework" that contains all headers and the shared library, and the "lldb" command line tool that links against that. We r

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-09 Thread René J . V . Bertin via lldb-dev
On Friday September 09 2016 10:42:34 Pavel Labath wrote: Hi Pavel Thanks for pointing me to > Hi Rene, > lldb/cmake/modules/LLDBStandalone.cmake for how to set it up. As far > as I know, the main trick is pointing your build to the llvm-config > binary installed by the llvm package So, adding

Re: [lldb-dev] [OS X]: building lldb with cmake

2016-09-09 Thread Pavel Labath via lldb-dev
Hi Rene, building lldb on osx with cmake should work fine when you're doing it as a part of llvm (our buildbot is doing it ). What you are asking for is called a "standalone" build of LLDB. I don't think anyone has tried it on a mac, but

[lldb-dev] [OS X]: building lldb with cmake

2016-09-09 Thread René J . V . Bertin via lldb-dev
Hi, I've been working on a MacPorts port for lldb (MacPorts already provides ports for llvm and clang; cf. https://trac.macports.org/ticket/45251). Using the Xcode project isn't really an option here, so I've based my approach on the instructions for building using CMake on *n*x. In short: -