Skip to content

[arpack-ng] build failure on x64-osx #48929

@MackBambu

Description

@MackBambu

Operating system

macOS 26.0

Compiler

Clang

Steps to reproduce the behavior

`vcpkg install arpack-ng:x64-osx`


Fortran does not appear to support cross-compilation, so I tried building under Rosetta 2. I installed the x86_64 version of Homebrew and Fortran, but I am still getting the same error.

Failure logs

`

Computing installation plan...
The following packages will be built and installed:
arpack-ng:x64-osx@3.9.1#1

  • blas:x64-osx@2023-04-14#5
  • lapack:x64-osx@2023-06-10#3
  • vcpkg-cmake:arm64-osx@2024-04-23
  • vcpkg-cmake-config:arm64-osx@2024-05-23
    Additional packages (*) will be modified to complete this operation.
    Detecting compiler hash for triplet arm64-osx...
    Compiler found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
    Detecting compiler hash for triplet x64-osx...
    Compiler found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
    Restored 0 package(s) from /Users/mack-test/.cache/vcpkg/archives in 739 us. Use --debug to see more details.
    Installing 1/5 vcpkg-cmake:arm64-osx@2024-04-23...
    Building vcpkg-cmake:arm64-osx@2024-04-23...
    -- Installing: /Users/mack-test/project/vcpkg/packages/vcpkg-cmake_arm64-osx/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
    -- Installing: /Users/mack-test/project/vcpkg/packages/vcpkg-cmake_arm64-osx/share/vcpkg-cmake/vcpkg_cmake_build.cmake
    -- Installing: /Users/mack-test/project/vcpkg/packages/vcpkg-cmake_arm64-osx/share/vcpkg-cmake/vcpkg_cmake_install.cmake
    -- Installing: /Users/mack-test/project/vcpkg/packages/vcpkg-cmake_arm64-osx/share/vcpkg-cmake/vcpkg-port-config.cmake
    -- Installing: /Users/mack-test/project/vcpkg/packages/vcpkg-cmake_arm64-osx/share/vcpkg-cmake/copyright
    -- Performing post-build validation
    Starting submission of vcpkg-cmake:arm64-osx@2024-04-23 to 1 binary cache(s) in the background
    Elapsed time to handle vcpkg-cmake:arm64-osx: 27.6 ms
    vcpkg-cmake:arm64-osx package ABI: 3da18b9c78d5a0eea0b2620bf597871f2864b2d18f0ad150fccc257d457d4594
    Installing 2/5 blas:x64-osx@2023-04-14#5...
    Building blas:x64-osx@2023-04-14#5...
    /Users/mack-test/project/vcpkg/triplets/community/x64-osx.cmake: info: loaded community triplet from here. Community triplets are not built in the curated registry and are thus less likely to succeed.
    -- Skipping post-build validation due to VCPKG_POLICY_EMPTY_PACKAGE
    Starting submission of blas:x64-osx@2023-04-14#5 to 1 binary cache(s) in the background
    Elapsed time to handle blas:x64-osx: 24.5 ms
    blas:x64-osx package ABI: a4d20f58b85ee64c960aee79f23a5ba693907747fe13401736b0c027234342ec
    Completed submission of vcpkg-cmake:arm64-osx@2024-04-23 to 1 binary cache(s) in 8.45 ms
    Installing 3/5 lapack:x64-osx@2023-06-10#3...
    Building lapack:x64-osx@2023-06-10#3...
    /Users/mack-test/project/vcpkg/triplets/community/x64-osx.cmake: info: loaded community triplet from here. Community triplets are not built in the curated registry and are thus less likely to succeed.
    -- Skipping post-build validation due to VCPKG_POLICY_EMPTY_PACKAGE
    Starting submission of lapack:x64-osx@2023-06-10#3 to 1 binary cache(s) in the background
    Elapsed time to handle lapack:x64-osx: 25.2 ms
    lapack:x64-osx package ABI: 7285a7c60a782883686dce31170e803c8e50d375a13a5abbaef75cd7ed44b0d5
    Completed submission of blas:x64-osx@2023-04-14#5 to 1 binary cache(s) in 6.64 ms
    Installing 4/5 vcpkg-cmake-config:arm64-osx@2024-05-23...
    Building vcpkg-cmake-config:arm64-osx@2024-05-23...
    -- Installing: /Users/mack-test/project/vcpkg/packages/vcpkg-cmake-config_arm64-osx/share/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake
    -- Installing: /Users/mack-test/project/vcpkg/packages/vcpkg-cmake-config_arm64-osx/share/vcpkg-cmake-config/vcpkg-port-config.cmake
    -- Installing: /Users/mack-test/project/vcpkg/packages/vcpkg-cmake-config_arm64-osx/share/vcpkg-cmake-config/copyright
    -- Skipping post-build validation due to VCPKG_POLICY_EMPTY_PACKAGE
    Starting submission of vcpkg-cmake-config:arm64-osx@2024-05-23 to 1 binary cache(s) in the background
    Elapsed time to handle vcpkg-cmake-config:arm64-osx: 23.7 ms
    vcpkg-cmake-config:arm64-osx package ABI: ba7161ca11845402e41397cabc33bc340834b3757bd6f5e903354816eca9582b
    Completed submission of lapack:x64-osx@2023-06-10#3 to 1 binary cache(s) in 6.43 ms
    Installing 5/5 arpack-ng:x64-osx@3.9.1#1...
    Building arpack-ng:x64-osx@3.9.1#1...
    /Users/mack-test/project/vcpkg/triplets/community/x64-osx.cmake: info: loaded community triplet from here. Community triplets are not built in the curated registry and are thus less likely to succeed.
    -- The Fortran compiler identification is GNU 15.2.0
    -- Using cached opencollab-arpack-ng-3.9.1.tar.gz
    -- Cleaning sources at /Users/mack-test/project/vcpkg/buildtrees/arpack-ng/src/3.9.1-1cea2efcbc.clean. Use --editable to skip cleaning for the packages you specify.
    -- Extracting source /Users/mack-test/project/vcpkg/downloads/opencollab-arpack-ng-3.9.1.tar.gz
    -- Using source at /Users/mack-test/project/vcpkg/buildtrees/arpack-ng/src/3.9.1-1cea2efcbc.clean
    -- Configuring x64-osx
    CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /Users/mack-test/project/vcpkg/downloads/tools/ninja/1.13.1-osx/ninja -v
    Working Directory: /Users/mack-test/project/vcpkg/buildtrees/arpack-ng/x64-osx-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
    /Users/mack-test/project/vcpkg/buildtrees/arpack-ng/config-x64-osx-dbg-CMakeCache.txt.log
    /Users/mack-test/project/vcpkg/buildtrees/arpack-ng/config-x64-osx-rel-CMakeCache.txt.log
    /Users/mack-test/project/vcpkg/buildtrees/arpack-ng/config-x64-osx-dbg-CMakeConfigureLog.yaml.log
    /Users/mack-test/project/vcpkg/buildtrees/arpack-ng/config-x64-osx-rel-CMakeConfigureLog.yaml.log
    /Users/mack-test/project/vcpkg/buildtrees/arpack-ng/config-x64-osx-out.log

Call Stack (most recent call first):
installed/arm64-osx/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:269 (vcpkg_execute_required_process)
ports/arpack-ng/portfile.cmake:17 (vcpkg_cmake_configure)
scripts/ports.cmake:206 (include)

error: building arpack-ng:x64-osx failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle arpack-ng:x64-osx: 1.6 s
Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+arpack-ng
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=%5Barpack-ng%5D%20build%20error%20on%20x64-osx&body=Copy%20issue%20body%20from%20%2FUsers%2Fmack-test%2Fproject%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md`

