Skip to content

Build failure on macOS 15.6.1 #1343

@BillyONeal

Description

@BillyONeal

I'm updating vcpkg's build lab to macOS 15.6.1 and ggml:arm64-osx is failing with:

FAILED: [code=1] src/CMakeFiles/ggml-cpu.dir/ggml-cpu/arch/arm/quants.c.o 
/usr/bin/cc -DACCELERATE_LAPACK_ILP64 -DACCELERATE_NEW_LAPACK -DGGML_SCHED_MAX_COPIES=4 -DGGML_USE_ACCELERATE -DGGML_USE_CPU_REPACK -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE=600 -I/Users/vcpkg/vcpkg/buildtrees/ggml/src/20306bb26e-3d1b0c2769.clean/src/.. -I/Users/vcpkg/vcpkg/buildtrees/ggml/src/20306bb26e-3d1b0c2769.clean/src/. -I/Users/vcpkg/vcpkg/buildtrees/ggml/src/20306bb26e-3d1b0c2769.clean/src/ggml-cpu -I/Users/vcpkg/vcpkg/buildtrees/ggml/src/20306bb26e-3d1b0c2769.clean/src/../include -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -fPIC -g -std=gnu11 -arch arm64 -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wunreachable-code-break -Wunreachable-code-return -Wdouble-promotion -mcpu=native+dotprod+noi8mm+nosve+nosme -MD -MT src/CMakeFiles/ggml-cpu.dir/ggml-cpu/arch/arm/quants.c.o -MF src/CMakeFiles/ggml-cpu.dir/ggml-cpu/arch/arm/quants.c.o.d -o src/CMakeFiles/ggml-cpu.dir/ggml-cpu/arch/arm/quants.c.o -c /Users/vcpkg/vcpkg/buildtrees/ggml/src/20306bb26e-3d1b0c2769.clean/src/ggml-cpu/arch/arm/quants.c
/Users/vcpkg/vcpkg/buildtrees/ggml/src/20306bb26e-3d1b0c2769.clean/src/ggml-cpu/arch/arm/quants.c:515:88: error: always_inline function 'vmmlaq_s32' requires target feature 'i8mm', but would be inlined into function 'ggml_vec_dot_q4_1_q8_1' that is compiled without support for 'i8mm'
  515 |             sumv0 = vmlaq_f32(sumv0,(vcvtq_f32_s32(vmmlaq_s32((vmmlaq_s32((vmmlaq_s32((vmmlaq_s32(vdupq_n_s32(0), l0, r0)),
      |                                                                                        ^
/Users/vcpkg/vcpkg/buildtrees/ggml/src/20306bb26e-3d1b0c2769.clean/src/ggml-cpu/arch/arm/quants.c:515:76: error: always_inline function 'vmmlaq_s32' requires target feature 'i8mm', but would be inlined into function 'ggml_vec_dot_q4_1_q8_1' that is compiled without support for 'i8mm'
  515 |             sumv0 = vmlaq_f32(sumv0,(vcvtq_f32_s32(vmmlaq_s32((vmmlaq_s32((vmmlaq_s32((vmmlaq_s32(vdupq_n_s32(0), l0, r0)),
      |                                                                            ^
/Users/vcpkg/vcpkg/buildtrees/ggml/src/20306bb26e-3d1b0c2769.clean/src/ggml-cpu/arch/arm/quants.c:515:64: error: always_inline function 'vmmlaq_s32' requires target feature 'i8mm', but would be inlined into function 'ggml_vec_dot_q4_1_q8_1' that is compiled without support for 'i8mm'
  515 |             sumv0 = vmlaq_f32(sumv0,(vcvtq_f32_s32(vmmlaq_s32((vmmlaq_s32((vmmlaq_s32((vmmlaq_s32(vdupq_n_s32(0), l0, r0)),
      |                                                                ^
/Users/vcpkg/vcpkg/buildtrees/ggml/src/20306bb26e-3d1b0c2769.clean/src/ggml-cpu/arch/arm/quants.c:515:52: error: always_inline function 'vmmlaq_s32' requires target feature 'i8mm', but would be inlined into function 'ggml_vec_dot_q4_1_q8_1' that is compiled without support for 'i8mm'
  515 |             sumv0 = vmlaq_f32(sumv0,(vcvtq_f32_s32(vmmlaq_s32((vmmlaq_s32((vmmlaq_s32((vmmlaq_s32(vdupq_n_s32(0), l0, r0)),
      |                                                    ^
4 errors generated.

On this system,

vcpkg@vcpkgs-Virtual-Machine ~ % clang++ --version
Apple clang version 17.0.0 (clang-1700.0.13.5)
Target: arm64-apple-darwin24.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
vcpkg@vcpkgs-Virtual-Machine

To reproduce, get an arm64 mac, install Xcode, then:

git clone https://github.com/microsoft/vcpkg
./bootstrap-vcpkg.sh
./vcpkg install ggml

I'm sorry I don't have enough understanding of these ARM CPU features in order to correctly debug this and will be forced to disable ggml testing in our lab for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions