The ERR macro is defined on illumos-based systems in the regset.h header included by the Boost.Test framework, which causes a compilation error:
- on OmniOS:
[484/792] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/main.cpp.o
FAILED: [code=1] src/test/CMakeFiles/test_bitcoin.dir/main.cpp.o
/usr/bin/g++ -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_NO_CXX98_FUNCTION_BASE -I/home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/build/src -I/home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/src -I/home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/src/univalue/include -I/home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/src/minisketch/include -I/home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/src/secp256k1/include -isystem /usr/gnu/include -pthread -O2 -g -std=c++20 -fno-extended-identifiers -fmacro-prefix-map=/home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/src=. -fstack-reuse=none -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wformat -Wformat-security -Wvla -Wredundant-decls -Wdate-time -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wbidi-chars=any -Wundef -Wno-unused-parameter -Werror -MD -MT src/test/CMakeFiles/test_bitcoin.dir/main.cpp.o -MF src/test/CMakeFiles/test_bitcoin.dir/main.cpp.o.d -o src/test/CMakeFiles/test_bitcoin.dir/main.cpp.o -c /home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/src/test/main.cpp
In file included from /usr/include/sys/procfs_isa.h:39,
from /usr/include/sys/procfs.h:66,
from /usr/include/procfs.h:45,
from /usr/local/include/boost/test/impl/debug.ipp:85,
from /usr/local/include/boost/test/included/unit_test.hpp:20,
from /home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/src/test/main.cpp:10:
/home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/src/util/sock.h:162:28: error: expected unqualified-id before numeric constant
162 | static constexpr Event ERR = 0b100;
| ^~~
- on OpenIndiana:
[44](https://github.com/hebasto/bitcoin-core-nightly/actions/runs/28006958536/job/82891036242#step:7:545)
[ 59%] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/main.cpp.o
[ 59%] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/addrman_tests.cpp.o
In file included from /usr/include/sys/procfs_isa.h:39,
from /usr/include/sys/procfs.h:66,
from /usr/include/procfs.h:45,
from /usr/include/boost/test/impl/debug.ipp:85,
from /usr/include/boost/test/included/unit_test.hpp:20,
from /home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/src/test/main.cpp:10:
/home/runner/work/bitcoin-core-nightly/bitcoin-core-nightly/src/util/sock.h:162:28: error: expected unqualified-id before numeric constant
162 | static constexpr Event ERR = 0b100;
| ^~~