`cat /Users/mack-test/project/vcpkg/buildtrees/arpack-ng/config-x64-osx-out.log
[1/2] "/Users/mack-test/project/vcpkg/downloads/tools/cmake-3.31.10-osx/cmake-3.31.10-macos-universal/CMake.app/Contents/bin/cmake" -E chdir ".." "/Users/mack-test/project/vcpkg/downloads/tools/cmake-3.31.10-osx/cmake-3.31.10-macos-universal/CMake.app/Contents/bin/cmake" "/Users/mack-test/project/vcpkg/buildtrees/arpack-ng/src/3.9.1-1cea2efcbc.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/Users/mack-test/project/vcpkg/packages/arpack-ng_x64-osx" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DMPI=OFF" "-DICB=ON" "-DICBEXMM=OFF" "-DEXAMPLES=OFF" "-DTESTS=OFF" "-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON" "-DCMAKE_MAKE_PROGRAM=/Users/mack-test/project/vcpkg/downloads/tools/ninja/1.13.1-osx/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/mack-test/project/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=x64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/mack-test/project/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/mack-test/project/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/mack-test/project/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=x86_64"
FAILED: [code=1] ../CMakeCache.txt
"/Users/mack-test/project/vcpkg/downloads/tools/cmake-3.31.10-osx/cmake-3.31.10-macos-universal/CMake.app/Contents/bin/cmake" -E chdir ".." "/Users/mack-test/project/vcpkg/downloads/tools/cmake-3.31.10-osx/cmake-3.31.10-macos-universal/CMake.app/Contents/bin/cmake" "/Users/mack-test/project/vcpkg/buildtrees/arpack-ng/src/3.9.1-1cea2efcbc.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/Users/mack-test/project/vcpkg/packages/arpack-ng_x64-osx" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DMPI=OFF" "-DICB=ON" "-DICBEXMM=OFF" "-DEXAMPLES=OFF" "-DTESTS=OFF" "-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON" "-DCMAKE_MAKE_PROGRAM=/Users/mack-test/project/vcpkg/downloads/tools/ninja/1.13.1-osx/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/mack-test/project/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=x64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/mack-test/project/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/mack-test/project/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/mack-test/project/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=x86_64"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

-- The C compiler identification is AppleClang 16.0.0.16000026
-- The Fortran compiler identification is GNU 15.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether Fortran compiler has -isysroot
-- Checking whether Fortran compiler has -isysroot - yes
-- Checking whether Fortran compiler supports OSX deployment target flag
-- Checking whether Fortran compiler supports OSX deployment target flag - yes
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
CMake Error at /Users/mack-test/project/vcpkg/downloads/tools/cmake-3.31.10-osx/cmake-3.31.10-macos-universal/CMake.app/Contents/share/cmake-3.31/Modules/CMakeDetermineCompilerABI.cmake:129 (message):
The Fortran compiler targets architectures:

"arm64"

but CMAKE_OSX_ARCHITECTURES is

"x86_64"

Call Stack (most recent call first):
/Users/mack-test/project/vcpkg/downloads/tools/cmake-3.31.10-osx/cmake-3.31.10-macos-universal/CMake.app/Contents/share/cmake-3.31/Modules/CMakeTestFortranCompiler.cmake:20 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:7 (project)

-- Configuring incomplete, errors occurred!`

Additional context

Should the Fortran compiler provide a more general solution, for example by automatically downloading and using the x86 version when performing cross-platform builds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-bugThe issue is with a library, which is something the port should already support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions