Skip to content

[libffi] Build error on arm64-osx #43872

@aroy240484

Description

@aroy240484

Package: libffi:arm64-osx@3.4.6

Host Environment

  • Host: arm64-osx
  • Compiler: Clang 19.1.7
  • vcpkg-tool version: 2024-11-12-eb492805e92a2c14a230f5c3deb3e89f6771c321
    vcpkg-scripts version: 9b5cb8e 2024-11-14 (3 months ago)

To Reproduce

vcpkg install --x-feature=python

Failure logs

-- Using cached libffi-3.4.6.tar.gz.
-- Cleaning sources at /Users/esthercoalter/polatory/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/esthercoalter/polatory/vcpkg/downloads/libffi-3.4.6.tar.gz
-- Applying patch dll-bindir.diff
-- Using source at /Users/esthercoalter/polatory/vcpkg/buildtrees/libffi/src/libffi-3-5867c437e9.clean
CMake Warning (dev) at scripts/cmake/vcpkg_find_acquire_program.cmake:70 (cmake_parse_arguments):
  The INTERPRETER keyword was followed by an empty string or no value at all.
  Policy CMP0174 is not set, so cmake_parse_arguments() will unset the
  arg_INTERPRETER variable rather than setting it to an empty string.
Call Stack (most recent call first):
  scripts/cmake/vcpkg_find_acquire_program.cmake:143 (z_vcpkg_find_acquire_program_find_internal)
  /Users/esthercoalter/polatory/build/temp.macosx-10.9-universal2-cpython-39/polatory/vcpkg_installed/arm64-osx/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:116 (vcpkg_find_acquire_program)
  /Users/esthercoalter/polatory/build/temp.macosx-10.9-universal2-cpython-39/polatory/vcpkg_installed/arm64-osx/share/vcpkg-cmake-get-vars/vcpkg_cmake_get_vars.cmake:15 (vcpkg_cmake_configure)
  ports/libffi/portfile.cmake:23 (vcpkg_cmake_get_vars)
  scripts/ports.cmake:192 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at scripts/cmake/vcpkg_find_acquire_program.cmake:30 (cmake_parse_arguments):
  The INTERPRETER keyword was followed by an empty string or no value at all.
  Policy CMP0174 is not set, so cmake_parse_arguments() will unset the
  arg_INTERPRETER variable rather than setting it to an empty string.
Call Stack (most recent call first):
  scripts/cmake/vcpkg_find_acquire_program.cmake:149 (z_vcpkg_find_acquire_program_find_external)
  /Users/esthercoalter/polatory/build/temp.macosx-10.9-universal2-cpython-39/polatory/vcpkg_installed/arm64-osx/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:116 (vcpkg_find_acquire_program)
  /Users/esthercoalter/polatory/build/temp.macosx-10.9-universal2-cpython-39/polatory/vcpkg_installed/arm64-osx/share/vcpkg-cmake-get-vars/vcpkg_cmake_get_vars.cmake:15 (vcpkg_cmake_configure)
  ports/libffi/portfile.cmake:23 (vcpkg_cmake_get_vars)
  scripts/ports.cmake:192 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found external ninja('1.12.1').
-- Getting CMake variables for arm64-osx
-- Getting CMake variables for arm64-osx-dbg
-- Getting CMake variables for arm64-osx-rel
CMake Warning (dev) at scripts/cmake/vcpkg_find_acquire_program.cmake:70 (cmake_parse_arguments):
  The INTERPRETER keyword was followed by an empty string or no value at all.
  Policy CMP0174 is not set, so cmake_parse_arguments() will unset the
  arg_INTERPRETER variable rather than setting it to an empty string.
Call Stack (most recent call first):
  scripts/cmake/vcpkg_find_acquire_program.cmake:143 (z_vcpkg_find_acquire_program_find_internal)
  scripts/cmake/z_vcpkg_setup_pkgconfig_path.cmake:19 (vcpkg_find_acquire_program)
  scripts/cmake/vcpkg_configure_make.cmake:816 (z_vcpkg_setup_pkgconfig_path)
  ports/libffi/portfile.cmake:49 (vcpkg_configure_make)
  scripts/ports.cmake:192 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring arm64-osx-dbg
-- Configuring arm64-osx-rel
CMake Warning (dev) at scripts/cmake/vcpkg_build_make.cmake:6 (cmake_parse_arguments):
  The LOGFILE_ROOT keyword was followed by an empty string or no value at
  all.  Policy CMP0174 is not set, so cmake_parse_arguments() will unset the
  arg_LOGFILE_ROOT variable rather than setting it to an empty string.
Call Stack (most recent call first):
  scripts/cmake/vcpkg_install_make.cmake:2 (vcpkg_build_make)
  ports/libffi/portfile.cmake:60 (vcpkg_install_make)
  scripts/ports.cmake:192 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Building arm64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /usr/bin/make V=1 -j 9 -f Makefile all
    Working Directory: /Users/esthercoalter/polatory/vcpkg/buildtrees/libffi/arm64-osx-dbg/
    See logs for more information:
      /Users/esthercoalter/polatory/vcpkg/buildtrees/libffi/build-arm64-osx-dbg-out.log
      /Users/esthercoalter/polatory/vcpkg/buildtrees/libffi/build-arm64-osx-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:136 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:2 (vcpkg_build_make)
  ports/libffi/portfile.cmake:60 (vcpkg_install_make)
  scripts/ports.cmake:192 (include)



/Users/esthercoalter/polatory/vcpkg/buildtrees/libffi/build-arm64-osx-dbg-err.log
/var/folders/yn/lq9vctpx555gknp_8vfb2twr0000gn/T/sysv-947aa5.s:28:2: error: invalid CFI advance_loc expression
 .cfi_def_cfa x1, 40;
 ^
/var/folders/yn/lq9vctpx555gknp_8vfb2twr0000gn/T/sysv-947aa5.s:255:2: error: invalid CFI advance_loc expression
 .cfi_adjust_cfa_offset (8*2 + (8 * 16 + 8 * 8) + 64)
 ^
make[2]: *** [src/aarch64/sysv.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
./../src/libffi-3-5867c437e9.clean/src/java_raw_api.c:328:46: warning: 'ffi_java_raw_size' is deprecated [-Wdeprecated-declarations]
  328 |   ffi_java_raw *raw = (ffi_java_raw*)alloca (ffi_java_raw_size (cif));
      |                                              ^
include/ffi.h:315:56: note: 'ffi_java_raw_size' has been explicitly marked deprecated here
  315 | size_t ffi_java_raw_size (ffi_cif *cif) __attribute__((deprecated));
      |                                                        ^
./../src/libffi-3-5867c437e9.clean/src/java_raw_api.c:331:3: warning: 'ffi_java_ptrarray_to_raw' is deprecated [-Wdeprecated-declarations]
  331 |   ffi_java_ptrarray_to_raw (cif, avalue, raw);
      |   ^
include/ffi.h:311:93: note: 'ffi_java_ptrarray_to_raw' has been explicitly marked deprecated here
  311 | void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw) __attribute__((deprecated));
      |                                                                                             ^
2 warnings generated.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/Users/esthercoalter/polatory/vcpkg/buildtrees/libffi/build-arm64-osx-dbg-out.log
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in include
make[2]: Nothing to be done for `all'.
Making all in testsuite
make[2]: Nothing to be done for `all'.
Making all in man
make[2]: Nothing to be done for `all'.
depbase=`echo src/aarch64/ffi.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool  --tag=CC   --mode=compile /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk  -Wall -fPIC -g -fexceptions -MT src/aarch64/ffi.lo -MD -MP -MF $depbase.Tpo -c -o src/aarch64/ffi.lo ./../src/libffi-3-5867c437e9.clean/src/aarch64/ffi.c &&\
	mv -f $depbase.Tpo $depbase.Plo
depbase=`echo src/aarch64/sysv.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -fPIC -g -MT src/aarch64/sysv.lo -MD -MP -MF $depbase.Tpo -c -o src/aarch64/sysv.lo ./../src/libffi-3-5867c437e9.clean/src/aarch64/sysv.S &&\
	mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -Wall -fPIC -g -fexceptions -MT src/aarch64/ffi.lo -MD -MP -MF src/aarch64/.deps/ffi.Tpo -c ./../src/libffi-3-5867c437e9.clean/src/aarch64/ffi.c -o src/aarch64/ffi.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -fPIC -g -MT src/aarch64/sysv.lo -MD -MP -MF src/aarch64/.deps/sysv.Tpo -c ./../src/libffi-3-5867c437e9.clean/src/aarch64/sysv.S -o src/aarch64/sysv.o
depbase=`echo src/prep_cif.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool  --tag=CC   --mode=compile /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk  -Wall -fPIC -g -fexceptions -MT src/prep_cif.lo -MD -MP -MF $depbase.Tpo -c -o src/prep_cif.lo ./../src/libffi-3-5867c437e9.clean/src/prep_cif.c &&\
	mv -f $depbase.Tpo $depbase.Plo
