Skip to content

Build error #2024

@flippercy

Description

@flippercy

In file included from ggml.c:7:0:
k_quants.h:32:15: error: expected declaration specifiers or '...' before 'sizeof'
static_assert(sizeof(block_q2_K) == 2sizeof(ggml_fp16_t) + QK_K/16 + QK_K/4, "wrong q2_K block size/padding");
^~~~~~
k_quants.h:32:79: error: expected declaration specifiers or '...' before string constant
static_assert(sizeof(block_q2_K) == 2
sizeof(ggml_fp16_t) + QK_K/16 + QK_K/4, "wrong q2_K block size/padding");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
k_quants.h:53:15: error: expected declaration specifiers or '...' before 'sizeof'
static_assert(sizeof(block_q3_K) == sizeof(ggml_fp16_t) + QK_K / 4 + QK_K / 8 + 12, "wrong q3_K block size/padding");
^~~~~~
k_quants.h:53:85: error: expected declaration specifiers or '...' before string constant
static_assert(sizeof(block_q3_K) == sizeof(ggml_fp16_t) + QK_K / 4 + QK_K / 8 + 12, "wrong q3_K block size/padding");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
k_quants.h:74:15: error: expected declaration specifiers or '...' before 'sizeof'
static_assert(sizeof(block_q4_K) == 2sizeof(ggml_fp16_t) + K_SCALE_SIZE + QK_K/2, "wrong q4_K block size/padding");
^~~~~~
k_quants.h:74:84: error: expected declaration specifiers or '...' before string constant
static_assert(sizeof(block_q4_K) == 2
sizeof(ggml_fp16_t) + K_SCALE_SIZE + QK_K/2, "wrong q4_K block size/padding");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
k_quants.h:97:15: error: expected declaration specifiers or '...' before 'sizeof'
static_assert(sizeof(block_q5_K) == 2sizeof(ggml_fp16_t) + K_SCALE_SIZE + QK_K/2 + QK_K/8, "wrong q5_K block size/padding");
^~~~~~
k_quants.h:97:93: error: expected declaration specifiers or '...' before string constant
static_assert(sizeof(block_q5_K) == 2
sizeof(ggml_fp16_t) + K_SCALE_SIZE + QK_K/2 + QK_K/8, "wrong q5_K block size/padding");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
k_quants.h:110:15: error: expected declaration specifiers or '...' before 'sizeof'
static_assert(sizeof(block_q6_K) == sizeof(ggml_fp16_t) + QK_K / 16 + 3QK_K/4, "wrong q6_K block size/padding");
^~~~~~
k_quants.h:110:81: error: expected declaration specifiers or '...' before string constant
static_assert(sizeof(block_q6_K) == sizeof(ggml_fp16_t) + QK_K / 16 + 3
QK_K/4, "wrong q6_K block size/padding");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
k_quants.h:118:15: error: expected declaration specifiers or '...' before 'sizeof'
static_assert(sizeof(block_q8_K) == sizeof(float) + QK_K + QK_K/16sizeof(int16_t), "wrong q8_K block size/padding");
^~~~~~
k_quants.h:118:85: error: expected declaration specifiers or '...' before string constant
static_assert(sizeof(block_q8_K) == sizeof(float) + QK_K + QK_K/16
sizeof(int16_t), "wrong q8_K block size/padding");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:263: ggml.o] Error 1

What shall I do to fix this installation error, please?

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