Skip to content

Bug: ggml-aarch64.c does not compile on Windows ARM64 with MSVC #8446

@AndreasKunar

Description

@AndreasKunar

What happened?

the asm directive in line 507 of ggml-aarch64.c
is dependant on: defined(__ARM_NEON) && defined(aarch64) which is tue for MSVC arm64 with the standard build scripts and does not compile with MSVC.

the other asm directives work out except for the one in line 1278, they are to not being used.

building with clang works, its MSVC specific.

Name and Version

llama.cpp version: 3378 (71c1121), Microsoft C/C++ Version 19.40.33812 for ARM64, Windows 11 Enterprise 24H2 Build 26100.1150

What operating system are you seeing the problem on?

Windows

Relevant log output

build-instructions which fail:
cmake -B build
cmake --build build --config Release --target llama-cli

CMake build also fails for arm64-windows-msvc.cmake, but works for arm64-windows-llvm.cmake (clang compile instead of MSVC frontend works)

The build worked a few days ago with older llama.cpp versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-unconfirmedmedium severityUsed to report medium severity bugs in llama.cpp (e.g. Malfunctioning Features but still useable)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions