Repository navigation
enable c++20 - #45133
enable c++20#45133
Conversation
|
edit: merged and rebased |
|
ok, jenkins is finding gcc11 on focal and can build c++20 'make check' identified some compilation errors WITH_SEASTAR that i haven't worked through yet 'ceph API tests' hit an error under s3select's use of boost/msm - that issue is tracked in https://tracker.ceph.com/issues/54265 |
cab8c02 to
38f7518
Compare
|
tyvm @tchaikov! can i ask your assistance with the centos devtoolset piece? i see that we haven't been using that for centos 8, so i tried to reenable it for gcc 10 given the |
|
@cbodley created cbodley#5 to tackle more of the FTBFS. also, just commented on ceph/ceph-build#1971. |
d9e30e5 to
715988f
Compare
a73c82e to
5ead76e
Compare
46cb6d9 to
6126e78
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Since it's a submodule. Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
gcc-toolset-11-annobin is already installed, but ceph.spec.in adds
"-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" which needs the gcc
plugin too
resolves this failure during the cmake configure step:
-- Check for working CXX compiler: /opt/rh/gcc-toolset-11/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/gcc-toolset-11/root/usr/bin/c++ - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:59 (message):
The C++ compiler
"/opt/rh/gcc-toolset-11/root/usr/bin/c++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-11497-gfae772b8/rpm/el8/BUILD/ceph-17.0.0-11497-gfae772b8/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_09421/fast && /usr/bin/gmake -f CMakeFiles/cmTC_09421.dir/build.make CMakeFiles/cmTC_09421.dir/build
gmake[1]: Entering directory '/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-11497-gfae772b8/rpm/el8/BUILD/ceph-17.0.0-11497-gfae772b8/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_09421.dir/testCXXCompiler.cxx.o
/opt/rh/gcc-toolset-11/root/usr/bin/c++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -o CMakeFiles/cmTC_09421.dir/testCXXCompiler.cxx.o -c /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-11497-gfae772b8/rpm/el8/BUILD/ceph-17.0.0-11497-gfae772b8/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
cc1plus: fatal error: inaccessible plugin file plugin/annobin.so expanded from short plugin name annobin: No such file or directory
compilation terminated.
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
since operator==() is now considered commutative in C++20, we can make it a member function. Signed-off-by: Kefu Chai <[email protected]>
157c06b to
cbddfd2
Compare
older C++ compiler like GCC-9 does not rewrite operator==() so that `a == b` implies `b == a`, in other words: operator==(const LHS& lhs, const RHS& rhs) is equivalent to operator==(const RHS& rhs, const LHS& lhs). see section 1.2 in https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0515r3.pdf Signed-off-by: Kefu Chai <[email protected]>
cbddfd2 to
cfcab5a
Compare
|
jenkins test api |
|
the C++17 compatible bits are extracted into #47367 |
4a44d4d to
b870fb6
Compare
to silence warning if compiled with -std=c++20:
src/osd/PG.h:571:7: warning: implicit capture of ‘this’ via ‘[=]’ is
deprecated in C++20 [-Wdeprecated]
571 | [=](auto &history, auto &stats) {
| ^
Signed-off-by: Kefu Chai <[email protected]>
b870fb6 to
81fdfb4
Compare
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
|
pending on ceph/ceph-build#1971 |
|
@djgalloway seems we are adding
see https://jenkins.ceph.com/job/ceph-pull-requests-arm64/30513/ . where is this repo added? can we avoid doing so at least on the test nodes? |
Yeah that shouldn't be happening. I looked at omani001's build history and it appears the repo was added between https://jenkins.ceph.com/job/ceph-pull-requests-arm64/30282/ But neither of those jobs shows that repo being added... It's been there forever though. I just |
|
jenkins test make check arm64 |
weird .. i am able to read https://chacra.ceph.com/r/libboost/master/892ab89e76b91b505ffbf083f6fb7f2a666d4132/ubuntu/ with my web browser without the security warnings, something like certification expired. |
|
Just needed to reinstall |
| --enable rhel-server-rhscl-8-rpms \ | ||
| --enable rhel-8-server-optional-rpms \ | ||
| --enable rhel-8-server-devtools-rpms |
There was a problem hiding this comment.
to my knowledge, these repos do not exist:
pdonnell@vossi04 ~/ceph$ ./install-deps.sh
Using dnf to install dependencies
Updating Subscription Management repositories.
Last metadata expiration check: 0:03:16 ago on Mon 15 Aug 2022 05:02:19 PM UTC.
Package yum-utils-4.0.21-11.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Updating Subscription Management repositories.
Error: No matching repo to modify: rhel-8-server-devtools-rpms, rhel-server-rhscl-8-rpms, rhel-8-server-optional-rpms.
For rhel-server-rhscl-8-rpms, this should definitely not exist according to
Starting with Red Hat Enterprise Linux 8, the content traditionally consumed via Software Collections is now part of Application Streams. Please see the Application Streams Life Cycle documentation for that release.
However, if I remove these repos from install-deps.sh, I get this:
CMake Error at src/CMakeLists.txt:119 (message):
C++20 support requires a minimum GCC version of 11.
This is on RHEL 8.6 (vossi04.front.sepia.ceph.com). I recently converted this machine from sepia's satellite to the RH CDN, following [1] at David Galloway's suggestion. Am I missing something?
There was a problem hiding this comment.
i accidentally reintroduced those rhel packages as part of a revert commit 65b1a13. i didn't have a way to test against rhel, sorry. i've raised #47609 to remove them
according to ceph.spec.in, rhel should be installing the same gcc-toolset-11 packages that centos 8 does
However, if I remove these repos from install-deps.sh, I get this:
install-deps.sh should be giving you a message like this:
Your GCC is too old. Please run following command to add DTS to your environment:
scl enable gcc-toolset-11 bash
Or add the following line to the end of ~/.bashrc and run "source ~/.bashrc" to add it permanently:
source scl_source enable gcc-toolset-11
do those steps work under rhel?
There was a problem hiding this comment.
i accidentally reintroduced those rhel packages as part of a revert commit 65b1a13. i didn't have a way to test against rhel, sorry. i've raised #47609 to remove them
according to ceph.spec.in, rhel should be installing the same
gcc-toolset-11packages that centos 8 doesHowever, if I remove these repos from install-deps.sh, I get this:
install-deps.sh should be giving you a message like this:
Your GCC is too old. Please run following command to add DTS to your environment:
scl enable gcc-toolset-11 bash
Or add the following line to the end of ~/.bashrc and run "source ~/.bashrc" to add it permanently:
source scl_source enable gcc-toolset-11do those steps work under rhel?
I did not get that message. Adding scl enable gcc-toolset-11 bash did the trick though!
enable c++20 in cmake, use ubuntu's toolchain ppa to get gcc11 on focal, and fix lots of c++20 compilation issues
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox