Current behaviour
The current depends instructions for OpenBSD do not mention gcc
, which is required to build libevent.
A simple pkg_add gcc
doesn’t cut it either, because that only installs egcc
: https://unix.stackexchange.com/questions/554752/no-gcc-executable-after-pkg-add-gcc-on-openbsd
Expected behaviour
Explain what the user needs to do to build depends (or change depends).
A simple symlink seems to do the trick, but I’m not if it’s appropriate:
0ln -s /usr/local/bin/egcc /usr/local/bin/gcc
Steps to reproduce
Fresh OpenBSD installation. Clone repo on master.
0gmake -C depends NO_QT=1 NO_QR=1 NO_ZMQ=1 NO_USDT=1
1
2gmake: Entering directory '/home/sjors/src/bitcoin/depends'
3Configuring libevent...
4CMake Deprecation Warning at CMakeLists.txt:22 (cmake_minimum_required):
5 Compatibility with CMake < 3.10 will be removed from a future version of
6 CMake.
7
8 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
9 to tell CMake that the project requires at least <min> but has been updated
10 to work with policies introduced by <max> or earlier.
11
12
13CMake Error at /usr/local/share/cmake/Modules/CMakeDetermineCCompiler.cmake:49 (message):
14 Could not find compiler set in environment variable CC:
15
16 gcc.
17Call Stack (most recent call first):
18 CMakeLists.txt:47 (project)
19
20
21CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
22-- Configuring incomplete, errors occurred!
23gmake: *** [funcs.mk:343: /home/sjors/src/bitcoin/depends/aarch64-unknown-openbsd7.7/.libevent_stamp_configured] Error 1
24gmake: Leaving directory '/home/sjors/src/bitcoin/depends'
Relevant log output
No response
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master
Operating system and version
OpenBSD 7.7
Machine specifications
VM inside UTM, host machine is M4 macOS 15.5