Internal abseil code compile error on gcc 14 #2723
Labels
bug
Something isn't working
Stale
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
This issue is Compile errors occur when using gcc 14 #2591 reopened. This issue has been observed on opentelemetry-cpp versions 1.15.0 and 1.16.0.
A cmake build in which internal abseil code is used generates compile errors on gcc 14. Using an external abseil devel package avoids the problem. Using the internal abseil code on the previous version of gcc (13) works ok.
OS: Fedora 40 or Fedora rawhide. Most likely any OS which supports gcc 14 will show this issue. Ensure that the abseil and abseil-devel packages are NOT installed.
Run cmake with WITH_ABSEIL:BOOL=OFF or WITH_ABSEIL omitted as an option.
Run make. This will eventually fail with compile errors (the following is the first of many):
Image: registry.fedoraproject.org/fedora:rawhide
Packages installed: git cmake make gcc-c++ rpm-build rpmlint createrepo_c tree zlib-static python3-requests libcurl-devel protobuf-devel protobuf-lite-devel json-devel c-ares-devel grpc-devel
cmake command:
The text was updated successfully, but these errors were encountered: