[Lldb-commits] [PATCH] D13334: Preliminary NetBSD support

Kamil Rytarowski via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 8 12:58:04 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 02.10.2015 12:15, Kamil Rytarowski via lldb-commits wrote:
> On 02.10.2015 10:07, Ed Maste wrote:
>> On 1 October 2015 at 23:09, Kamil Rytarowski via lldb-commits 
>> <lldb-commits at lists.llvm.org> wrote:
>>> 
>>> Yes, please! Better incomplete support in the source trees
>>> then once almost complete but rotting in a local patch...
> 
>> I agree - I think it's better to get basic support in as soon as
>>  possible and we can refactor as appropriate in the tree.
> 
> 
> Right. There are just few pending patches to make it buildable and 
> runnable: - ncurses one (already in review D12995), - platform code
> (pushed to review within D13334), - cmake glue for platform code
> (it will come next), - autotools glue for platform code (ditto), -
> minor glue (swig, ...).
> 
> When we will get the above in-trees I already have local patches
> to polish the things up.
> 
>> Will you be able to get a NetBSD builder after the changes start 
>> going in?
> 
> I will try to ask for one. Two daily builds (one with CMake and
> the second one with autotools) should be good enough.

The NetBSD operating system 7.0 has been formally announced today (and
antedated to 26 Sep)!

http://www.netbsd.org/releases/formal-7/NetBSD-7.0.html

I acquired a fresh NetBSD-7.0 machine (amd64 port), the current
parameters allow to build LLVM+Clang+LLDB (all platform backends) with
CMake & ninja within <40 minutes.

pkgsrc packages:
cmake-3.3.1
ninja-build-1.6.0
swig-1.3.38nb1
python27-2.7.10
ncurses{,w}-6.0nb1

Host toolchain:
$ ld -v
GNU ld (NetBSD Binutils nb1) 2.23.2
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/lto-wrapper
Target: x86_64--netbsd
Configured with:
/usr/7/src/tools/gcc/../../external/gpl3/gcc/dist/configure
- --target=x86_64--netbsd --enable-long-long --enable-threads
- --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html
- --with-pkgversion='NetBSD nb2 20150115' --with-system-zlib
- --enable-__cxa_atexit --enable-libstdcxx-threads --with-tune=nocona
- --enable-libstdcxx-time=rt --enable-lto
- --with-mpc-lib=/var/obj/mknative/amd64-x86_64/usr/7/src/external/lgpl3/m
pc/lib/libmpc
- --with-mpfr-lib=/var/obj/mknative/amd64-x86_64/usr/7/src/external/lgpl3/
mpfr/lib/libmpfr
- --with-gmp-lib=/var/obj/mknative/amd64-x86_64/usr/7/src/external/lgpl3/g
mp/lib/libgmp
- --with-mpc-include=/usr/7/src/external/lgpl3/mpc/dist/src
- --with-mpfr-include=/usr/7/src/external/lgpl3/mpfr/dist/src
- --with-gmp-include=/usr/7/src/external/lgpl3/gmp/lib/libgmp/arch/x86_64
- --enable-tls
- --disable-multilib --disable-symvers --disable-libstdcxx-pch
- --build=x86_64-unknown-netbsd6.0. --host=x86_64--netbsd
- --with-sysroot=/var/obj/mknative/amd64-x86_64/usr/7/src/destdir.amd64
Thread model: posix
gcc version 4.8.4 (nb2 20150115)

I'm waiting for credentials for my buildbot-slave from Galina Kistanova.

I've verified that NetBSD-7.0 builds properly lldb with my patches for
NetBSD. Please help me to make merged the current code from review.

http://reviews.llvm.org/D13334 Preliminary NetBSD support
http://reviews.llvm.org/D12995 Add support for lldb config.h and
detect ncurses' include path
http://reviews.llvm.org/D12994 Improve support of the ncurses
dependency on NetBSD

When this will make happen I will send remaining glue to make it
buildable.

I develop locally on NetBSD-current/amd64, buildbot works on 7.0,
which is the minimal version I plan to support.

Thank you for your cooperation!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWFsrLAAoJEEuzCOmwLnZsAu8P/iDfDl/8/ZBLIsbvfUl0ks8Q
q6oNdtEYkZsfQw0vI3i4p6wUr4XlC2BsYAdnt6rhvfeVwOz84XovlsyLdBNsyv8F
oplzAgji9tADNAn+dXCBkWQkuNUnfQh4kEmZKGbW1bN7G1N6lWOfet9Al1DM9dgv
dASagXy+JOkwGQBnLFJWGR6KR2L9f8O8OqmmLD/qDafuL9+XlLMAYxuISx1BnjoF
IgpcQbBqmBr9WI5g/OATf61xhFTatMYw7EPXAs8qgHYichnbK1anjvTiJaiHNgLY
wkaaH/UqgMog2v0Jg78q6mjscVe98H3aLvTTaTO8Vb82qj0D5x/Yh4I11/HiQOOH
8KXlmONdC/Oetj3+TvIX/bdj5h6viqVef5UcKtaekRlJUEBAEyd+ltTinxWCmu/g
TDq5Oa2uP8Frxfl9pzOuOMWd32CcjOTxir1IeJ+1sDmjo1Qu+7RI8vzhqFG6FqgY
hwWy22Rb35xNzE1twA9sBv1mTdgNJghdv32oIKgjveom1yE8eBYp8H2HevkW6uLW
xYaTk2XNUQ/KmxycJCRh2yagyyrpXfB8DBcWyG2PIpisWz5kXDN22X4Cr4hYSQfp
xi/NhrGw0PCggxAwMsBbDNk0d9otr607qqWhVr9kLr6fInzWYbRHcU8s7Ah+RQjf
nD+ankMu9Ssek+kwGXIc
=p600
-----END PGP SIGNATURE-----


More information about the lldb-commits mailing list