MacOS build-runtime wasm compilation errors #129

Closed
opened 2023-09-18 13:11:56 +00:00 by Khrob · 7 comments

orca dev build-runtime gives me the following:

Building Orca platform layer...
In file included from src/orca.m:19:
src/graphics/mtl_renderer.m:39:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
    id<MTLBuffer> pathBuffer[OC_MTL_INPUT_BUFFERS_COUNT];
                  ^
src/graphics/mtl_renderer.m:40:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
    id<MTLBuffer> elementBuffer[OC_MTL_INPUT_BUFFERS_COUNT];
                  ^
src/graphics/mtl_renderer.m:41:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
    id<MTLBuffer> logBuffer[OC_MTL_INPUT_BUFFERS_COUNT];
                  ^
src/graphics/mtl_renderer.m:42:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
    id<MTLBuffer> logOffsetBuffer[OC_MTL_INPUT_BUFFERS_COUNT];
                  ^
src/graphics/mtl_renderer.m:515:13: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
        f32 checkSamples[CHECK_SAMPLE_COUNT] = { 1. / 6, 2. / 6, 3. / 6, 4. / 6, 5. / 6 };
            ^
src/graphics/mtl_renderer.m:617:13: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
        f32 checkSamples[CHECK_SAMPLE_COUNT] = { 1. / 6, 2. / 6, 3. / 6, 4. / 6, 5. / 6 };
            ^
6 warnings generated.
Building wasm3...
In file included from src/ext/wasm3/source/m3_compile.c:11:
In file included from src/ext/wasm3/source/m3_env.h:13:
src/ext/wasm3/source/m3_compile.h:140:40: error: size of array element of type 'IM3Operation' (aka 'const void *(*)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes)
    IM3Operation            operations [4];
                                       ^
src/ext/wasm3/source/m3_compile.c:135:45: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes)
static const IM3Operation c_preserveSetSlot [] = { NULL, op_PreserveSetSlot_i32,       op_PreserveSetSlot_i64,
                                            ^
src/ext/wasm3/source/m3_compile.c:137:39: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes)
static const IM3Operation c_setSetOps [] =       { NULL, op_SetSlot_i32,               op_SetSlot_i64,
                                      ^
src/ext/wasm3/source/m3_compile.c:139:42: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes)
static const IM3Operation c_setGlobalOps [] =    { NULL, op_SetGlobal_i32,             op_SetGlobal_i64,
                                         ^
src/ext/wasm3/source/m3_compile.c:141:44: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes)
static const IM3Operation c_setRegisterOps [] =  { NULL, op_SetRegister_i32,           op_SetRegister_i64,
                                           ^
src/ext/wasm3/source/m3_compile.c:144:46: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes)
static const IM3Operation c_intSelectOps [2] [4] =      { { op_Select_i32_rss, op_Select_i32_srs, op_Select_i32_ssr, op_Select_i32_sss },
                                             ^
src/ext/wasm3/source/m3_compile.c:147:49: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes)
static const IM3Operation c_fpSelectOps [2] [2] [3] = { { { op_Select_f32_sss, op_Select_f32_srs, op_Select_f32_ssr },        // selector in slot
                                                ^
src/ext/wasm3/source/m3_compile.c:2554:32: error: invalid application of 'sizeof' to an incomplete type 'const M3OpInfo[]' (aka 'const struct M3OpInfo[]')
        if (M3_LIKELY(opcode < M3_COUNT_OF(c_operations))) {
            ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/ext/wasm3/source/m3_config_platforms.h:94:32: note: expanded from macro 'M3_COUNT_OF'
#define M3_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))
                               ^
src/ext/wasm3/source/wasm3_defs.h:276:46: note: expanded from macro 'M3_LIKELY'
#  define M3_LIKELY(x)   __builtin_expect(!!(x), 1)
                                             ^
src/ext/wasm3/source/m3_compile.c:2554:32: error: invalid application of 'sizeof' to an incomplete type 'const M3OpInfo[]' (aka 'const struct M3OpInfo[]')
        if (M3_LIKELY(opcode < M3_COUNT_OF(c_operations))) {
            ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/ext/wasm3/source/m3_config_platforms.h:94:70: note: expanded from macro 'M3_COUNT_OF'
#define M3_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))
                                                                     ^
src/ext/wasm3/source/wasm3_defs.h:276:46: note: expanded from macro 'M3_LIKELY'
#  define M3_LIKELY(x)   __builtin_expect(!!(x), 1)
                                             ^
src/ext/wasm3/source/m3_compile.c:2560:32: error: invalid application of 'sizeof' to an incomplete type 'const M3OpInfo[]' (aka 'const struct M3OpInfo[]')
        if (M3_LIKELY(opcode < M3_COUNT_OF(c_operationsFC))) {
            ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ext/wasm3/source/m3_config_platforms.h:94:32: note: expanded from macro 'M3_COUNT_OF'
#define M3_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))
                               ^
src/ext/wasm3/source/wasm3_defs.h:276:46: note: expanded from macro 'M3_LIKELY'
#  define M3_LIKELY(x)   __builtin_expect(!!(x), 1)
                                             ^
src/ext/wasm3/source/m3_compile.c:2560:32: error: invalid application of 'sizeof' to an incomplete type 'const M3OpInfo[]' (aka 'const struct M3OpInfo[]')
        if (M3_LIKELY(opcode < M3_COUNT_OF(c_operationsFC))) {
            ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ext/wasm3/source/m3_config_platforms.h:94:70: note: expanded from macro 'M3_COUNT_OF'
#define M3_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))
                                                                     ^
src/ext/wasm3/source/wasm3_defs.h:276:46: note: expanded from macro 'M3_LIKELY'
#  define M3_LIKELY(x)   __builtin_expect(!!(x), 1)
                                             ^
11 errors generated.
ERROR: The following command failed with code 1:
clang -c -g -O2 -foptimize-sibling-calls -Wno-extern-initializer -Dd_m3VerboseErrorMessages -Isrc/ext/wasm3/source -o build/obj/m3_compile.o src/ext/wasm3/source/m3_compile.c

Task failed with 1 error:
ERROR: The following command failed with code 1:
clang -c -g -O2 -foptimize-sibling-calls -Wno-extern-initializer -Dd_m3VerboseErrorMessages -Isrc/ext/wasm3/source -o build/obj/m3_compile.o src/ext/wasm3/source/m3_compile.c

My system:

  • MacOS 13.5.2
  • Homebrew clang version 16.0.6
  • Python 3.11.5 (main, Aug 24 2023, 15:18:16) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin

I'm not too worried about the Metal warnings, just want to know what's going on with m3_compile.c!

Happy to run any experiments that will help solve this.

`orca dev build-runtime` gives me the following: ``` Building Orca platform layer... In file included from src/orca.m:19: src/graphics/mtl_renderer.m:39:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] id<MTLBuffer> pathBuffer[OC_MTL_INPUT_BUFFERS_COUNT]; ^ src/graphics/mtl_renderer.m:40:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] id<MTLBuffer> elementBuffer[OC_MTL_INPUT_BUFFERS_COUNT]; ^ src/graphics/mtl_renderer.m:41:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] id<MTLBuffer> logBuffer[OC_MTL_INPUT_BUFFERS_COUNT]; ^ src/graphics/mtl_renderer.m:42:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] id<MTLBuffer> logOffsetBuffer[OC_MTL_INPUT_BUFFERS_COUNT]; ^ src/graphics/mtl_renderer.m:515:13: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] f32 checkSamples[CHECK_SAMPLE_COUNT] = { 1. / 6, 2. / 6, 3. / 6, 4. / 6, 5. / 6 }; ^ src/graphics/mtl_renderer.m:617:13: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] f32 checkSamples[CHECK_SAMPLE_COUNT] = { 1. / 6, 2. / 6, 3. / 6, 4. / 6, 5. / 6 }; ^ 6 warnings generated. Building wasm3... In file included from src/ext/wasm3/source/m3_compile.c:11: In file included from src/ext/wasm3/source/m3_env.h:13: src/ext/wasm3/source/m3_compile.h:140:40: error: size of array element of type 'IM3Operation' (aka 'const void *(*)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes) IM3Operation operations [4]; ^ src/ext/wasm3/source/m3_compile.c:135:45: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes) static const IM3Operation c_preserveSetSlot [] = { NULL, op_PreserveSetSlot_i32, op_PreserveSetSlot_i64, ^ src/ext/wasm3/source/m3_compile.c:137:39: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes) static const IM3Operation c_setSetOps [] = { NULL, op_SetSlot_i32, op_SetSlot_i64, ^ src/ext/wasm3/source/m3_compile.c:139:42: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes) static const IM3Operation c_setGlobalOps [] = { NULL, op_SetGlobal_i32, op_SetGlobal_i64, ^ src/ext/wasm3/source/m3_compile.c:141:44: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes) static const IM3Operation c_setRegisterOps [] = { NULL, op_SetRegister_i32, op_SetRegister_i64, ^ src/ext/wasm3/source/m3_compile.c:144:46: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes) static const IM3Operation c_intSelectOps [2] [4] = { { op_Select_i32_rss, op_Select_i32_srs, op_Select_i32_ssr, op_Select_i32_sss }, ^ src/ext/wasm3/source/m3_compile.c:147:49: error: size of array element of type 'const IM3Operation' (aka 'const void *(*const)(void *const *, unsigned int *, struct M3MemoryHeader *, long long, double)') (8 bytes) isn't a multiple of its alignment (32 bytes) static const IM3Operation c_fpSelectOps [2] [2] [3] = { { { op_Select_f32_sss, op_Select_f32_srs, op_Select_f32_ssr }, // selector in slot ^ src/ext/wasm3/source/m3_compile.c:2554:32: error: invalid application of 'sizeof' to an incomplete type 'const M3OpInfo[]' (aka 'const struct M3OpInfo[]') if (M3_LIKELY(opcode < M3_COUNT_OF(c_operations))) { ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ src/ext/wasm3/source/m3_config_platforms.h:94:32: note: expanded from macro 'M3_COUNT_OF' #define M3_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x]))))) ^ src/ext/wasm3/source/wasm3_defs.h:276:46: note: expanded from macro 'M3_LIKELY' # define M3_LIKELY(x) __builtin_expect(!!(x), 1) ^ src/ext/wasm3/source/m3_compile.c:2554:32: error: invalid application of 'sizeof' to an incomplete type 'const M3OpInfo[]' (aka 'const struct M3OpInfo[]') if (M3_LIKELY(opcode < M3_COUNT_OF(c_operations))) { ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ src/ext/wasm3/source/m3_config_platforms.h:94:70: note: expanded from macro 'M3_COUNT_OF' #define M3_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x]))))) ^ src/ext/wasm3/source/wasm3_defs.h:276:46: note: expanded from macro 'M3_LIKELY' # define M3_LIKELY(x) __builtin_expect(!!(x), 1) ^ src/ext/wasm3/source/m3_compile.c:2560:32: error: invalid application of 'sizeof' to an incomplete type 'const M3OpInfo[]' (aka 'const struct M3OpInfo[]') if (M3_LIKELY(opcode < M3_COUNT_OF(c_operationsFC))) { ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/ext/wasm3/source/m3_config_platforms.h:94:32: note: expanded from macro 'M3_COUNT_OF' #define M3_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x]))))) ^ src/ext/wasm3/source/wasm3_defs.h:276:46: note: expanded from macro 'M3_LIKELY' # define M3_LIKELY(x) __builtin_expect(!!(x), 1) ^ src/ext/wasm3/source/m3_compile.c:2560:32: error: invalid application of 'sizeof' to an incomplete type 'const M3OpInfo[]' (aka 'const struct M3OpInfo[]') if (M3_LIKELY(opcode < M3_COUNT_OF(c_operationsFC))) { ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/ext/wasm3/source/m3_config_platforms.h:94:70: note: expanded from macro 'M3_COUNT_OF' #define M3_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x]))))) ^ src/ext/wasm3/source/wasm3_defs.h:276:46: note: expanded from macro 'M3_LIKELY' # define M3_LIKELY(x) __builtin_expect(!!(x), 1) ^ 11 errors generated. ERROR: The following command failed with code 1: clang -c -g -O2 -foptimize-sibling-calls -Wno-extern-initializer -Dd_m3VerboseErrorMessages -Isrc/ext/wasm3/source -o build/obj/m3_compile.o src/ext/wasm3/source/m3_compile.c Task failed with 1 error: ERROR: The following command failed with code 1: clang -c -g -O2 -foptimize-sibling-calls -Wno-extern-initializer -Dd_m3VerboseErrorMessages -Isrc/ext/wasm3/source -o build/obj/m3_compile.o src/ext/wasm3/source/m3_compile.c ``` My system: - MacOS 13.5.2 - Homebrew clang version 16.0.6 - Python 3.11.5 (main, Aug 24 2023, 15:18:16) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin I'm not too worried about the Metal warnings, just want to know what's going on with m3_compile.c! Happy to run any experiments that will help solve this.
Collaborator

Seems related to https://github.com/wasm3/wasm3/pull/393
We should probably update wasm3, but in the meantime, what happens if you change src/ext/wasm3/source/m3_config_platforms.h line 124 from #define vectorcall __attribute__((aligned(32))) to just #define vectorcall ?

Seems related to https://github.com/wasm3/wasm3/pull/393 We should probably update wasm3, but in the meantime, what happens if you change `src/ext/wasm3/source/m3_config_platforms.h` line 124 from `#define vectorcall __attribute__((aligned(32)))` to just `#define vectorcall` ?
Author

changing the #define worked like a charm.

changing the #define worked like a charm.
Author
orca dev build-runtime
Building Orca platform layer...
In file included from src/orca.m:19:
src/graphics/mtl_renderer.m:39:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
    id<MTLBuffer> pathBuffer[OC_MTL_INPUT_BUFFERS_COUNT];
                  ^
src/graphics/mtl_renderer.m:40:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
    id<MTLBuffer> elementBuffer[OC_MTL_INPUT_BUFFERS_COUNT];
                  ^
src/graphics/mtl_renderer.m:41:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
    id<MTLBuffer> logBuffer[OC_MTL_INPUT_BUFFERS_COUNT];
                  ^
src/graphics/mtl_renderer.m:42:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
    id<MTLBuffer> logOffsetBuffer[OC_MTL_INPUT_BUFFERS_COUNT];
                  ^
src/graphics/mtl_renderer.m:515:13: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
        f32 checkSamples[CHECK_SAMPLE_COUNT] = { 1. / 6, 2. / 6, 3. / 6, 4. / 6, 5. / 6 };
            ^
src/graphics/mtl_renderer.m:617:13: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
        f32 checkSamples[CHECK_SAMPLE_COUNT] = { 1. / 6, 2. / 6, 3. / 6, 4. / 6, 5. / 6 };
            ^
6 warnings generated.
Building wasm3...
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: build/lib/libwasm3.a(m3_api_wasi.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: build/lib/libwasm3.a(m3_api_tracer.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: build/lib/libwasm3.a(m3_api_uvwasi.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: build/lib/libwasm3.a(m3_api_meta_wasi.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: build/lib/libwasm3.a(m3_exec.o) has no symbols
Building Orca runtime...
ld: warning: object file (build/lib/libwasm3.a(m3_api_wasi.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_core.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_api_tracer.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_function.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_code.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_api_uvwasi.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_api_meta_wasi.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_compile.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_exec.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_env.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_api_libc.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_parse.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_bind.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_info.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
ld: warning: object file (build/lib/libwasm3.a(m3_module.o)) was built for newer macOS version (13.0) than being linked (10.15.4)
Task completed successfully.
``` orca dev build-runtime Building Orca platform layer... In file included from src/orca.m:19: src/graphics/mtl_renderer.m:39:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] id<MTLBuffer> pathBuffer[OC_MTL_INPUT_BUFFERS_COUNT]; ^ src/graphics/mtl_renderer.m:40:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] id<MTLBuffer> elementBuffer[OC_MTL_INPUT_BUFFERS_COUNT]; ^ src/graphics/mtl_renderer.m:41:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] id<MTLBuffer> logBuffer[OC_MTL_INPUT_BUFFERS_COUNT]; ^ src/graphics/mtl_renderer.m:42:19: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] id<MTLBuffer> logOffsetBuffer[OC_MTL_INPUT_BUFFERS_COUNT]; ^ src/graphics/mtl_renderer.m:515:13: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] f32 checkSamples[CHECK_SAMPLE_COUNT] = { 1. / 6, 2. / 6, 3. / 6, 4. / 6, 5. / 6 }; ^ src/graphics/mtl_renderer.m:617:13: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] f32 checkSamples[CHECK_SAMPLE_COUNT] = { 1. / 6, 2. / 6, 3. / 6, 4. / 6, 5. / 6 }; ^ 6 warnings generated. Building wasm3... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: build/lib/libwasm3.a(m3_api_wasi.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: build/lib/libwasm3.a(m3_api_tracer.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: build/lib/libwasm3.a(m3_api_uvwasi.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: build/lib/libwasm3.a(m3_api_meta_wasi.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: build/lib/libwasm3.a(m3_exec.o) has no symbols Building Orca runtime... ld: warning: object file (build/lib/libwasm3.a(m3_api_wasi.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_core.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_api_tracer.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_function.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_code.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_api_uvwasi.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_api_meta_wasi.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_compile.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_exec.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_env.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_api_libc.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_parse.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_bind.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_info.o)) was built for newer macOS version (13.0) than being linked (10.15.4) ld: warning: object file (build/lib/libwasm3.a(m3_module.o)) was built for newer macOS version (13.0) than being linked (10.15.4) Task completed successfully. ```
Collaborator

I'll try to fix these warnings too, but happy this worked!

I'll try to fix these warnings too, but happy this worked!
Khrob closed this issue 2023-09-19 01:38:19 +00:00
Author

Me too - it's great to get my hands on it!

Me too - it's great to get my hands on it!
Collaborator

I'm reopening this just to remember to merge the fix and fix the last warnings.

I'm reopening this just to remember to merge the fix and fix the last warnings.
Collaborator

@Khrob could you please test if #135 silences those warnings? Thanks!

@Khrob could you please test if #135 silences those warnings? Thanks!
Sign in to join this conversation.
No Label
macOS
windows
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hmn/orca#129
No description provided.