call to consteval function 'util::ConstevalHexDigit' is not a constant expression
i have bitcoin repo from tag v28.0, everytime i run cmake --build build -j$(sysctl -n hw.ncpu), i keep getting the following error
bitcoin/src/uint256.h:133:19: error: call to consteval function 'util::ConstevalHexDigit' is not a constant expression
am trying to setup bitcoin as part of assessment for chaincode lab BOSS program.
Top Answer/Comment:
The issue is the with the clang compiler. Use gcc as the compiler to build the code.
Install gcc from homebrew and then build the code with the following command specifying the path of the compiler to be used.
cmake -B build -DCMAKE_C_COMPILER=/usr/local/opt/homebrew/bin/gcc-14 -DCMAKE_CXX_COMPILER=/usr/local/opt/homebrew/bin/g++-14 \
-DBUILD_GUI=OFF -DWITH_BDB=OFF -DBUILD_BENCH=OFF -DBUILD_FOR_FUZZING=OFF -DBUILD_KERNEL_LIB=OFF \
-DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_TX=OFF -DBUILD_UTIL=OFF -DBUILD_WALLET_TOOL=OFF
상단 광고의 [X] 버튼을 누르면 내용이 보입니다