Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbols for architecture x86_64: "typeinfo for std::bad_variant_access", "vtable for std::bad_variant_access" #72

Open
barracuda156 opened this issue Jan 19, 2023 · 0 comments

Comments

@barracuda156
Copy link

On 10.7–10.12 absent fails to build with Clang:

Undefined symbols for architecture x86_64:
  "typeinfo for std::bad_variant_access", referenced from:
      __ZNSt3__126__throw_bad_variant_accessB6v15007Ev in and_then_test.cpp.o
      __ZNSt3__126__throw_bad_variant_accessB6v15007Ev in transform_test.cpp.o
  "vtable for std::bad_variant_access", referenced from:
      __ZNSt3__126__throw_bad_variant_accessB6v15007Ev in and_then_test.cpp.o
      __ZNSt3__126__throw_bad_variant_accessB6v15007Ev in transform_test.cpp.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [tests/absent_tests] Error 1

Log: https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/216330/steps/install-port/logs/stdio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant