Skip to content

Unable to build C object third_party/crypto/src/CMakeFiles/sse_crypto.dir/aez/aez.c.o #23

@BasantaChaulagain

Description

@BasantaChaulagain

Hi @rbost,

I tried building the code in MacOS 11.6 (Apple M1 chip). The build files were successfully written after 'cmake ..', but I got the following error while trying to 'make' it. This doesn't seem to be an error from your code, but do you by chance know what can be the culprit here? Maybe some header files are not included in the file third_party/crypto/src/CMakeFiles/sse_crypto.dir/aez/aez.c.o

[  8%] Building C object third_party/crypto/src/CMakeFiles/sse_crypto.dir/aez/aez.c.o
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:648:17: error: implicit declaration of function '_mm_set1_epi32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        frag1 = _mm_set1_epi32(0x00);
                ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:648:15: error: assigning to 'uint8x16_t' (vector of 16 'uint8_t' values) from incompatible type 'int'
        frag1 = _mm_set1_epi32(0x00);
              ^ ~~~~~~~~~~~~~~~~~~~~
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:650:17: error: implicit declaration of function '_mm_set1_epi32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        frag0 = _mm_set1_epi32(0x00);
                ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:650:15: error: assigning to 'uint8x16_t' (vector of 16 'uint8_t' values) from incompatible type 'int'
        frag0 = _mm_set1_epi32(0x00);
              ^ ~~~~~~~~~~~~~~~~~~~~
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:651:15: error: assigning to 'uint8x16_t' (vector of 16 'uint8_t' values) from incompatible type 'int'
        frag1 = _mm_set1_epi32(0x00);
              ^ ~~~~~~~~~~~~~~~~~~~~
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:662:31: error: passing 'const uint8x16_t *' to parameter of type 'uint8x16_t *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
    final1 = vxor(final1, aes((const block*)ctx, final0, ctx->J[d]));
             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:143:32: note: expanded from macro 'vxor'
#define vxor(x, y) veorq_u8(x, y)
                               ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:182:35: note: passing argument to parameter 'key' here
static uint8x16_t aes(uint8x16_t* key, uint8x16_t in, uint8x16_t first_key)
                                  ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:664:31: error: passing 'const uint8x16_t *' to parameter of type 'uint8x16_t *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
    final0 = vxor(final0, aes((const block*)ctx, final1, ctx->J[d ^ 1]));
             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:143:32: note: expanded from macro 'vxor'
#define vxor(x, y) veorq_u8(x, y)
                               ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:182:35: note: passing argument to parameter 'key' here
static uint8x16_t aes(uint8x16_t* key, uint8x16_t in, uint8x16_t first_key)
                                  ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:674:33: error: passing 'const uint8x16_t *' to parameter of type 'uint8x16_t *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
        frag0 = vxor(frag0, aes((const block*)ctx, s, ctx->J[2]));
                ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:143:32: note: expanded from macro 'vxor'
#define vxor(x, y) veorq_u8(x, y)
                               ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:182:35: note: passing argument to parameter 'key' here
static uint8x16_t aes(uint8x16_t* key, uint8x16_t in, uint8x16_t first_key)
                                  ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:675:33: error: passing 'const uint8x16_t *' to parameter of type 'uint8x16_t *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
        frag1 = vxor(frag1, aes((const block*)ctx, s, vxor(ctx->J[2], J)));
                ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:143:32: note: expanded from macro 'vxor'
#define vxor(x, y) veorq_u8(x, y)
                               ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:182:35: note: passing argument to parameter 'key' here
static uint8x16_t aes(uint8x16_t* key, uint8x16_t in, uint8x16_t first_key)
                                  ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:682:33: error: passing 'const uint8x16_t *' to parameter of type 'uint8x16_t *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
        frag0 = vxor(frag0, aes((const block*)ctx, s, ctx->J[2]));
                ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:143:32: note: expanded from macro 'vxor'
#define vxor(x, y) veorq_u8(x, y)
                               ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:182:35: note: passing argument to parameter 'key' here
static uint8x16_t aes(uint8x16_t* key, uint8x16_t in, uint8x16_t first_key)
                                  ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:834:17: error: passing 'const uint8x16_t *' to parameter of type 'uint8x16_t *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
        t = aes((const block*)ctx, t, vxor(ctx->J[0], ctx->J[1]));
                ^~~~~~~~~~~~~~~~~
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:182:35: note: passing argument to parameter 'key' here
static uint8x16_t aes(uint8x16_t* key, uint8x16_t in, uint8x16_t first_key)
                                  ^
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:862:26: error: passing 'const uint8x16_t *' to parameter of type 'uint8x16_t *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
        t = zero_pad(aes((const block*)ctx, t, vxor(ctx->J[0], ctx->J[1])),
                         ^~~~~~~~~~~~~~~~~
/Users/basanta/Documents/opensse-schemes/third_party/crypto/src/aez/aez.c:182:35: note: passing argument to parameter 'key' here
static uint8x16_t aes(uint8x16_t* key, uint8x16_t in, uint8x16_t first_key)
                                  ^
12 errors generated.
make[2]: *** [third_party/crypto/src/CMakeFiles/sse_crypto.dir/aez/aez.c.o] Error 1
make[1]: *** [third_party/crypto/src/CMakeFiles/sse_crypto.dir/all] Error 2
make: *** [all] Error 2

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