Skip to content

Fix error C2078: too many initializers with uint32x4_t for MSVC ARM64#5404

Merged
ggerganov merged 1 commit intoggml-org:masterfrom
Xarbirus:fix-arm64-msvc-builds
Feb 9, 2024
Merged

Fix error C2078: too many initializers with uint32x4_t for MSVC ARM64#5404
ggerganov merged 1 commit intoggml-org:masterfrom
Xarbirus:fix-arm64-msvc-builds

Conversation

@Xarbirus
Copy link
Contributor

@Xarbirus Xarbirus commented Feb 8, 2024

While trying to build llama.cpp using msvc for ARM64 architecture (cross compile on x86_64 machine), I encountered the following error:

ggml-quants.c(8710,125): error C2078: too many initializers
ggml-quants.c(8711,125): error C2078: too many initializers 
ggml-quants.c(8712,125): error C2078: too many initializers 
ggml-quants.c(8713,125): error C2078: too many initializers

from uint32x4_t initialisation.

This fix is based on these pages (1, 2).

@Xarbirus Xarbirus changed the title ix error C2078: too many initializers with uint32x4_t for MSVC ARM64 Fix error C2078: too many initializers with uint32x4_t for MSVC ARM64 Feb 8, 2024
@ggerganov ggerganov merged commit b2f87cb into ggml-org:master Feb 9, 2024
@Xarbirus Xarbirus deleted the fix-arm64-msvc-builds branch February 26, 2024 12:21
jordankanter pushed a commit to jordankanter/llama.cpp that referenced this pull request Mar 13, 2024
@ggerganov ggerganov mentioned this pull request Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants