ci: Roll NetBSD releases to 11.0, drop 9.4 - #321
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste |
3afe530 to
052dd68
Compare
|
https://github.com/bitcoin-core/libmultiprocess/actions/runs/30274461317/job/90004862019?pr=321: Related (?): bitcoin/bitcoin#35823 |
|
Can you share the stacktrace? |
052dd68 to
d3af2f8
Compare
|
d3af2f8 to
d5aeee9
Compare
|
Apparently, until this is fixed upstream, GCC <14.x requires On NetBSD 11.0, the default compiler is GCC 12.5, which means the |
d5aeee9 to
278af3d
Compare
| capnproto-cppflags: 'CPPFLAGS="-DKJ_NO_EXCEPTIONS=0"' | ||
| - release: '10.1' | ||
| # Hardcode GCC 14, since default GCC version is older | ||
| # and may not be compatible with libmultiprocess. |
There was a problem hiding this comment.
unrelated, as this is just move-only, but this could be explained a bit better.
I presume this is just about the c++20 features and has nothing to do with netbsd? I presume netbsd 10 ships with gcc 10?
In that case, I wonder if there should be a CI task to confirm the C++20 used here compiles with gcc 11. edit: done in #330
Also, if true, maybe the comment can instead say:
Force later GCC version, because on NetBSD 10 the default GCC 10 is too old to compile the C++ code in this repo.
There was a problem hiding this comment.
I presume netbsd 10 ships with gcc 10?
Yes, It's 10.5.0.
I presume this is just about the c++20 features and has nothing to do with netbsd?
I've just built on NetBSD 10.1 using the default GCC 10.5.0 compiler.
UPDATE:
$ env CXXFLAGS="-Wpedantic" cmake -B build -G Ninja
-- The CXX compiler identification is GNU 10.5.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Performing Test HAVE_PTHREAD_GETNAME_NP
-- Performing Test HAVE_PTHREAD_GETNAME_NP - Success
-- Performing Test HAVE_PTHREAD_THREADID_NP
-- Performing Test HAVE_PTHREAD_THREADID_NP - Failed
-- Performing Test HAVE_PTHREAD_GETTHREADID_NP
-- Performing Test HAVE_PTHREAD_GETTHREADID_NP - Failed
-- Configuring done (0.9s)
-- Generating done (0.0s)
-- Build files have been written to: /home/hebasto/dev/libmultiprocess/build
$ cmake --build build
[6/7] Building CXX object CMakeFiles/multiprocess.dir/src/mp/proxy.cpp.o
In file included from /home/hebasto/dev/libmultiprocess/src/mp/proxy.cpp:8:
/home/hebasto/dev/libmultiprocess/include/mp/proxy-types.h:630:2: warning: extra ';' [-Wpedantic]
630 | };
| ^
[7/7] Linking CXX static library libmultiprocess.a278af3d to
cbe1f1b
Compare
NetBSD 9.x will become unsupported once release 11.0 is released.
Also document a workaround for a bug in Cap'n Proto affecting compilers prior to GCC 14.
cbe1f1b to
a9e70db
Compare
|
Thank you for your feedback. I reworked this PR and switched all NetBSD jobs to the system's default compilers. |
|
lgtm ACK a9e70db |
No description provided.