[Lldb-commits] [PATCH] D68856: convert SBDebugger::***FileHandle() wrappers to native files.

Kamil Rytarowski via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 22 10:49:29 PDT 2019


krytarowski added a comment.



In D68856#1718096 <https://reviews.llvm.org/D68856#1718096>, @lawrence_danna wrote:

> now I'm stuck on  this trying to install cmake.
>
>   pkg_add: no pkg found for 'libunistring>=0.9.4', sorry.
>   pkg_add: Can't install dependency libunistring>=0.9.4
>   pkg_add: 1 package addition failed
>   *** Error code 1
>


I recommend to just use pkgsrc from source code. As of today packages are imperfect and always there is a set of things that are not prebuilt.

If there are mixed packages for binary packages vs source ones, it's reasonable to `rm -rf /usr/pkg /var/db/pkg` before starting.

Steps:

1. Download pkgsrc from tarball.

http://cdn.netbsd.org/pub/pkgsrc/pkgsrc-2019Q3/pkgsrc-2019Q3.tar.bz2

2. Unpack, e.g. into /usr/pkgsrc
3. cd /usr/pkgsrc/devel/git-base && make install
4. cd /usr/pkgsrc/security/mozilla-rootcerts && make install

And follow the MESSAGE commands to finish the installation.

5. Follow this process for all the dependencies (if I remember correctly: cmake, swig3, ninja-build).

In D68856#1718075 <https://reviews.llvm.org/D68856#1718075>, @lawrence_danna wrote:

> In D68856#1717767 <https://reviews.llvm.org/D68856#1717767>, @krytarowski wrote:
>
> > In D68856#1717683 <https://reviews.llvm.org/D68856#1717683>, @lawrence_danna wrote:
> >
> > > @mgorny
> > >
> > > I can't get anything to work.   I've tried running  a local VM with virtualbox but it's networking driver crashes my kernel.   I've tried a local VM with VMware but it won't boot netbsd.   I've tried AWS but they only have netbsd 7, which is too old.   I've tried google cloud, but their image creator script only works for netbsd 9, and python won't build because x11 isn't installed.   I've tried installing the pkgsrc binaries from netbsd 8 onto netbsd 9, but that doesn't work either.   I'm completely at a loss.  I can't figure out how to make a netbsd VM that can actually build LLDB.
> > >
> > > Do you have  a machine image on AWS or google cloud or even a VMDK or something that I could use?
> >
> >
> > For the python part, you need to either install all basesystem sets (including x11) or set `X11_TYPE=modular` in `/etc/mk.conf`.
>
>
> I tried `X11_TYPE`, it does nothing.      I'm a bit confused there because I did not have a file called `/etc/mk.conf`.
>
> Is there a way to install those missing basesystem sets once the machine is up?   Or do I have to go back and reinstall from scratch?


The typical approach is to fetch set file and untarball it into /, all other approaches are at most wrappers to this. The list of installed sets is stored in `/etc/mtree/`.

Please remember to use tar options to preserve file properties.

http://pub.nethence.com/bsd/wo.sysinst notes: `tar xzphfe $set.tgz -C /`.

Another option is to disable x11 option either for all packages or for python. In my opinion it's easier to just set the `modular` in the `X11_TYPE` variable.

> PS: oh,  //of course// I have to set the environment variable `MAKECONF=/etc/mk.conf`

`/etc/mk.conf` is the default file for MAKECONF, no need to set this variable.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68856/new/

https://reviews.llvm.org/D68856





More information about the lldb-commits mailing list