Login
You're viewing the techdon.dev public feed.
  • May 19, 2026, 3:06 PM

    í'm looking again if there is any possibility to reconcile libc++ and libstdc++ and i've come to the conclusion that doing so in a way that would permit using libc++abi in the system but have compatibility with libstdc++ binaries is probably outright impossible btw

    libc++abi does provide the full set of __cxa_* symbols that libstdc++ expects (except some stuff for gcc itm), but the abi of the c++-mangled symbols differs quite considerably but not for *all* symbols (e.g. some of the exception handling abi mangles entirely differently, e.g. std::bad_exception, while other stuff, e.g. std::set_terminate, mangles the same)

    you could make a build of libstdc++ that uses libc++'s abi library, of course (in theory anyway, in practice it's a lot of work) but it will never provide total abi compatibility with libstdc++ proper, unless libstdc++ shimmed its own stuff to be provided only when an external abi lib is in place (and for stuff not relying on any global memory, make sure all the struct layouts etc match perfectly the other thing)

    so i don't see this ever safely happening and the only way to get compatibility is to switch globally to libstdc++

    cc @wezm

    💬 0🔄 0⭐ 0