build: cross-compiling for x86_64-apple-darwin from arm64-apple-darwin broken #32208

issue fanquake openend this issue on April 3, 2025
  1. fanquake commented at 2:09 am on April 3, 2025: member

    Was broken in #30997 (comment):

      0make -C depends -j13 HOST=x86_64-apple-darwin
      1gmake: Entering directory '/Users/bitcoin/depends'
      2Extracting native_qt...
      3/Users/bitcoin/depends/sources/qtbase-everywhere-src-6.7.3.tar.xz: OK
      4/Users/bitcoin/depends/sources/qttranslations-everywhere-src-6.7.3.tar.xz: OK
      5/Users/bitcoin/depends/sources/qttools-everywhere-src-6.7.3.tar.xz: OK
      6/Users/bitcoin/depends/sources/CMakeLists.txt-6.7.3: OK
      7/Users/bitcoin/depends/sources/ECMOptionalAddSubdirectory.cmake-6.7.3: OK
      8/Users/bitcoin/depends/sources/QtTopLevelHelpers.cmake-6.7.3: OK
      9Preprocessing native_qt...
     10patching file 'qtbase/configure'
     11patching file 'qtbase/bin/qt-cmake.in'
     12patching file 'qtbase/bin/qt-configure-module.in'
     13patching file 'qtbase/src/tools/moc/main.cpp'
     14patching file 'qtbase/cmake/QtBaseGlobalTargets.cmake'
     15patching file 'qtbase/cmake/QtBaseGlobalTargets.cmake'
     16patching file 'qtbase/src/CMakeLists.txt'
     17patching file 'qtbase/src/tools/CMakeLists.txt'
     18patching file 'qtbase/src/tools/rcc/rcc.cpp'
     19patching file 'qttools/configure.cmake'
     20patching file 'qttools/src/linguist/CMakeLists.txt'
     21Configuring native_qt...
     22opt: pcre val: qt
     23opt: zlib val: qt
     24'/opt/homebrew/bin/cmake' '-DCMAKE_EXE_LINKER_FLAGS=' '-DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE' '-DBUILD_SHARED_LIBS=OFF' '-DCMAKE_INSTALL_PREFIX=/Users/bitcoin/depends/x86_64-apple-darwin' '-DCMAKE_BUILD_TYPE=Release' '-DINPUT_pkg_config=no' '-DINPUT_reduce_relocations=no' '-DINPUT_use_gold_linker_alias=no' '-DINPUT_concurrent=no' '-DINPUT_network=no' '-DINPUT_printsupport=no' '-DINPUT_sql=no' '-DINPUT_testlib=no' '-DINPUT_xml=no' '-DINPUT_gui=no' '-DINPUT_widgets=no' '-DINPUT_glib=no' '-DINPUT_icu=no' '-DINPUT_libudev=no' '-DINPUT_openssl=no' '-DINPUT_zstd=no' '-DINPUT_pcre=qt' '-DINPUT_system_zlib=no' '-DINPUT_backtrace=no' '-DINPUT_permissions=no' '-DINPUT_process=no' '-DINPUT_settings=no' '-DINPUT_androiddeployqt=no' '-DINPUT_macdeployqt=no' '-DINPUT_windeployqt=no' '-DINPUT_qmake=no' '-DINPUT_linguist=yes' '-DINPUT_assistant=no' '-DINPUT_clang=no' '-DINPUT_clangcpp=no' '-DINPUT_designer=no' '-DINPUT_pixeltool=no' '-DINPUT_qdoc=no' '-DINPUT_qtattributionsscanner=no' '-DINPUT_qtdiag=no' '-DINPUT_qtplugininfo=no' '-G' 'Ninja' '/Users/bitcoin/depends/work/build/x86_64-apple-darwin/native_qt/6.7.3-17d11178efa'
     25-- The CXX compiler identification is AppleClang 17.0.0.17000013
     26-- The C compiler identification is AppleClang 17.0.0.17000013
     27-- The ASM compiler identification is AppleClang
     28-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/clang
     29-- Detecting CXX compiler ABI info
     30-- Detecting CXX compiler ABI info - done
     31-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++ - skipped
     32-- Detecting CXX compile features
     33-- Detecting CXX compile features - done
     34-- Detecting C compiler ABI info
     35-- Detecting C compiler ABI info - done
     36-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/clang - skipped
     37-- Detecting C compile features
     38-- Detecting C compile features - done
     39-- Checking dependencies of submodule 'qtbase'
     40-- Checking dependencies of submodule 'qtactiveqt'
     41-- Checking dependencies of submodule 'qtdeclarative'
     42-- Checking dependencies of submodule 'qttools'
     43-- Skipping optional dependency 'qtactiveqt' of 'qttools', because qtactiveqt's CMakeLists.txt couldn't be found.
     44-- Skipping optional dependency 'qtdeclarative' of 'qttools', because qtdeclarative's CMakeLists.txt couldn't be found.
     45-- Checking dependencies of submodule 'qttranslations'
     46-- Configuring submodule 'qtbase'
     47-- [QtBase] CMAKE_BUILD_TYPE was already explicitly set to: 'Release'
     48CMake Warning at qtbase/cmake/QtPublicAppleHelpers.cmake:920 (message):
     49  Qt requires at least version 14 of Xcode, you're building against version .
     50  Please upgrade.  You can turn this warning into an error by configuring
     51  with -DQT_FORCE_FATAL_APPLE_SDK_AND_XCODE_CHECK=ON.
     52Call Stack (most recent call first):
     53  qtbase/cmake/QtBuildHelpers.cmake:443 (_qt_internal_check_apple_sdk_and_xcode_versions)
     54  qtbase/cmake/QtBuild.cmake:4 (qt_internal_setup_build_and_global_variables)
     55  qtbase/cmake/QtSetup.cmake:6 (include)
     56  qtbase/cmake/QtBuildRepoHelpers.cmake:21 (include)
     57  qtbase/cmake/QtBuildRepoHelpers.cmake:179 (qt_build_internals_set_up_private_api)
     58  qtbase/cmake/QtBaseHelpers.cmake:154 (qt_build_repo_begin)
     59  qtbase/CMakeLists.txt:32 (qt_internal_qtbase_build_repo)
     60
     61
     62CMake Warning at qtbase/cmake/QtPublicAppleHelpers.cmake:934 (message):
     63  Qt has only been tested with version 14 of the platform SDK, you're using
     64  15.4.  This is an unsupported configuration.  You may experience build
     65  issues, and by using the 15.4 SDK you are opting in to new features that Qt
     66  has not been prepared for.  Please downgrade the SDK you use to build your
     67  app to version 14, or configure with -DQT_NO_APPLE_SDK_MAX_VERSION_CHECK=ON
     68  to silence this warning.
     69Call Stack (most recent call first):
     70  qtbase/cmake/QtBuildHelpers.cmake:443 (_qt_internal_check_apple_sdk_and_xcode_versions)
     71  qtbase/cmake/QtBuild.cmake:4 (qt_internal_setup_build_and_global_variables)
     72  qtbase/cmake/QtSetup.cmake:6 (include)
     73  qtbase/cmake/QtBuildRepoHelpers.cmake:21 (include)
     74  qtbase/cmake/QtBuildRepoHelpers.cmake:179 (qt_build_internals_set_up_private_api)
     75  qtbase/cmake/QtBaseHelpers.cmake:154 (qt_build_repo_begin)
     76  qtbase/CMakeLists.txt:32 (qt_internal_qtbase_build_repo)
     77
     78
     79CMake Error at /opt/homebrew/share/cmake/Modules/CMakeTestOBJCCompiler.cmake:64 (message):
     80  The Objective-C compiler
     81
     82    "/Library/Developer/CommandLineTools/usr/bin/clang"
     83
     84  is not able to compile a simple test program.
     85
     86  It fails with the following output:
     87
     88    Change Dir: '/Users/bitcoin/depends/work/build/x86_64-apple-darwin/native_qt/6.7.3-17d11178efa/CMakeFiles/CMakeScratch/TryCompile-e5ZtEf'
     89    
     90    Run Build Command(s): /opt/homebrew/bin/ninja -v cmTC_2d8d0
     91    [1/2] /Library/Developer/CommandLineTools/usr/bin/clang   -x objective-c -arch arm64 -mmacosx-version-min=11.0 -fPIE -MD -MT CMakeFiles/cmTC_2d8d0.dir/testObjCCompiler.m.o -MF CMakeFiles/cmTC_2d8d0.dir/testObjCCompiler.m.o.d -o CMakeFiles/cmTC_2d8d0.dir/testObjCCompiler.m.o -c /Users/bitcoin/depends/work/build/x86_64-apple-darwin/native_qt/6.7.3-17d11178efa/CMakeFiles/CMakeScratch/TryCompile-e5ZtEf/testObjCCompiler.m
     92    [2/2] : && /Library/Developer/CommandLineTools/usr/bin/clang -arch arm64 -mmacosx-version-min=11.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/cmTC_2d8d0.dir/testObjCCompiler.m.o -o cmTC_2d8d0   && :
     93    FAILED: cmTC_2d8d0 
     94    : && /Library/Developer/CommandLineTools/usr/bin/clang -arch arm64 -mmacosx-version-min=11.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/cmTC_2d8d0.dir/testObjCCompiler.m.o -o cmTC_2d8d0   && :
     95    ld: library 'System' not found
     96    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     97    ninja: build stopped: subcommand failed.
     98    
     99  CMake will not be able to correctly generate this project.
    100Call Stack (most recent call first):
    101  qtbase/cmake/QtBuildRepoHelpers.cmake:95 (enable_language)
    102  qtbase/cmake/QtBuildRepoHelpers.cmake:197 (qt_enable_cmake_languages)
    103  qtbase/cmake/QtBaseHelpers.cmake:154 (qt_build_repo_begin)
    104  qtbase/CMakeLists.txt:32 (qt_internal_qtbase_build_repo)
    105
    106-- Configuring incomplete, errors occurred!
    107CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:1077 (message):
    108  CMake exited with code 1.
    
  2. fanquake added this to the milestone 30.0 on Apr 3, 2025
  3. hebasto added the label macOS on Apr 3, 2025
  4. hebasto added the label Build system on Apr 3, 2025


fanquake

Labels
macOS Build system

Milestone
30.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-04-16 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me