Repository navigation
ci: add _LIBCPP_REMOVE_TRANSITIVE_INCLUDES to TSAN (libc++) job - #30519
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
There was a problem hiding this comment.
nit: The same can be achieved, by setting C++23, according to the docs.
This may be beneficial for other reasons as well, even if it is just turning existing compile warnings into errors (#30436 (comment))
So adding -std=c++23 here, and a comment that libc++ is required for the feature seems better. But this is fine either way.
There was a problem hiding this comment.
Thanks, had a look at this, and ran into issues with at least leveldb, which we'd first have to fix in the subtree, i.e:
In file included from leveldb/util/comparator.cc:14:
./leveldb/util/no_destructor.h:40:17: error: 'aligned_storage<8, 8>' is deprecated [-Werror,-Wdeprecated-declarations]
40 | typename std::aligned_storage<sizeof(InstanceType),
| ^
leveldb/util/comparator.cc:71:47: note: in instantiation of template class 'leveldb::NoDestructor<leveldb::(anonymous namespace)::BytewiseComparatorImpl>' requested here
71 | static NoDestructor<BytewiseComparatorImpl> singleton;
| ^
/usr/lib/llvm-18/bin/../include/c++/v1/__type_traits/aligned_storage.h:90:8: note: 'aligned_storage<8, 8>' has been explicitly marked deprecated here
90 | struct _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_TEMPLATE_VIS aligned_storage {
| ^
/usr/lib/llvm-18/bin/../include/c++/v1/__config:1013:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX23'
1013 | # define _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_DEPRECATED
| ^
/usr/lib/llvm-18/bin/../include/c++/v1/__config:974:49: note: expanded from macro '_LIBCPP_DEPRECATED'
974 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
| ^
1 error generated.So might followup with this.
There was a problem hiding this comment.
There is an up-upstream issue / PR for this. google/leveldb#1013 & google/leveldb#896.
These cause compile failures with _LIBCPP_REMOVE_TRANSITIVE_INCLUDES.
i.e:
```bash
In file included from init.cpp:8:
./init.h:46:54: error: no template named 'atomic' in namespace 'std'
46 | bool AppInitBasicSetup(const ArgsManager& args, std::atomic<int>& exit_status);
| ~~~~~^
1 error generated.
```
See: https://libcxx.llvm.org/DesignDocs/HeaderRemovalPolicy.html.
ea038bd to
e3edacc
Compare
|
re-ACK e3edacc |
|
Ported to the CMake-based build system in hebasto#281. |
c814a1c fixup! ci: Migrate CI scripts to CMake (fanquake) 3de63c7 refactor: fix missing includes (fanquake) Pull request description: This PR ports bitcoin#30519. Top commit has no ACKs. Tree-SHA512: ac9198e5065a08ae23f3dfcf7dfbb9c6f9c4b2f2345992141c88c232aa37da929ebb4a9c9405bf47d1fbd517e9aae4feb6c9220e036c0a04b26c5096f2cb09ba
Add
_LIBCPP_REMOVE_TRANSITIVE_INCLUDESto one of the libc++ CI jobs, to catch missing includes, that are otherwise hidden by transitive includes inside libc++. A more appropriate place for this might be the tidy job, but that does not use libc++.See https://libcxx.llvm.org/DesignDocs/HeaderRemovalPolicy.html for more information.