Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
Running the command make HOST=x86_64-apple-darwin -C depends
on Bitcoin Core 28.x no longer compiles the dependencies as expected. It fails.
Expected behaviour
The command make HOST=x86_64-apple-darwin -C depends
should successfully compile all required dependencies without errors, as it did in previous versions of Bitcoin Core.
Steps to reproduce
make HOST=x86_64-apple-darwin -C depends -j32
Relevant log output
0root@localhost:~/.build/bitcoin-untouched# make HOST=x86_64-apple-darwin -C depends -j32
1make: Entering directory '/root/.build/bitcoin-untouched/depends'
2Fetching boost_1_81_0.tar.gz from https://archives.boost.io/release/1.81.0/source/
3 % Total % Received % Xferd Average Speed Time Time Time Current
4 Dload Upload Total Spent Left Speed
5100 133M 100 133M 0 0 1221k 0 0:01:52 0:01:52 --:--:-- 1183k
6/root/.build/bitcoin-untouched/depends/work/download/boost-1.81.0/boost_1_81_0.tar.gz.temp: OK
7Extracting boost...
8/root/.build/bitcoin-untouched/depends/sources/boost_1_81_0.tar.gz: OK
9Preprocessing boost...
10Configuring boost...
11Building boost...
12Staging boost...
13Postprocessing boost...
14Caching boost...
15Fetching libevent-2.1.12-stable.tar.gz from https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/
16 % Total % Received % Xferd Average Speed Time Time Time Current
17 Dload Upload Total Spent Left Speed
18 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
19100 1075k 100 1075k 0 0 389k 0 0:00:02 0:00:02 --:--:-- 885k
20/root/.build/bitcoin-untouched/depends/work/download/libevent-2.1.12-stable/libevent-2.1.12-stable.tar.gz.temp: OK
21Extracting libevent...
22/root/.build/bitcoin-untouched/depends/sources/libevent-2.1.12-stable.tar.gz: OK
23Preprocessing libevent...
24patching file CMakeLists.txt
25patching file cmake/AddEventLibrary.cmake
26patching file CMakeLists.txt
27Configuring libevent...
28-- The C compiler identification is Clang 14.0.6
29-- Detecting C compiler ABI info
30-- Detecting C compiler ABI info - failed
31-- Check for working C compiler: /usr/bin/clang
32-- Check for working C compiler: /usr/bin/clang - broken
33CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCCompiler.cmake:70 (message):
34 The C compiler
35
36 "/usr/bin/clang"
37
38 is not able to compile a simple test program.
39
40 It fails with the following output:
41
42 Change Dir: /root/.build/bitcoin-untouched/depends/work/build/x86_64-apple-darwin/libevent/2.1.12-stable-66fa9a79555/build/CMakeFiles/CMakeScratch/TryCompile-Y3lnvg
43
44 Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_bccc1/fast && gmake[1]: Entering directory '/root/.build/bitcoin-untouched/depends/work/build/x86_64-apple-darwin/libevent/2.1.12-stable-66fa9a79555/build/CMakeFiles/CMakeScratch/TryCompile-Y3lnvg'
45 /usr/bin/gmake -f CMakeFiles/cmTC_bccc1.dir/build.make CMakeFiles/cmTC_bccc1.dir/build
46 gmake[2]: Entering directory '/root/.build/bitcoin-untouched/depends/work/build/x86_64-apple-darwin/libevent/2.1.12-stable-66fa9a79555/build/CMakeFiles/CMakeScratch/TryCompile-Y3lnvg'
47 Building C object CMakeFiles/cmTC_bccc1.dir/testCCompiler.c.o
48 /usr/bin/clang --target=x86_64-apple-darwin -isysroot/root/.build/bitcoin-untouched/depends/SDKs/Xcode-15.0-15A240d-extracted-SDK-with-libcxx-headers -nostdlibinc -iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks --target=x86_64-apple-darwin -I/usr/local/python-3.12.6/include -I/usr/local/node-v22.9.0/include -I/usr/local/python-3.12.6/include -I/usr/local/node-v22.9.0/include -I/root/.build/bitcoin-untouched/depends/x86_64-apple-darwin/include -D_GNU_SOURCE -D_FORTIFY_SOURCE=3 -I/usr/local/python-3.12.6/include -I/usr/local/node-v22.9.0/include -I/usr/local/python-3.12.6/include -I/usr/local/node-v22.9.0/include -fPIE -MD -MT CMakeFiles/cmTC_bccc1.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_bccc1.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_bccc1.dir/testCCompiler.c.o -c /root/.build/bitcoin-untouched/depends/work/build/x86_64-apple-darwin/libevent/2.1.12-stable-66fa9a79555/build/CMakeFiles/CMakeScratch/TryCompile-Y3lnvg/testCCompiler.c
49 Linking C executable cmTC_bccc1
50 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_bccc1.dir/link.txt --verbose=1
51 /usr/bin/clang --target=x86_64-apple-darwin -isysroot/root/.build/bitcoin-untouched/depends/SDKs/Xcode-15.0-15A240d-extracted-SDK-with-libcxx-headers -nostdlibinc -iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks --target=x86_64-apple-darwin -I/usr/local/python-3.12.6/include -I/usr/local/node-v22.9.0/include -I/usr/local/python-3.12.6/include -I/usr/local/node-v22.9.0/include -I/root/.build/bitcoin-untouched/depends/x86_64-apple-darwin/include -D_GNU_SOURCE -D_FORTIFY_SOURCE=3 -I/usr/local/python-3.12.6/include -I/usr/local/node-v22.9.0/include -I/usr/local/python-3.12.6/include -I/usr/local/node-v22.9.0/include -Wl,-headerpad_max_install_names -L/usr/local/python-3.12.6/lib -L/usr/local/node-v22.9.0/lib -L/usr/local/python-3.12.6/lib -L/usr/local/node-v22.9.0/lib -L/root/.build/bitcoin-untouched/depends/x86_64-apple-darwin/lib CMakeFiles/cmTC_bccc1.dir/testCCompiler.c.o -o cmTC_bccc1
52 clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument]
53 /usr/bin/ld: unrecognised emulation mode: acosx_version_min
54 Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386pep i386pe
55 clang: error: linker command failed with exit code 1 (use -v to see invocation)
56 gmake[2]: *** [CMakeFiles/cmTC_bccc1.dir/build.make:100: cmTC_bccc1] Error 1
57 gmake[2]: Leaving directory '/root/.build/bitcoin-untouched/depends/work/build/x86_64-apple-darwin/libevent/2.1.12-stable-66fa9a79555/build/CMakeFiles/CMakeScratch/TryCompile-Y3lnvg'
58 gmake[1]: *** [Makefile:127: cmTC_bccc1/fast] Error 2
59 gmake[1]: Leaving directory '/root/.build/bitcoin-untouched/depends/work/build/x86_64-apple-darwin/libevent/2.1.12-stable-66fa9a79555/build/CMakeFiles/CMakeScratch/TryCompile-Y3lnvg'
60
61
62
63
64
65 CMake will not be able to correctly generate this project.
66Call Stack (most recent call first):
67 CMakeLists.txt:47 (project)
68
69
70-- Configuring incomplete, errors occurred!
71See also "/root/.build/bitcoin-untouched/depends/work/build/x86_64-apple-darwin/libevent/2.1.12-stable-66fa9a79555/build/CMakeFiles/CMakeOutput.log".
72See also "/root/.build/bitcoin-untouched/depends/work/build/x86_64-apple-darwin/libevent/2.1.12-stable-66fa9a79555/build/CMakeFiles/CMakeError.log".
73make: *** [funcs.mk:302: /root/.build/bitcoin-untouched/depends/x86_64-apple-darwin/.libevent_stamp_configured] Error 1
74make: Leaving directory '/root/.build/bitcoin-untouched/depends'
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
28.x
Operating system and version
Debian 12.7.0
Machine specifications
No response