depbase=`echo src/types.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool  --tag=CC   --mode=compile /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk  -Wall -fPIC -g -fexceptions -MT src/types.lo -MD -MP -MF $depbase.Tpo -c -o src/types.lo ./../src/libffi-3-5867c437e9.clean/src/types.c &&\
	mv -f $depbase.Tpo $depbase.Plo
depbase=`echo src/raw_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool  --tag=CC   --mode=compile /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk  -Wall -fPIC -g -fexceptions -MT src/raw_api.lo -MD -MP -MF $depbase.Tpo -c -o src/raw_api.lo ./../src/libffi-3-5867c437e9.clean/src/raw_api.c &&\
	mv -f $depbase.Tpo $depbase.Plo
depbase=`echo src/java_raw_api.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool  --tag=CC   --mode=compile /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk  -Wall -fPIC -g -fexceptions -MT src/java_raw_api.lo -MD -MP -MF $depbase.Tpo -c -o src/java_raw_api.lo ./../src/libffi-3-5867c437e9.clean/src/java_raw_api.c &&\
	mv -f $depbase.Tpo $depbase.Plo
depbase=`echo src/closures.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool  --tag=CC   --mode=compile /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk  -Wall -fPIC -g -fexceptions -MT src/closures.lo -MD -MP -MF $depbase.Tpo -c -o src/closures.lo ./../src/libffi-3-5867c437e9.clean/src/closures.c &&\
	mv -f $depbase.Tpo $depbase.Plo
depbase=`echo src/tramp.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool  --tag=CC   --mode=compile /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean  -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk  -Wall -fPIC -g -fexceptions -MT src/tramp.lo -MD -MP -MF $depbase.Tpo -c -o src/tramp.lo ./../src/libffi-3-5867c437e9.clean/src/tramp.c &&\
	mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -Wall -fPIC -g -fexceptions -MT src/types.lo -MD -MP -MF src/.deps/types.Tpo -c ./../src/libffi-3-5867c437e9.clean/src/types.c -o src/types.o
libtool: compile:  /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -Wall -fPIC -g -fexceptions -MT src/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c ./../src/libffi-3-5867c437e9.clean/src/closures.c -o src/closures.o
libtool: compile:  /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -Wall -fPIC -g -fexceptions -MT src/prep_cif.lo -MD -MP -MF src/.deps/prep_cif.Tpo -c ./../src/libffi-3-5867c437e9.clean/src/prep_cif.c -o src/prep_cif.o
libtool: compile:  /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -Wall -fPIC -g -fexceptions -MT src/java_raw_api.lo -MD -MP -MF src/.deps/java_raw_api.Tpo -c ./../src/libffi-3-5867c437e9.clean/src/java_raw_api.c -o src/java_raw_api.o
libtool: compile:  /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -Wall -fPIC -g -fexceptions -MT src/raw_api.lo -MD -MP -MF src/.deps/raw_api.Tpo -c ./../src/libffi-3-5867c437e9.clean/src/raw_api.c -o src/raw_api.o
libtool: compile:  /opt/homebrew/opt/llvm/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -fPIC -g -DHAVE_CONFIG_H -I. -I./../src/libffi-3-5867c437e9.clean -I. -I./../src/libffi-3-5867c437e9.clean/include -Iinclude -I./../src/libffi-3-5867c437e9.clean/src -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -Wall -fPIC -g -fexceptions -MT src/tramp.lo -MD -MP -MF src/.deps/tramp.Tpo -c ./../src/libffi-3-5867c437e9.clean/src/tramp.c -o src/tramp.o

Additional context

vcpkg.json
{
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
  "name": "polatory",
  "version": "0.1.0",
  "dependencies": [
    "boost-algorithm",
    "boost-any",
    "boost-container-hash",
    "boost-filesystem",
    "boost-iterator",
    "boost-math",
    "boost-program-options",
    "boost-range",
    "ceres",
    "eigen3",
    "fast-float",
    {
      "name": "fftw3",
      "platform": "osx & arm64"
    },
    "flann",
    "gtest",
    "libigl",
    {
      "name": "intel-mkl",
      "platform": "(windows | linux | osx) & x64"
    }
  ],
  "features": {
    "python": {
      "description": "Build Python bindings",
      "dependencies": [
        "pybind11"
      ]
    }
  }
}

Metadata

Metadata

Assignees

Labels

requires:reproThe issue is not currently repro-able

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions