I've had similar results with the build on my Pi2.
Same issue here, RPi2 and RPi3. Everything looks to be working great until I try to add anything to my library. Kodi gets stuck in a black screen crash/restart loop.
jIZi
Good to see the issue has been reproduced. Thanks Escalade.
[Edit]
I've been doing some googling and the issue could be related this one reported with odroid. They suggest the issue was with compiler optimizations causing problems in the standard C++ library with arm architure.
Their solution was to add "
--disable-libstdcxx-dual-abi" to the compiler options.
[/Edit]