You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build failure on macos12-arm-64bit when using WITH_STL=ON
Darwin Kernel Version 21.1.0
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
Build failure:
/.../opentelemetry-cpp/opentelemetry-cpp-1.6.1/api/include/opentelemetry/std/utility.h:63:34: error: no template named 'make_index_sequence' in namespace 'std'
using make_index_sequence = std::make_index_sequence<N>;
~~~~~^
/.../opentelemetry-cpp/opentelemetry-cpp-1.6.1/api/include/opentelemetry/std/utility.h:66:29: error: no template named 'index_sequence' in namespace 'std'
using index_sequence = std::index_sequence<Ints...>;
~~~~~^
The issue is that WITH_STL is too broad, it assumes that:
std::unique_ptr is available (yes)
std::shared_ptr is available (yes)
std::make_index_sequence is available (no)
Please consider to:
either split HAVE_CPP_STDLIB into more granular defines
or make checks in CMakeList.txt to make sure WITH_STL can actually be used, that is std class used actually exists.
Invalid configurations, if WITH_STL is considered invalid on macos12, should be detected at configure (CMake) time, not later at compile time.
Please document expected usage and limitations of WITH_STL, in INSTALL.md
The text was updated successfully, but these errors were encountered:
To be usefull, WITH_STL needs to be broken down at the minimum by versions of the STL, otherwise it is impossible to use a C++11 feature unless a C++20 STL is available.
Build failure on macos12-arm-64bit when using WITH_STL=ON
Darwin Kernel Version 21.1.0
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
Build failure:
The issue is that
WITH_STL
is too broad, it assumes that:std::unique_ptr
is available (yes)std::shared_ptr
is available (yes)std::make_index_sequence
is available (no)Please consider to:either splitHAVE_CPP_STDLIB
into more granular definesor make checks inCMakeList.txt
to make sureWITH_STL
can actually be used, that is std class used actually exists.Invalid configurations, ifWITH_STL
is considered invalid on macos12, should be detected at configure (CMake
) time, not later at compile time.Please document expected usage and limitations of
WITH_STL
, inINSTALL.md
The text was updated successfully, but these errors were encountered: