# Fail to build Root on OpenBSD because G\_\_Core.cxx would initialize std::string with a null value

**URL:** <https://root-forum.cern.ch/t/fail-to-build-root-on-openbsd-because-g-core-cxx-would-initialize-std-string-with-a-null-value/35426>\
**Category:** Newbie\
**Created:** [July 31, 2019, 3:48am UTC](https://root-forum.cern.ch/t/fail-to-build-root-on-openbsd-because-g-core-cxx-would-initialize-std-string-with-a-null-value/35426 "2019-07-31T03:48:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tuanhtrng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/94ad74/32.png) [@tuanhtrng](https://root-forum.cern.ch/u/tuanhtrng)\
**Post date:** [August 1, 2019, 4:19am UTC](https://root-forum.cern.ch/t/fail-to-build-root-on-openbsd-because-g-core-cxx-would-initialize-std-string-with-a-null-value/35426/3 "2019-08-01T04:19:20Z")

</div>

@amadio, thanks for your reply. I found a [workaround](https://root-forum.cern.ch/t/root-on-freebsd-again/26806/8) for the error shown.

I will follow your suggestion using gcc/libstdc++ combo. Actually, I noticed the cmake configuration info mentioned disabling libcxx so I guess no harm done.

---

_[View the full topic](https://root-forum.cern.ch/t/fail-to-build-root-on-openbsd-because-g-core-cxx-would-initialize-std-string-with-a-null-value/35426)._
