[Bug]: clang 15 defines `__GXX_RTTI` but doesn't have `cxxabi.h`
- Langage dominant
- C++
- Étoiles
- 18.1k
- Forks
- 3.2k
- Merge moyen
- 20 h 36 min
- PR mergées (30 j)
- 1
Description
### Describe the issue
In layout.h we have
```
if defined(__GXX_RTTI)
#define ABSL_INTERNAL_HAS_CXA_DEMANGLE
#endif
#ifdef ABSL_INTERNAL_HAS_CXA_DEMANGLE
#include
#endif
```
which then falls over since cxxabi.h doesn't exist.
### Steps to reproduce the problem
Build run clang-tidy version 15 or 16 (or presumably build with the corresponding clang version).
### What version of Abseil are you using?
20230125.2
### What operating system and version are you using?
Mac OS 13
### What compiler and version are you using?
clang-tidy 15/16
### What build system are you using?
cmake 3.26.3
### Additional context
Using the conan package.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
The issue is in layout.h where __GXX_RTTI detection includes cxxabi.h, but clang 15+ defines __GXX_RTTI without providing that header. Start by examining layout.h and the surrounding build configuration. Check how other projects detect cxxabi.h availability. Run a build with clang 15/16 to see the error, then adjust the preprocessor checks to test for the header's existence, not just the macro.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cmake, cpp
- Domaine
- build-system
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100