[libcxx-commits] [PATCH] D92214: [libc++] Implement format_error.

Marek Kurdej via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 27 07:09:14 PST 2020


curdeius added a comment.

To fix Apple back-deployment build, you'll need to mark your test with sth like:

  // This test requires the dylib support introduced in D92214.
  // XFAIL: with_system_cxx_lib=macosx10.15
  // XFAIL: with_system_cxx_lib=macosx10.14
  // XFAIL: with_system_cxx_lib=macosx10.13
  // XFAIL: with_system_cxx_lib=macosx10.12
  // XFAIL: with_system_cxx_lib=macosx10.11
  // XFAIL: with_system_cxx_lib=macosx10.10
  // XFAIL: with_system_cxx_lib=macosx10.9

because this build uses a released dylibs for the given version of macOS (here 10.9) and **does not** use whatever changes you put in src/.
So, in your case, the dtor nor the vtable of `format_error` is just not in the libc++.dylib that the tests use.
Hence the error message: `dyld: Symbol not found: __ZTVNSt3__112format_errorE`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92214/new/

https://reviews.llvm.org/D92214



More information about the libcxx-commits mailing list