The native_libmultiprocess
package fails to build on OpenBSD starting with #32345:
0$ uname -a
1OpenBSD openbsd.home 7.7 GENERIC.MP#625 amd64
2$ gmake -j 1 -C depends/ MULTIPROCESS=1 native_libmultiprocess
3gmake: Entering directory '/home/hebasto/dev/bitcoin/depends'
4Extracting native_libmultiprocess...
5(SHA256) /home/hebasto/dev/bitcoin/depends/sources/src-ipc-libmultiprocess.tar: OK
6Preprocessing native_libmultiprocess...
7Configuring native_libmultiprocess...
8-- The CXX compiler identification is Clang 16.0.6
9-- Detecting CXX compiler ABI info
10-- Detecting CXX compiler ABI info - done
11-- Check for working CXX compiler: /usr/bin/clang++ - skipped
12-- Detecting CXX compile features
13-- Detecting CXX compile features - done
14-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
15-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
16-- Found Threads: TRUE
17-- Performing Test HAVE_PTHREAD_GETNAME_NP
18-- Performing Test HAVE_PTHREAD_GETNAME_NP - Failed
19-- Performing Test HAVE_PTHREAD_THREADID_NP
20-- Performing Test HAVE_PTHREAD_THREADID_NP - Failed
21-- Performing Test HAVE_PTHREAD_GETTHREADID_NP
22-- Performing Test HAVE_PTHREAD_GETTHREADID_NP - Failed
23-- Configuring done (1.6s)
24-- Generating done (0.3s)
25CMake Warning:
26 Manually-specified variables were not used by the project:
27
28 CMAKE_EXPORT_NO_PACKAGE_REGISTRY
29
30
31-- Build files have been written to: /home/hebasto/dev/bitcoin/depends/work/build/x86_64-unknown-openbsd7.7/native_libmultiprocess/-874c5f6e479
32Building native_libmultiprocess...
33gmake[1]: Entering directory '/home/hebasto/dev/bitcoin/depends/work/build/x86_64-unknown-openbsd7.7/native_libmultiprocess/-874c5f6e479'
34[ 14%] Building CXX object CMakeFiles/mputil.dir/src/mp/util.cpp.o
35[ 14%] Built target mputil
36[ 28%] Compiling Cap'n Proto schema include/mp/proxy.capnp
37[ 42%] Building CXX object CMakeFiles/multiprocess.dir/include/mp/proxy.capnp.c++.o
38[ 57%] Building CXX object CMakeFiles/multiprocess.dir/src/mp/proxy.cpp.o
39[ 71%] Linking CXX static library libmultiprocess.a
40[ 71%] Built target multiprocess
41[ 85%] Building CXX object CMakeFiles/mpgen.dir/src/mp/gen.cpp.o
42[100%] Linking CXX executable mpgen
43ld: warning: string.c++(string.c++.o:(kj::_::(anonymous namespace)::FloatToBuffer(float, char*)) in archive /home/hebasto/dev/bitcoin/depends/x86_64-unknown-openbsd7.7/native/lib/libkj.a): warning: strcpy() is almost always misused, please use strlcpy()
44ld: warning: parser.c++(parser.c++.o:(capnp::compiler::CapnpParser::CapnpParser(capnp::Orphanage, capnp::compiler::ErrorReporter&)::$_39::operator()(capnp::compiler::(anonymous namespace)::Located<capnp::Text::Reader>&&, kj::Maybe<capnp::Orphan<capnp::compiler::LocatedInteger>>&&, capnp::compiler::(anonymous namespace)::Located<kj::Array<kj::Maybe<capnp::compiler::(anonymous namespace)::Located<capnp::Text::Reader>>>>&&, capnp::Orphan<capnp::compiler::Expression>&&, kj::Array<capnp::Orphan<capnp::compiler::Declaration::AnnotationApplication>>&&) const) in archive /home/hebasto/dev/bitcoin/depends/x86_64-unknown-openbsd7.7/native/lib/libcapnpc.a): warning: strcat() is almost always misused, please use strlcat()
45ld: error: undefined hidden symbol: std::__1::basic_ostream<char, std::__1::char_traits<char>>& std::__1::operator<<[abi:v160006]<char, std::__1::char_traits<char>>(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, std::__1::__thread_id)
46>>> referenced by util.cpp
47>>> CMakeFiles/mputil.dir/src/mp/util.cpp.o:(mp::ThreadName(char const*))
48clang++: error: linker command failed with exit code 1 (use -v to see invocation)
49gmake[3]: *** [CMakeFiles/mpgen.dir/build.make:110: mpgen] Error 1
50gmake[2]: *** [CMakeFiles/Makefile2:1138: CMakeFiles/mpgen.dir/all] Error 2
51gmake[1]: *** [Makefile:146: all] Error 2
52gmake[1]: Leaving directory '/home/hebasto/dev/bitcoin/depends/work/build/x86_64-unknown-openbsd7.7/native_libmultiprocess/-874c5f6e479'
53gmake: *** [funcs.mk:345: /home/hebasto/dev/bitcoin/depends/work/build/x86_64-unknown-openbsd7.7/native_libmultiprocess/-874c5f6e479/./.stamp_built] Error 2
54gmake: Leaving directory '/home/hebasto/dev/bitcoin/depends'