2024.06.10.00: error: use of undeclared identifier 'cxxabi_with_cxa_exception'
yurivict opened this issue · 4 comments
yurivict commented
Build fails:
/usr/ports/devel/folly/work/folly-2024.06.10.00/folly/lang/Exception.cpp:584:20: error: use of undeclared identifier 'cxxabi_with_cxa_exception'
584 | auto handler = cxxabi_with_cxa_exception(
| ^
1 error generated.
Could you please point out where is the symbol cxxabi_with_cxa_exception
defined in the project or in the C++ standard?
Version: 2024.06.10.00
Clang-18
FreeBSD 14.1
Orvid commented
cxxabi_with_cxa_exception
is part of the internals of the libc++
standard library that handles some specific details of exception management. It looks like our detection is slightly off.
Do you know which version of libc++
or libstdc++
you're building against?
yurivict commented
$ printf "#include <ciso646>\nint main () {}" | clang -E -stdlib=libc++ -x c++ -dM - | grep _LIBCPP_VERSION
#define _LIBCPP_ODR_SIGNATURE _LIBCPP_CONCAT(_LIBCPP_CONCAT(_LIBCPP_HARDENING_SIG, _LIBCPP_EXCEPTIONS_SIG), _LIBCPP_VERSION)
#define _LIBCPP_VERSION 180100