<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 10, 2021, at 09:33, Isuru Fernando via libcxx-dev <<a href="mailto:libcxx-dev@lists.llvm.org" class="">libcxx-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi Ken,<br class=""><br class="">I'm in the same situation as you in conda package manager.<br class="">Note that with libcxx 12, <a href="https://reviews.llvm.org/D91517" target="_blank" class="">https://reviews.llvm.org/D91517</a> was merged where<div class="">codecvt with char8_t is added in the middle of a structure instead of at the end.<br class=""></div><div class="">This means that you have to be careful that all applications link to the custom libc++.<br class=""><br class=""></div><div class="">For libcxx developers,</div><div class=""><div class="">While we are discussing how to avoid ODR violations, is it possible to move the two lines at<br class=""><a href="https://github.com/llvm/llvm-project/blob/llvmorg-12.0.1/libcxx/src/locale.cpp#L210-L211" class="">https://github.com/llvm/llvm-project/blob/llvmorg-12.0.1/libcxx/src/locale.cpp#L210-L211 </a><br class=""></div><div class="">to the bottom to avoid segfaults resulting from this?<br class=""></div></div></div></div></div></blockquote><div><br class=""></div><div>Generally speaking, we make the assumption that there's a single copy of libc++ in use inside a final linked image. Or if you want to use libc++ as an implementation detail and link it statically, ensure it doesn't export any symbols and has absolutely no ABI surface outside of the executable where it's being used. Chrome does that.</div><div><br class=""></div><div>Anything else is very brittle, and I'm reluctant to add workarounds that make it look like it works, because you may run into other issues that we won't be able to patch so easily.</div><div><br class=""></div><div>Louis</div><div><br class=""></div></div></body></html>