how to use iwasm_gc?

I got iwasm by homebrew because i can't build runtime library on my computer. Can you give a more detailed example?

sys: arm64 macos 14.1

Hi, to run the generated wasm file, you should build iwasm_gc through runtime-library's cmake file: https://github.com/web-devkits/Wasmnizer-ts/blob/main/runtime-library/README.md
The iwasm generated by homebrew lacks the registered native APIs, and lacks the supported of gc proposal, so it will report WASM module load failed error.
However, you say that can not build runtime-library on your computer, would you like to share the error details to us to diagnose root cause?

Hi, to run the generated wasm file, you should build iwasm_gc through runtime-library's cmake file: https://github.com/web-devkits/Wasmnizer-ts/blob/main/runtime-library/README.md The iwasm generated by homebrew lacks the registered native APIs, and lacks the supported of gc proposal, so it will report WASM module load failed error.
However, you say that can not build runtime-library on your computer, would you like to share the error details to us to diagnose root cause?

  Wasmnizer-ts/runtime-library main ✗ ./build.sh
CMake Deprecation Warning at CMakeLists.txt:6 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Build Configurations:
     Build as target X86_64
     CMAKE_BUILD_TYPE Release
     WAMR Interpreter enabled
     WAMR AOT enabled
     WAMR Fast JIT disabled
     WAMR LLVM ORC JIT disabled
     Libc builtin enabled
     Libc WASI disabled
     Fast interpreter enabled
     Multiple modules disabled
     Bulk memory feature enabled
     Wakeup of blocking operations enabled
     SIMD enabled
     Reference types enabled
     GC enabled
     GC performance profiling disabled
     Stringref enabled
       Using custom implementation for stringref
     Write linear memory base addr to x86 GS register disabled
     * Use libdyntype implemented based on quickjs
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/build
./build.sh: line 15: nproc: command not found
[  3%] Building ASM object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s.o
[  3%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/mem_alloc.c.o
[  4%] Building C object CMakeFiles/vmlib.dir/stringref/stringref_qjs.c.o
[  6%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/gc/gc_type.c.o
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:9:5: error: unknown directive
    .type invokeNative, @function
    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:19:10: error: unknown token in expression
    push %rbp
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:19:10: error: invalid operand
    push %rbp
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:20:9: error: unknown token in expression
    mov %rsp, %rbp
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:20:9: error: invalid operand
    mov %rsp, %rbp
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:22:9: error: unknown token in expression
    mov %rdx, %r10
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:22:9: error: invalid operand
    mov %rdx, %r10
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:23:9: error: unknown token in expression
    mov %rsp, %r11
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:23:9: error: invalid operand
    mov %rsp, %r11
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:24:13: error: unknown token in expression
    and $8, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:24:13: error: invalid operand
    and $8, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:25:5: error: unrecognized instruction mnemonic
    je check_stack_succ
    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:26:5: error: unrecognized instruction mnemonic, did you mean: hint?
    int3
    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:28:9: error: unknown token in expression
    mov %r10, %r11
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:28:9: error: invalid operand
    mov %r10, %r11
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:29:13: error: unknown token in expression
    and $1, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:29:13: error: invalid operand
    and $1, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:30:13: error: unknown token in expression
    shl $3, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:30:13: error: invalid operand
    shl $3, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:31:9: error: unknown token in expression
    sub %r11, %rsp
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:31:9: error: invalid operand
    sub %r11, %rsp
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:33:10: error: unknown token in expression
    movq %rdi, %r11
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:33:10: error: invalid operand
    movq %rdi, %r11
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:34:10: error: unknown token in expression
    movq %r10, %rcx
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:34:10: error: invalid operand
    movq %r10, %rcx
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:35:17: error: unexpected token in argument list
    lea 128+48-8(%rsi,%rcx,8), %r10
                ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:36:9: error: unknown token in expression
    sub %rsp, %r10
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:36:9: error: invalid operand
    sub %rsp, %r10
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:37:14: error: unknown token in expression
    cmpq $0, %rcx
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:37:14: error: invalid operand
    cmpq $0, %rcx
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:38:5: error: unrecognized instruction mnemonic
    je push_args_end
    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:40:11: error: unexpected token in argument list
    push 0(%rsp,%r10)
          ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:41:5: error: unrecognized instruction mnemonic
    loop push_args
    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:44:16: error: unexpected token in argument list
    movdqu 0x00(%rsi), %xmm0
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:45:16: error: unexpected token in argument list
    movdqu 0x10(%rsi), %xmm1
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:46:16: error: unexpected token in argument list
    movdqu 0x20(%rsi), %xmm2
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:47:16: error: unexpected token in argument list
    movdqu 0x30(%rsi), %xmm3
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:48:16: error: unexpected token in argument list
    movdqu 0x40(%rsi), %xmm4
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:49:16: error: unexpected token in argument list
    movdqu 0x50(%rsi), %xmm5
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:50:16: error: unexpected token in argument list
    movdqu 0x60(%rsi), %xmm6
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:51:16: error: unexpected token in argument list
    movdqu 0x70(%rsi), %xmm7
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:54:14: error: unexpected token in argument list
    movq 0x80(%rsi), %rdi
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:55:14: error: unexpected token in argument list
    movq 0x90(%rsi), %rdx
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:56:14: error: unexpected token in argument list
    movq 0x98(%rsi), %rcx
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:57:14: error: unexpected token in argument list
    movq 0xa0(%rsi), %r8
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:58:14: error: unexpected token in argument list
    movq 0xa8(%rsi), %r9
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:59:14: error: unexpected token in argument list
    movq 0x88(%rsi), %rsi
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:61:10: error: invalid token in expression
    call *%r11
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:61:10: error: invalid operand
    call *%r11
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:62:5: error: unrecognized instruction mnemonic
    leave
    ^
make[2]: *** [CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/shared/mem-alloc/mem_alloc.c:11:
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/shared/mem-alloc/ems/ems_gc.h:73:16: error: redefinition of typedef 'gc_finalizer_t' is a C11 feature [-Werror,-Wtypedef-redefinition]
typedef void (*gc_finalizer_t)(void *obj, void *data);
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/shared/mem-alloc/mem_alloc.h:20:16: note: previous definition is here
typedef void (*gc_finalizer_t)(void *obj, void *data);
               ^
1 error generated.
In file included from /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/stringref/stringref_qjs.c:8:
In file included from /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/libdyntype/dynamic-qjs/type.h:7:
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/quickjs/cutils.h:52:13: error: redefinition of typedef 'BOOL' is a C11 feature [-Werror,-Wtypedef-redefinition]
typedef int BOOL;
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/quickjs/quickjs.h:55:13: note: previous definition is here
typedef int BOOL;
            ^
make[2]: *** [CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/mem_alloc.c.o] Error 1
1 error generated.
make[2]: *** [CMakeFiles/vmlib.dir/stringref/stringref_qjs.c.o] Error 1
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/gc/gc_type.c:753:1: error: unused function 'wasm_is_reftype_supers_of_extern' [-Werror,-Wunused-function]
wasm_is_reftype_supers_of_extern(uint8 type)
^
1 error generated.
make[2]: *** [CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/gc/gc_type.c.o] Error 1
make[1]: *** [CMakeFiles/vmlib.dir/all] Error 2
make: *** [all] Error 2

Hi, thanks for reporting this bug!
The root cause is that in ./build.sh: line 15, we use nproc to retrieve the number of processor cores, which is valid in Linux, but will cause error in MacOS.
We will provide a valid script to support build in MacOS!

Hi, we updated cmake file, now you can build iwasm_gc by the following command:
./build.sh -DWAMR_BUILD_PLATFORM="darwin" -DWAMR_BUILD_TARGET=ARM64

Then you can find iwasm_gc in runtime-library/build.
Please let me know if any other error occurs, thanks a lot!

Hi, we updated cmake file, now you can build iwasm_gc by the following command:
./build.sh -DWAMR_BUILD_PLATFORM="darwin" -DWAMR_BUILD_TARGET=ARM64

Then you can find iwasm_gc in runtime-library/build.
Please let me know if any other error occurs, thanks a lot!

still have errors
➜  Wasmnizer-ts/runtime-library main ✗ ./build.sh -DWAMR_BUILD_PLATFORM="darwin" -DWAMR_BUILD_TARGET=ARM64
Cloning into 'quickjs'...
remote: Enumerating objects: 69, done.
remote: Counting objects: 100% (69/69), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 69 (delta 7), reused 25 (delta 4), pack-reused 0
Receiving objects: 100% (69/69), 612.04 KiB | 1.53 MiB/s, done.
Resolving deltas: 100% (7/7), done.
Cloning into 'wamr-gc'...
remote: Enumerating objects: 1752, done.
remote: Counting objects: 100% (1752/1752), done.
remote: Compressing objects: 100% (1448/1448), done.
remote: Total 1752 (delta 348), reused 940 (delta 225), pack-reused 0
Receiving objects: 100% (1752/1752), 4.80 MiB | 3.70 MiB/s, done.
Resolving deltas: 100% (348/348), done.
CMake Deprecation Warning at CMakeLists.txt:6 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is AppleClang <IP_ADDRESS>00100
-- The CXX compiler identification is AppleClang <IP_ADDRESS>00100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build Configurations:
     Build as target X86_64
     CMAKE_BUILD_TYPE Release
     WAMR Interpreter enabled
     WAMR AOT enabled
     WAMR Fast JIT disabled
     WAMR LLVM ORC JIT disabled
     Libc builtin enabled
     Libc WASI disabled
     Fast interpreter enabled
     Multiple modules disabled
     Bulk memory feature enabled
     Wakeup of blocking operations enabled
     SIMD enabled
     Reference types enabled
     GC enabled
     GC performance profiling disabled
     Stringref enabled
       Using custom implementation for stringref
-- The ASM compiler identification is AppleClang
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc
     * Use libdyntype implemented based on quickjs
-- Configuring done (0.5s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/build
./build.sh: line 15: nproc: command not found
[  1%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/darwin/platform_init.c.o
[  3%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_blocking_op.c.o
[  4%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_malloc.c.o
[  7%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_memmap.c.o
[  9%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_sleep.c.o
[  9%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_thread.c.o
[ 10%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_assert.c.o
[ 12%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/ems/ems_hmu.c.o
[ 14%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/ems/ems_kfc.c.o
[ 15%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_log.c.o
[ 17%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_hashmap.c.o
[ 18%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_common.c.o
[ 20%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_queue.c.o
[ 21%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/ems/ems_alloc.c.o
[ 23%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_time.c.o
[ 25%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_exec_env.c.o
[ 26%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_memory.c.o
[ 28%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/ems/ems_gc.c.o
[ 29%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/libraries/libc-builtin/libc_builtin_wrapper.c.o
[ 31%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_list.c.o
[ 32%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_native.c.o
[ 34%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_vector.c.o
[ 35%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_blocking_op.c.o
[ 37%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_application.c.o
[ 39%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/mem_alloc.c.o
[ 40%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_c_api.c.o
[ 42%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/runtime_timer.c.o
[ 43%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_bitmap.c.o
In file included from /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/shared/mem-alloc/mem_alloc.c:11:
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/shared/mem-alloc/ems/ems_gc.h:73:16: warning: redefinition of typedef 'gc_finalizer_t' is a C11 feature [-Wtypedef-redefinition]
typedef void (*gc_finalizer_t)(void *obj, void *data);
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/shared/mem-alloc/mem_alloc.h:20:16: note: previous definition is here
typedef void (*gc_finalizer_t)(void *obj, void *data);
               ^
1 warning generated.
[ 45%] Building ASM object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s.o
[ 46%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/interpreter/wasm_loader.c.o
[ 48%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/aot/aot_runtime.c.o
[ 51%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_shared_memory.c.o
[ 51%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/aot/aot_loader.c.o
[ 53%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/interpreter/wasm_runtime.c.o
[ 54%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/interpreter/wasm_interp_fast.c.o
[ 57%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/gc/gc_type.c.o
[ 59%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_runtime_common.c.o
[ 60%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/aot/arch/aot_reloc_x86_64.c.o
[ 60%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/gc/gc_common.c.o
[ 62%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/gc/gc_object.c.o
[ 64%] Building C object CMakeFiles/vmlib.dir/stringref/stringref_qjs.c.o
[ 65%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/aot/aot_intrinsic.c.o
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:19:10: error: unknown token in expression
    push %rbp
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:19:10: error: invalid operand
    push %rbp
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:20:9: error: unknown token in expression
    mov %rsp, %rbp
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:20:9: error: invalid operand
    mov %rsp, %rbp
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:22:9: error: unknown token in expression
    mov %rdx, %r10
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:22:9: error: invalid operand
    mov %rdx, %r10
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:23:9: error: unknown token in expression
    mov %rsp, %r11
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:23:9: error: invalid operand
    mov %rsp, %r11
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:24:13: error: unknown token in expression
    and $8, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:24:13: error: invalid operand
    and $8, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:25:5: error: unrecognized instruction mnemonic
    je check_stack_succ
    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:26:5: error: unrecognized instruction mnemonic, did you mean: hint?
    int3
    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:28:9: error: unknown token in expression
    mov %r10, %r11
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:28:9: error: invalid operand
    mov %r10, %r11
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:29:13: error: unknown token in expression
    and $1, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:29:13: error: invalid operand
    and $1, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:30:13: error: unknown token in expression
    shl $3, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:30:13: error: invalid operand
    shl $3, %r11
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:31:9: error: unknown token in expression
    sub %r11, %rsp
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:31:9: error: invalid operand
    sub %r11, %rsp
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:33:10: error: unknown token in expression
    movq %rdi, %r11
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:33:10: error: invalid operand
    movq %rdi, %r11
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:34:10: error: unknown token in expression
    movq %r10, %rcx
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:34:10: error: invalid operand
    movq %r10, %rcx
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:35:17: error: unexpected token in argument list
    lea 128+48-8(%rsi,%rcx,8), %r10
                ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:36:9: error: unknown token in expression
    sub %rsp, %r10
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:36:9: error: invalid operand
    sub %rsp, %r10
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:37:14: error: unknown token in expression
    cmpq $0, %rcx
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:37:14: error: invalid operand
    cmpq $0, %rcx
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:38:5: error: unrecognized instruction mnemonic
    je push_args_end
    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:40:11: error: unexpected token in argument list
    push 0(%rsp,%r10)
          ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:41:5: error: unrecognized instruction mnemonic
    loop push_args
    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:44:16: error: unexpected token in argument list
    movdqu 0x00(%rsi), %xmm0
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:45:16: error: unexpected token in argument list
    movdqu 0x10(%rsi), %xmm1
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:46:16: error: unexpected token in argument list
    movdqu 0x20(%rsi), %xmm2
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:47:16: error: unexpected token in argument list
    movdqu 0x30(%rsi), %xmm3
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:48:16: error: unexpected token in argument list
    movdqu 0x40(%rsi), %xmm4
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:49:16: error: unexpected token in argument list
    movdqu 0x50(%rsi), %xmm5
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:50:16: error: unexpected token in argument list
    movdqu 0x60(%rsi), %xmm6
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:51:16: error: unexpected token in argument list
    movdqu 0x70(%rsi), %xmm7
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:54:14: error: unexpected token in argument list
    movq 0x80(%rsi), %rdi
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:55:14: error: unexpected token in argument list
    movq 0x90(%rsi), %rdx
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:56:14: error: unexpected token in argument list
    movq 0x98(%rsi), %rcx
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:57:14: error: unexpected token in argument list
    movq 0xa0(%rsi), %r8
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:58:14: error: unexpected token in argument list
    movq 0xa8(%rsi), %r9
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:59:14: error: unexpected token in argument list
    movq 0x88(%rsi), %rsi
             ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:61:10: error: invalid token in expression
    call *%r11
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:61:10: error: invalid operand
    call *%r11
         ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s:62:5: error: unrecognized instruction mnemonic
    leave
    ^
make[2]: *** [CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/arch/invokeNative_em64_simd.s.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/stringref/stringref_qjs.c:8:
In file included from /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/libdyntype/dynamic-qjs/type.h:7:
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/quickjs/cutils.h:52:13: warning: redefinition of typedef 'BOOL' is a C11 feature [-Wtypedef-redefinition]
typedef int BOOL;
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/quickjs/quickjs.h:55:13: note: previous definition is here
typedef int BOOL;
            ^
1 warning generated.
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/gc/gc_type.c:753:1: warning: unused function 'wasm_is_reftype_supers_of_extern' [-Wunused-function]
wasm_is_reftype_supers_of_extern(uint8 type)
^
1 warning generated.
make[1]: *** [CMakeFiles/vmlib.dir/all] Error 2
make: *** [all] Error 2

Hi, we updated cmake file, now you can build iwasm_gc by the following command:
./build.sh -DWAMR_BUILD_PLATFORM="darwin" -DWAMR_BUILD_TARGET=ARM64

Then you can find iwasm_gc in runtime-library/build.
Please let me know if any other error occurs, thanks a lot!

Hi, we updated build.sh so that it can accept all the arguments, please build again using the above comment with the latest code, thanks!

Hi, we updated cmake file, now you can build iwasm_gc by the following command:
./build.sh -DWAMR_BUILD_PLATFORM="darwin" -DWAMR_BUILD_TARGET=ARM64

Then you can find iwasm_gc in runtime-library/build.
Please let me know if any other error occurs, thanks a lot!

Hi, we updated build.sh so that it can accept all the arguments, please build again using the above commend with the latest code, thanks!

  Wasmnizer-ts/runtime-library main ✗ ./build.sh -DWAMR_BUILD_PLATFORM="darwin" -DWAMR_BUILD_TARGET=ARM64
Cloning into 'quickjs'...
remote: Enumerating objects: 69, done.
remote: Counting objects: 100% (69/69), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 69 (delta 7), reused 25 (delta 4), pack-reused 0
Receiving objects: 100% (69/69), 612.04 KiB | 1.35 MiB/s, done.
Resolving deltas: 100% (7/7), done.
Cloning into 'wamr-gc'...
remote: Enumerating objects: 1752, done.
remote: Counting objects: 100% (1752/1752), done.
remote: Compressing objects: 100% (1448/1448), done.
remote: Total 1752 (delta 348), reused 937 (delta 225), pack-reused 0
Receiving objects: 100% (1752/1752), 4.80 MiB | 7.93 MiB/s, done.
Resolving deltas: 100% (348/348), done.
CMake Deprecation Warning at CMakeLists.txt:6 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is AppleClang <IP_ADDRESS>00100
-- The CXX compiler identification is AppleClang <IP_ADDRESS>00100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test M32_OK
-- Performing Test M32_OK - Success
-- Build Configurations:
     Build as target ARM64
     CMAKE_BUILD_TYPE Release
     WAMR Interpreter enabled
     WAMR AOT enabled
     WAMR Fast JIT disabled
     WAMR LLVM ORC JIT disabled
     Libc builtin enabled
     Libc WASI disabled
     Fast interpreter enabled
     Multiple modules disabled
     Bulk memory feature enabled
     Wakeup of blocking operations enabled
     SIMD enabled
     Reference types enabled
     GC enabled
     GC performance profiling disabled
     Stringref enabled
       Using custom implementation for stringref
-- The ASM compiler identification is AppleClang
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc
     * Use libdyntype implemented based on quickjs
-- Configuring done (1.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/build
./build.sh: line 15: nproc: command not found
[  3%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_thread.c.o
[  4%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/ems/ems_alloc.c.o
[  6%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_sleep.c.o
[  6%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_blocking_op.c.o
[  9%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_malloc.c.o
[  9%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/darwin/platform_init.c.o
[ 12%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_assert.c.o
[ 12%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_memmap.c.o
[ 14%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/mem_alloc.c.o
[ 15%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_bitmap.c.o
[ 17%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/ems/ems_hmu.c.o
[ 18%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/ems/ems_gc.c.o
[ 20%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/platform/common/posix/posix_time.c.o
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
[ 23%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_c_api.c.o
[ 23%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_application.c.o
[ 25%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_memory.c.o
[ 26%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_native.c.o
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
[ 28%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/mem-alloc/ems/ems_kfc.c.o
[ 29%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_hashmap.c.o
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
[ 31%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_exec_env.c.o
[ 32%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/libraries/libc-builtin/libc_builtin_wrapper.c.o
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
[ 37%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_runtime_common.c.o
[ 37%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_log.c.o
[ 37%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_common.c.o
[ 39%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_list.c.o
[ 40%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_blocking_op.c.o
[ 42%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_vector.c.o
[ 43%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/interpreter/wasm_loader.c.o
[ 45%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/bh_queue.c.o
[ 48%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/interpreter/wasm_interp_fast.c.o
[ 48%] Building ASM object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s.o
[ 50%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/shared/utils/runtime_timer.c.o
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
[ 51%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/wasm_shared_memory.c.o
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
[ 53%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/interpreter/wasm_runtime.c.o
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
[ 54%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/aot/arch/aot_reloc_arm.c.o
[ 56%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/gc/gc_type.c.o
[ 57%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/aot/aot_loader.c.o
[ 59%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/gc/gc_common.c.o
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:24:21: error: vector register expected
        stmfd sp!, {r4, r5, r6, r7, lr}
                    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:24:23: error: unknown token in expression
        stmfd sp!, {r4, r5, r6, r7, lr}
                      ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:24:23: error: invalid operand
        stmfd sp!, {r4, r5, r6, r7, lr}
                      ^
[ 60%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/gc/gc_object.c.o
[ 62%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/aot/aot_intrinsic.c.o
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:26:13: error: invalid operand for instruction
        mov ip, r0
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:27:13: error: invalid operand for instruction
        mov r4, r1
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:28:13: error: invalid operand for instruction
        mov r5, r2
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:30:13: error: invalid operand for instruction
        cmp r5, #1
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:33:13: error: invalid operand for instruction
        mov r6, #0
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:35:13: error: invalid operand for instruction
        ldr r0, [r4], #4
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:36:13: error: invalid operand for instruction
        cmp r5, #1
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:39:13: error: invalid operand for instruction
        ldr r1, [r4], #4
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:40:13: error: invalid operand for instruction
        cmp r5, #2
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:43:13: error: invalid operand for instruction
        ldr r2, [r4], #4
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:44:13: error: invalid operand for instruction
        cmp r5, #3
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:47:13: error: invalid operand for instruction
        ldr r3, [r4], #4
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:48:13: error: invalid operand for instruction
        cmp r5, #4
       [ 64%] Buildiclang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
ng C object CMakeFiles/vmlib.dir/stringref/stringref_qjs.c.o
     ^
[ 65%] Building C object CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/aot/aot_runtime.c.o
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:51:13: error: invalid operand for instruction
        sub r5, r5, #4
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:54:13: error: invalid operand for instruction
        mov r6, r5, lsl#2
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:55:13: error: invalid operand for instruction
        add r6, r6, #7
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:56:13: lang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
1;31mIn file included from error: /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/shared/mem-alloc/mem_alloc.c:11:
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/shared/mem-alloc/ems/ems_gc.h:73:16: warning: redefinition of typedef 'gc_finalizer_t' is a C11 feature [-Wtypedef-redefinition]
typedef void (*gc_finalizer_t)(void *obj, void *data);
               ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/shared/mem-alloc/mem_alloc.h:20:16: note: previous definition is here
typedef void (*gc_finalizer_t)(void *obj, void *data);
               ^
invalid operand for instruction
        bic r6, r6, #7
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:57:21: error: expected compatible register, symbol or integer in range [0, 4095]
        sub sp, sp, r6
                    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:58:13: error: invalid operand for instruction
        mov r7, sp
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:61:13: error: invalid operand for instruction
        cmp r5, #0
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:63:18: error: invalid operand for instruction
^[[?62;cclang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
        ldr lr, [r4], #4
                 ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:64:18: error: invalid operand for instruction
        str lr, [r7], #4
                 ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:65:13: error: invalid operand for instruction
        sub r5, r5, #1
            ^
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:69:9: error: unrecognized instruction mnemonic, did you mean: b, bl, blr, bsl, tbl, tbx?
        blx ip
        ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:70:21: error: expected compatible register, symbol or integer in range [0, 4095]
        add sp, sp, r6
                    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:74:21: error: vector register expected
        ldmfd sp!, {r4, r5, r6, r7, lr}
                    ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:74:23: error: unknown token in expression
        ldmfd sp!, {r4, r5, r6, r7, clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
lr}
                      ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:74:23: error: invalid operand
        ldmfd sp!, {r4, r5, r6, r7, lr}
                      ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s:75:9: error: unrecognized instruction mnemonic, did you mean: b, bcax, bl, br, sb, tbx?
        bx lr
        ^
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
make[2]: *** [CMakeFiles/vmlib.dir/deps/wamr-gc/core/iwasm/common/arch/invokeNative_arm.s.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 warning generated.
clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
In file included from /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/stringref/stringref_qjs.c:8:
In file included from /Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/libdyntype/dynamic-qjs/type.h:7:
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/quickjs/cutils.h:52:13: warning: redefinition of typedef 'BOOL' is a C11 feature [-Wtypedef-redefinition]
typedef int BOOL;
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/quickjs/quickjs.h:55:13: note: previous definition is here
typedef int BOOL;
            ^
/Users/fgui/PersonalSpace/Wasmnizer-ts/runtime-library/deps/wamr-gc/core/iwasm/common/gc/gc_type.c:753:1: warning: unused function 'wasm_is_reftype_supers_of_extern' [-Wunused-function]
wasm_is_reftype_supers_of_extern(uint8 type)
^
1 warning generated.
1 warning generated.
make[1]: *** [CMakeFiles/vmlib.dir/all] Error 2
make: *** [all] Error 2

Hi, thanks for pointing out this bug!
We checked the code, for arm64, the following command is right:
./build.sh -DWAMR_BUILD_PLATFORM="darwin" -DWAMR_BUILD_TARGET=arm64

Sorry for the misunderstanding of the previous comment, please try again, thanks!

Hi, we received your reported bug, and we will figure out the solution ASAP.

@beautiful-boyyy Hi, could you replace -DWAMR_BUILD_TARGET=ARM64 to -DWAMR_BUILD_TARGET=AARCH64 when executing the build script and try again?

@beautiful-boyyy Hi, could you replace -DWAMR_BUILD_TARGET=ARM64 to -DWAMR_BUILD_TARGET=AARCH64 when executing the build script and try again?

thanks, sloved


Fix type signatures to prevent issues with union types and Distributive Conditional Types, add support for transfer parameter of postMessage

Replaces #5.
This PR fixes issues when using conditional types as TPayload and TResult such as the following type:
type MyPayload = {
  type: "first",
  foo: number,
} | {
  type: "second",
  bar: string
};

This kind of type is useful when passing messages because it lets you define a different structure for each type of message and keep them "strongly" typed.
The original typings weren't working due to TypeScript's Distributive Conditional Types. When passing a union type into A extends B ? Foo : Bar, the conditional type will be applied to each member of that union.
It appears that the solution to this is to wrap the parameters of extends into a tuple in order to circumvent the distributive nature of the conditional.
Fixes https://github.com/johnny-quesada-developer/easy-web-worker/issues/6

Thank you!


rollup-plugin-inject failed to parse a dynamic component defined app.config.ts

Environment

Operating System: Linux
Node Version:     v16.14.2
Nuxt Version:     3.3.1
Nitro Version:    2.3.1
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      -
Runtime Modules:  -
Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-fcyste?file=app.config.ts
Describe the bug
Dynamically loading a component in app.config.ts broke after upgrading to nuxt 3.3.1.
Is working for me in nuxt 3.2.3.
I have the following in app config:
export default defineAppConfig({
  headerChunk: () => defineAsyncComponent(() => import('~~/components/Header.vue')),
})

This fails to build in 3.3.1.
Additional context
Note I can create the dynamic component in another component, but not in app.config as I can currently in 3.2.3.
Logs
rollup-plugin-inject: failed to parse /home/projects/github-fcyste/components/Header.vue. Consider restricting the plugin to particular files via options.include

 ERROR  RollupError: Unexpected token (Note that you need plugins to import files that are not JavaScript)                                              nitro 17:50:56

1: <template>
   ^
2:
3:     two

Your app config is now shared with nitro as of v3.3, which is why you are experiencing this issue. We are already discussing how to tree shake things out of it, but I'm not sure that we can currently support importing Vue components into it.
cc: @pi0

Adding a custom route following this https://nuxt.com/docs/guide/going-further/custom-routing is throwing a similar error while importing the page. Is there a workaround for this ?

I'm currently facing a similar issue. I'm trying to render a Vue component inside a server route to later convert the generated HTML to PDF.
import {EventHandlerRequest, H3Event} from "h3";
import {renderToString} from "@vue/server-renderer";
import {createSSRApp} from "vue";
import uebersicht from "~/pages/fahrradkasko/uebersicht.vue";

export default defineEventHandler(async (event: H3Event<EventHandlerRequest>) => {
    const requestBody = await readBody(event);
    const app = createSSRApp(uebersicht, requestBody)
    const content = await renderToString(app);
    console.log(content);
});

This is the error I get:
[3:10:09 PM]  WARN  (inject plugin) rollup-plugin-inject: failed to parse /Users/timopeters/dev/(...)/pages/fahrradkasko/uebersicht.vue. Consider restricting the plugin to particular files via options.include

 ERROR  RollupError: Unexpected token (Note that you need plugins to import files that are not JavaScript)                                                        nitro 3:10:09 PM

1: <template>
   ^
2:

3:
Übersicht

I'm currently facing a similar issue. I'm trying to render a Vue component inside a server route to later convert the generated HTML to PDF.
import {EventHandlerRequest, H3Event} from "h3";
import {renderToString} from "@vue/server-renderer";
import {createSSRApp} from "vue";
import uebersicht from "~/pages/fahrradkasko/uebersicht.vue";

export default defineEventHandler(async (event: H3Event<EventHandlerRequest>) => {
    const requestBody = await readBody(event);
    const app = createSSRApp(uebersicht, requestBody)
    const content = await renderToString(app);
    console.log(content);
});

This is the error I get:
[3:10:09 PM]  WARN  (inject plugin) rollup-plugin-inject: failed to parse /Users/timopeters/dev/(...)/pages/fahrradkasko/uebersicht.vue. Consider restricting the plugin to particular files via options.include

 ERROR  RollupError: Unexpected token (Note that you need plugins to import files that are not JavaScript)                                                        nitro 3:10:09 PM

1: <template>
   ^
2:

3:
Übersicht

Did you ever find a reasonable way to do this? I have a need to keep some SVG component code out/away from the client-side. So I'm trying to render the SVG string from it's component using createApp, and renderToString inside a server route event handler just like in your example. Getting the same rollup-plugin-inject error(s). Not sure how to configure Nitro to handle this.

@sfearl1

Did you ever find a reasonable way to do this?

Yes we did. Main part to "fix" it was this:
import vue from "@vitejs/plugin-vue";

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  nitro: {
    rollupConfig: {
      // @ts-ignore
      plugins: [vue()],
    },
  },
});

This is how we then render a html string from a component:
import { renderToString } from "@vue/server-renderer";
import { createSSRApp, h } from "vue";
// @ts-ignore
import UebersichtList from "~/components/steps/fahrradkasko/UebersichtList.vue";

const content = await renderToString(
  createSSRApp(
    h(UebersichtList, {
      disableReturn: true,
      disableToggle: true,
      data: requestBody.payload,
    }),
  ),
);

Might be that I am missing something else, it's been a while since we got it working. Give it a try :)

Hello, are there any updates on this issue?

Hey, can we at least have this updated in app.config.ts documentation as a known limitation as of 3.3 version & above?

just installed fresh nuxt. not even added any code. and getting
WARN  [plugin inject] ../../node_modules/nitropack/dist/runtime/entries/nitro-dev.mjs: rollup-plugin-inject: failed to parse /......../node_modules/nitropack/dist/runtime/entries/nitro-dev.mjs. Consider restricting the plugin to particular files via options.include

 ERROR  Error: Unknown node type: 1671                                     nitro 10:40:11 PM

why every time I get to nuxt it absolutely unstable and barely usable 😭

just installed fresh nuxt. not even added any code. and getting
WARN  [plugin inject] ../../node_modules/nitropack/dist/runtime/entries/nitro-dev.mjs: rollup-plugin-inject: failed to parse /......../node_modules/nitropack/dist/runtime/entries/nitro-dev.mjs. Consider restricting the plugin to particular files via options.include

 ERROR  Error: Unknown node type: 1671                                     nitro 10:40:11 PM

why every time I get to nuxt it absolutely unstable and barely usable 😭

Can you provide reproduction link?

just installed fresh nuxt. not even added any code. and getting
WARN  [plugin inject] ../../node_modules/nitropack/dist/runtime/entries/nitro-dev.mjs: rollup-plugin-inject: failed to parse /......../node_modules/nitropack/dist/runtime/entries/nitro-dev.mjs. Consider restricting the plugin to particular files via options.include

 ERROR  Error: Unknown node type: 1671                                     nitro 10:40:11 PM

why every time I get to nuxt it absolutely unstable and barely usable 😭

Can you provide reproduction link?

very problematic, part of monorepo and hard to extract. but in any case — this only happens with bun. maybe again compatibility broke somewhere

bun compatibility issues should be reported to bun 🙏

@datWeazel your solution works for me with vue SFC files that don't have a style block. when adding a style block I get:
ERROR  RollupError: app/components/Test.vue?vue&type=style&index=0&scoped=f8146ecb&lang.css (2:28): Expected ';', '}' or <eof> (Note that you need plugins to import files that are not JavaScript)

any idea on how to fix this?

@fanckush we changed our approach.
We are now leveraging the fetch API like this:
  const origin = getRequestURL(event).origin;
  let renderedPage: string = await $fetch("/server/myPage", {
    headers: { authorization: "SOME_SECRET" },
    query: {
      title: `Something`,
      data: someData,
    },
  });
  renderedPage = renderedPage.replaceAll("/_nuxt/", origin + "/_nuxt/");

renderedPagenow contains the full HTML.
We simply added a new nuxt page under /pages/server and use that as our "render source". We also added a middleware to restrict access to all pages under /pages/server.
This works for us now and even allows us to preview the page during development without having to render to PDF every time. Just make sure that the PDF renderer (or whatever) has access to the files under _nuxt so it can get all styles etc. in case you want to render the HTML to PDF or something. Hope this helps.

@datWeazel interesting approach, this should be perfect to render the the entire html and css needed! I guess only thing I need to adjust in is how I pass the data since using props doesn't work here. You are using query params, i'll probably just do the same


Fix label of metric on sample Grafana dashboard

1. Issue, if available:
None
2. Description of changes:
Fixed a label for one of the panels in the sample Grafana dashboards
3. How was this change tested?
Imported and verified it myself
4. Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: link to issue
[X] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

LGTM


How can I get fuel consumption in CARLA

Dear CARLA team, thank for doing great work.
Is there any mechanism to compute the fuel consumption for the car in CARLA? If not, is there any possibility to change the Unreal Editor to compute the fuel consumption? Is there any idea for that?

Any idea for this tread?

I'm also interested in that.

This would be useful for our efforts as well.

Has anyone found a way to implement this in CARLA, or with a CARLA-SUMO co-sim? This is a large part of what I was hoping to use CARLA for.


Manual smart quotes

The file standard-library.md contains a large amount of HTML text which is not processed
by the smarten tool. This text originated in the CLR Standard and mostly has typographic
quotes already, but there were a few omissions and inconsistencies. This fixes those.

@BillWagner: Yes those two were intentional; when I went to fix them I noticed an inconsistency in the original as the ones just above are not quoted so I just deleted them.

On 12/03/2022, at 4:38 am, Bill Wagner @.***> wrote:
@BillWagner approved this pull request.
This LGTM @Nigel-Ecma https://github.com/Nigel-Ecma
I did have one question.
In standard/standard-library.md https://github.com/dotnet/csharpstandard/pull/489#discussion_r824832223:

@@ -529,7 +529,7 @@ property.

f
Fixed-Point Format: Used for strings in the following
 form:
-          "[-]m.dd...d"
+          [-]m.dd...d
Here, you removed the quotes but didn't add smart quotes. Was that intentional?
—
Reply to this email directly, view it on GitHub https://github.com/dotnet/csharpstandard/pull/489#pullrequestreview-907386565, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSYVW6FXSF43J4VEMVX42DU7NSFZANCNFSM5QN7BS5Q.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.


Improve README

README instructions are not sufficient for seamless installation/setup

Would love to work on this issue.

Would love to work on this issue.

I had added some info to the readme but feel free to go through it also and make changes

Ivy worked on it.


Add solution to leetcode problem 222

Is there an existing issue for this?

[X] I have searched the existing issues

Issue Description
Add solution to leetcode problem 222 in c++ , python etc.
Suggested Change
Add solution to leetcode problem 222 in c++ , python etc.
Rationale
this will help users facing difficulty in that problem.
Urgency
High
Acknowledgements

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository
[X] I have read and followed the Contribution Guidelines
[X] I have followed the code style guidelines of this project
[X] I have checked for any existing open issues that my pull request may address
[X] I have ensured that my changes do not break any existing functionality
[X] Each contributor is allowed to create a maximum of 4 issues per day. This helps us manage and address issues efficiently
[X] I have read the resources for guidance listed below
[X] I have not used AI-generated content (e.g., ChatGPT, other AI tools)
[X] I have not used content from existing sites (e.g., text, images)
[X] I have followed all security rules and only shared trusted resources

@Ajay-Dhangar please assign me this issue


Resource auto detection logging

Which problem is this PR solving?

Fixes #920

Short description of the changes

Added ResourceDetectionConfig interface to be optionally taken in by the detectResources function. Currently only configurable field is the logger, which must adhere to the logging interface specified in opentelemetry-api

Added unit tests for logger functionality

@mwear I've modified the Detector interface to optionally take in the ResourceDetectionConfig, but I'm not familiar with what information is valuable from each detector. Perhaps another contributor could  make use of the logger within the detectors.


feat(wss): expose WebsocketServer as a context prop

Related to this https://github.com/sibelius/graphql-ws-multiserver/pull/1/files#diff-841254fe75488c1bd4cd7f68f00b4be0e48dcfbc4a16b45847b68295e0e3b27bR78
I need to pass the WebSocket server to https://github.com/enisdenjo/graphql-transport-ws to let it handle sockets messages
so I need to handle upgrade myself in user land

do you need any help here?

As a matter of fact, yes, and thanks for prompting me on this.
Most of the issue is conflict resolution: ctx.ws is not a mandatory property, you can deconflict it with the propertyName property on the websocket() middleware (specifically, websocket('otherWs') should result in ctx.otherWs). Therefore, I'd be apprehensive of a mandatory ctx.wss property.
That said, it's relatively easy to add this as an option, with something like this:
if (options.exposeServerOn) ctx[options.exposeServerOn] = wss

The actual difficulty (for me, at least) is in keeping up the typings. I'm not a TS developer and rarely use the language for anything, even as it stands right now the typings in this package have been contributed by others in pull requests. We could probably do this feature, and it would work perfectly in pure JS, but TS would throw a fit.
That said, thanks for the prompt, got some ideas while writing this. Can't do it right now, but I'll merge this soon and figure something out for the TS part.

Okay, changes should be live in 2.1.0. The pure JS functionality is tested and works for sure, and I hope the typings work, although idk how to test that part, VS Code doesn't seem to recognize any context props.


Dorako UI was throwing a gigantic error on console every single time a token was selected or deselected.

I don't know how to explain better than this. It threw this error for every token in a scene when foundry started, then again once each time a token was selected or deselected. Tried using find the culprit and it pointed Dorako UI as being the reason and it was. I wil try to investigate further to find what module interaction was causing it.

Running Find The Culprit with only Dorako Pinned still renders all these errors to the console on startup. But it does not render them when I select or deselect a token.

I assume you're using some sort of module that is creating nonstandard chat messages - presumably some sort of turn markers?
That could explain the errors you see on startup. If something is happening when you select tokens, but not with just Dorako UI enabled, that is possible the module that also created the messages in the first place.

The error is not module depended. It shows up in a new world with only Dorako UI (and UX) enabled.
The default setting for Chat message headers is Disabled and with this setting, nothing is passed to https://github.com/Dorako/pf2e-dorako-ui/blob/54a885105e6aff51d867ba3558a497af48f71e47/esmodules/message-hooks.js#L74-L77 resulting in headerColor being undefined, when line 75 tries to access substr


Adding onTap on ExpandablePanel

I think it's important to add callback parameter on ExpandablePanel state changed. i know that we can achieve this with listen to ExpandableController as well, but it's a little bit complicated because we need to create, listen, and dispose controller. Please consider to merge this PR :)

Any update of this pull req ?

This is a heavily desired feature.  Can this PR move forward?

@jlandau10  The solution I'm using now is to copy this repository to my personal repository (fork), then I make my own pull request that takes from this branch.

@jlandau10 The solution I'm using now is to copy this repository to my personal repository (fork), then I make my own pull request that takes from this branch.

maybe a bit better than having to re-edit the package file every time it gets cleaned, thanks!


Fix a couple typos and change the soname of the library.

Codecov Report

Merging #402 into oslogin will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           oslogin     #402   +/-   ##
========================================
  Coverage    98.36%   98.36%
========================================
  Files           38       38
  Lines         3004     3004
  Branches       143      143
========================================
  Hits          2955     2955
  Misses          43       43
  Partials         6        6

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b7bf1bd...aaf319e. Read the comment docs.


Problem with GLIBC version since version 2.1.0

When I update the @jsiebern/bs-material-ui-ppx to a version higher than 2.0.1 (or to the rescript-material-ui-ppx) and try to build my project in a docker container running on the latest official "node" image, I get this error: version GLIBC_2.29 not found (required by ... which is caused by the ppx library.

Thanks for the report! This is the same problem as in https://github.com/rescript-lang/rescript-vscode/issues/216.
We will change the CI build to use ubuntu-18.04 instead of ubuntu-latest to fix this.

Hello,
is there any plan for when is this fix going to be released? The last version is still 2.1.2 from May.

Sorry, we are currently very busy. There are some open issues which prevent us from doing the next release. We try to fix them as soon as possible.
I cannot give you any promises, but we are aiming for somewhere in November.


How to start the container ?

I have created the container but I can't modify the meetings.csv because it's not a file but a directory
So I remove it and create a new csv file but it still doesn't work
I have this error :
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/ubuntu/meetings.csv" to rootfs at "/home/zoomrec/meetings.csv" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
For start the container I have done :
docker run -d --restart unless-stopped
-e TZ=Europe/Paris
-v $(pwd)/recordings:/home/zoomrec/recordings
-v $(pwd)/meetings.csv:/home/zoomrec/meetings.csv:ro
-p 5901:5901
kastldratza/zoomrec:latest

The meetings.csv must be located in the same folder from where Docker command is executed. -> "$(pwd)/meetings.csv"

Yes

Okay. So you need to run the startup command under /home/ubuntu/.
cd /home/ubuntu
docker run -d --restart unless-stopped  -e TZ=Europe/Paris  -v $(pwd)/recordings:/home/zoomrec/recordings -v $(pwd)/meetings.csv:/home/zoomrec/meetings.csv:ro -p 5901:5901 kastldratza/zoomrec:latest


Commit src/lib

@andrerpena Please, commit src/lib directory.

I'm sorry.. src/lib was being .gitignored and it took me a while to realize that.

Where is the src/lib/text-expression-evaluator.js?


Relationships as list view table columns

Environment

Python version: 3.8
Nautobot version: 1.2.4

Proposed Functionality
As Nelly the Network Engineer, I want to be able to show the software version of a device, which is provided as a relationship from the DLM plugin, in the device list view table, so that I can easily see multiple versions across devices.

Use Case
Like #1316 the root issue is an unintuitive lack of feature support for relationships, compared to other areas of the application, like custom fields.

Database Changes
Probably none, but like #1316 we might need to look more deeply at the relationship model.

External Dependencies
None

Duplicate of #1468


Session Lost for CI 3.1.13 on Page Refresh

Discussed in https://github.com/bcit-ci/CodeIgniter/discussions/6247

Originally posted by mertdogan November 14, 2023
Hi. I started a new CI project with CI 3.1.13.
When i refresh page everything on session lost (still on database table) and new session created.
I replaced my new system/library/session folder with CI 3.1.11 (ini_set('session.id', $params['cookie_name']); tricked) and everything works without problem and session not lost.
my simple code at controller is:
	public function test(){
		$this->load->library('session');
		var_dump(isset($_SESSION['x'])?$_SESSION['x']:null);
		$_SESSION['x']='123';
		var_dump($_SESSION['x']);
	}

when i refresh page for CI3.1.13 than NULL 123 occurs but when i load with CI3.1.11 123 123 occurs on second page load.
I test everything on stackoverflow but can't solve problem.
my php version is 7.1.19 on IIS and using database driver for session. This is my config setting:
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ODEME_PORTAL_COOKIE';
$config['sess_samesite'] = 'None';
$config['sess_expiration'] = 0;
$config['sess_save_path'] = 'CI_SESSIONS';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix'   = Set a cookie name prefix if you need to avoid collisions
| 'cookie_domain'   = Set to .your-domain.com for site-wide cookies
| 'cookie_path'     = Typically will be a forward slash
| 'cookie_secure'   = Cookie will only be set if a secure HTTPS connection exists.
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
| 'cookie_samesite' = Cookie's samesite attribute (Lax, Strict or None)
|
| Note: These settings (with the exception of 'cookie_prefix' and
|       'cookie_httponly') will also affect sessions.
|
*/
$config['cookie_prefix']	= '';
$config['cookie_domain']	= '';
$config['cookie_path']		= '/';
$config['cookie_secure']	= FALSE;
$config['cookie_httponly'] 	= FALSE;
$config['cookie_samesite'] 	= 'None';

I had a similiar (maybe same) issue with the session cookie being samesite none and secure none on a localhost with self-signed ssl cert. Even on localhost the browsers did not like that. Chrome did not set the cookie at all and Safari made it samesite lax. Now it works when I use mkcert in my docker dev environment and on my mac host, so I have a valid cert everywhere. And cookie secure set to true.

I don't think it's an issue, I couldn't replicate it (see the aforementioned discussion).

I don't think it's an issue, I couldn't replicate it (see the aforementioned discussion).

No, not an CI issue. It is just a matter of many browsers not accepting cookies with samesite none combined with non-secure (http or https self-signed cert). A configuration issue.

@mertdogan check your log files -> you should have errors with this configuration:
https://github.com/bcit-ci/CodeIgniter/blob/3.1-stable/system/libraries/Session/Session.php#L183
also, take a look at this article:
[https://web.dev/articles/samesite-cookies-explained

](https://web.dev/articles/samesite-cookies-explained#samesitenone_must_be_secure)

in short: a session with SameSite=None without the Secure parameter will not be saved in the browser's cookie jar, so your session will be new with every page refresh

@mertdogan I tried the same thing, it works for me on localhost using 8.3 but not on Azure Web services


Fix rustls-tls feature

Commit 14e74879 (cookie support #1146) re-introduced an unconditional
dependency on the openssl-sys crate. That is, building Lychee with the
Rustls TLS backend now requires OpenSSL. I suppose this change was
unintended, maybe due to automatic conflict resolution. If not, please
let me know.
You can review the re-introduced dependency like so:
cargo tree --no-default-features --features rustls-tls -i openssl-sys

This commit puts the OpenSSL dependency behind the native-tls feature
flag again.
You can check the TLS features like so:
cargo check --workspace --all-targets --features vendored-openssl

cargo check --workspace --all-targets --all-features

cargo check --workspace --all-targets --no-default-features --features rustls-tls

Maybe this should be added to CI. But I don't want to waste anybody's
time.

Ah right, nice catch! It certainly wasn't intended, and we should add a check to CI/CD. Want to add it right away? I don't think it will significantly impact the CI runtime, as the crate should be built when we run the check. If it takes too long, we can also move it to the release pipeline.

I've added a new CI job to check the TLS feature flags. It looks like it does work on my fork, but I'm not that familiar with Github Actions 😅

I was mistaken. Seems like check-feature-flags takes 33 seconds in the pipeline, and it runs next to the other checks, so nothing to worry about(?). I will go ahead and merge this. If it's causing problems, we can always refactor or move it into a separate pipeline.
Thanks for the fix and for caring about that part @stefankreutz. ⭐


Adding Customer Thermometer to docs

Adding a rating functionality to the documentation.

Closing this PR as we're going with a custom UI as per: MM-23098


TODO: Make Steam Directly Useful

Now that steam creation is pretty much All Good except for alternate sources (which are under progress; one alt source is awaiting a mod upload to Maven and the other is awaiting a Forge PR) and improved scanning code, I feel that I should add steam turbines/pistons/whatnot to make steam DIRECTLY useful without having to depend on another mod!
What needs to be thought about:

[x] What should the generation calculations be? How should the multiblock affect the calculations?
[x] What parts should the generator multiblock have?
[x] What material should the parts be made out of?
[x] What constraints should the multiblock have?

Turbines are almost 100% done!! Just waiting on a couple textures from @insomniakitten and it's ready to release!


Make layers.Dot11's DecodeFromBytes method properly reset the structure.

Sets the DataLayer field to nil at the start of DecodeFromBytes. This appears to fix #693.

Thanks for the fix


Undefined functions in SmartLight.ino

'mDashShadowDeltaSubscribe' was not declared in this scope
'mDashGetState' was not declared in this scope
'MDASH_CONNECTED' was not declared in this scope
'mDashShadowUpdate' was not declared in this scope

Updated https://github.com/cesanta/mdash


[stable/prometheus-operator] add 'scrapeTimeout' to node-exporter servicemonitor

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

No
What this PR does / why we need it:
Add the 'scrapeTimeout' config value to prometheus-operator's node-exporter servicemonitor. This allows node-exporter to have different scrapeTimeout value, which is useful, especially when it's allowed to set different scrape interval for node-exporter (through the 'interval' config value).
Which issue this PR fixes
Special notes for your reviewer:
Have locally tested this PR with helm lint and install.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/lgtm

/ok-to-test


8385.7 Add install button to add-ons panel

Shippable/pm#8385
Add a button to the add-ons panel. Enable the selected master integrations and disable the others on click.

complete. closing.


Wrappers require admin permissions to load

Users have reported that wrappers do not work unless the game is run as admin. This was not the case in the previous versions.
I need reports from users who are able to run the Overwatch wrapper.  What OS are you using? What RGB devices do you have?

I've patched Overwatch with the newest version of Aurora and the wrapper works perfectly. I tested it with running Overwatch.exe in the gamefolder with normal rights.
OS: Windows 10 Pro
Device: Logitech G910

OS: Windows 10 Pro
Device: Logitech G910
Game and wrapper work normally without Admin mode


Infrastructure as code - automated infrastructure deployment

Is your feature request related to a problem? Please describe.
The need for an automated infrastructure deployment has to be addressed for to purpose of quick recovery in case of potential incidents on the AWS platform.
Describe the solution you'd like
Terraform infrastructure as code
Describe alternatives you've considered
AWS Cloud Formation, Ansible
Additional context
This has to be implemented as soon as possible, it is a high priority task.

@radu-popescu we already have an issue created for this -  #116. Please add the details over there if necessary, I will close this issue as duplicate.

My bad, I haven't seen that we already had one open.

No problem :)


Web app -> Rpc for balances metadata

Closes: https://github.com/penumbra-zone/web/issues/525
Now that the new protos are published https://github.com/penumbra-zone/penumbra/pull/3824, we can migrate a bunch of code relating to augmenting our asset balances with denom date to the extension.
As AssetBalances touches nearly everything, there are quite a few diffs.

@jessepinho I would appreciate your review of the changes related to staking


New version: Apache.Groovy.3 version 3.0.22

Created by 🥟 Dumplings in workflow run #6254.

Log
Updated: 3.0.21 → 3.0.22
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Executable C:\Windows\SysWOW64\cmd.exe returned exit code: 1

(Automated response - build 886.)


How do I update latitude and longitude?

Like below.
https://github.com/hMatoba/piexifjs/issues/1

Thank you hMatoba.
I have also found this
https://github.com/hMatoba/Piexif/issues/12
Nice job btw


[ZEPPELIN-73][HOTFIX-1]: Fix various Maven warnings in the poms

Updated the zeppelin-web/pom.xml file to further remove various warnings as noted here.

Thank you for taking care,
looks good to me.

LGTM. Thanks for contribution!


Array index not used with variable IN filter

My Environment

ArangoDB Version:       3.5.0

Component, Query & Data
Affected feature:
AQL indexing (optimizer?)
Problem:
Array index is being used when a constant value is given for an IN filter, but not when a variable with the same value is used.
I've got an empty collection named Demo, with an index defined on tags[*]:
38336459 | persistent | false | false | false | 100.00% | tags[*] | tagsIndex

For this AQL query, explain shows that the index is correctly being used:
FOR doc IN Demo
  FILTER "foo" IN doc.tags
  RETURN doc

the explain shows that the index is being used:
Query String:
 FOR doc IN Demo
   FILTER "foo" IN doc.tags
   RETURN doc

Execution plan:
 Id   NodeType        Est.   Comment
  1   SingletonNode      1   * ROOT
  6   IndexNode          1     - FOR doc IN Demo   /* persistent index scan */
  5   ReturnNode         1       - RETURN doc

Indexes used:
 By   Name        Type         Collection   Unique   Sparse   Selectivity   Fields          Ranges
  6   tagsIndex   persistent   Demo         false    false       100.00 %   [ `tags[*]` ]   ("foo" in doc.`tags`)

Optimization rules applied:
 Id   RuleName
  1   use-indexes
  2   remove-filter-covered-by-index
  3   remove-unnecessary-calculations-2

However, if I run a similar query, but use a variable string instead of a constant, e.g.:
FOR tag IN ["foo", "bar"]
  FOR doc IN Demo
    FILTER tag IN doc.tags
    RETURN doc

then an explain shows that the index isn't being used for the tags lookup:
Query String:
 FOR tag IN ["foo", "bar"]
   FOR doc IN Demo
     FILTER tag IN doc.tags
     RETURN doc

Execution plan:
 Id   NodeType                  Est.   Comment
  1   SingletonNode                1   * ROOT
  2   CalculationNode              1     - LET #2 = [ "foo", "bar" ]   /* json expression */   /* const assignment */
  4   EnumerateCollectionNode      0     - FOR doc IN Demo   /* full collection scan */
  3   EnumerateListNode            0       - FOR tag IN #2   /* list iteration */
  5   CalculationNode              0         - LET #4 = (tag in doc.`tags`)   /* simple expression */   /* collections used: doc : Demo */
  6   FilterNode                   0         - FILTER #4
  7   ReturnNode                   0         - RETURN doc

Indexes used:
 none

Optimization rules applied:
 Id   RuleName
  1   interchange-adjacent-enumerations

In my actual use case, the tags are coming from a separate subquery, rather than being constants, so I can't easily replace with multiple constant FILTER "foo" IN doc.tags || "bar" IN doc.tags.

After some additional testing, it appears that the index is used if I turn the 2nd part into a subquery, e.g.:
FOR tag IN ["foo", "bar"]
  RETURN (
    FOR doc IN Demo
      FILTER tag IN doc.tags
      RETURN doc._id
  )

in this case, the explain shows:
Query String:
 FOR tag IN ["foo", "bar"]
   RETURN (
     FOR doc IN Demo
       FILTER tag IN doc.tags
       RETURN doc._id
   )

Execution plan:
 Id   NodeType            Est.   Comment
  1   SingletonNode          1   * ROOT
  2   CalculationNode        1     - LET #4 = [ "foo", "bar" ]   /* json expression */   /* const assignment */
  3   EnumerateListNode      2     - FOR tag IN #4   /* list iteration */
 10   SubqueryNode           2       - LET #2 = ...   /* subquery */
  4   SingletonNode          1         * ROOT
 12   IndexNode              1           - FOR doc IN Demo   /* persistent index scan, projections: `_id` */
  8   CalculationNode        1             - LET #8 = doc.`_id`   /* attribute expression */   /* collections used: doc : Demo */
  9   ReturnNode             1             - RETURN #8
 11   ReturnNode             2       - RETURN #2

Indexes used:
 By   Name        Type         Collection   Unique   Sparse   Selectivity   Fields          Ranges
 12   tagsIndex   persistent   Demo         false    false       100.00 %   [ `tags[*]` ]   (tag in doc.`tags`)

Optimization rules applied:
 Id   RuleName
  1   move-calculations-up
  2   move-filters-up
  3   move-calculations-up-2
  4   move-filters-up-2
  5   use-indexes
  6   remove-filter-covered-by-index
  7   remove-unnecessary-calculations-2
  8   reduce-extraction-to-projection


First implementation

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@eaf62d8). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #1   +/-   ##
=========================================
  Coverage          ?   97.91%
=========================================
  Files             ?        2
  Lines             ?      192
  Branches          ?        0
=========================================
  Hits              ?      188
  Misses            ?        4
  Partials          ?        0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Interoperability issue with other Linux distro wrt os name.

Interoperability issue with other Linux distro wrt os name:
Traceback (most recent call last):
File "src/client-mesh.py", line 215, in
mac = get_mac_address(interface=get_mesh_interface())
File "src/client-mesh.py", line 129, in get_mesh_interface
return list(interface)[0]
IndexError: list index out of range

The current deployment is designed to be run on Ubuntu OS.
It will be needed to create another branch to deal with OpenWRT.
Other OSs are not considered.


Tests for CASSANDRA-11474

Some tests for CASSANDRA-11474, which disables COPY FROM batching if MAXBATCHSIZE is set to 1, but only for C* versions from 2.2 to 3.5, see discussion on the ticket for details. Since test_reading_counter_without_batching is only testing a different code path but no new functionality, I've disabled it for 3.6 onwards.
As usual, we need to commit the C* ticket before merging this PR.

+1

Ticket committed, merging.


Send emoji images via https

I suggests adding the option in Admin Control Panel to send emoji images via https.

To my knowledge, this is already the case. The protocol is assumed from the protocol set in the url property of config.json

Thank you, it works now. 👍


Reformat code using black

Proposed changes:

Reformat code using black

closes #62
Status (please check what you already did):

[x] made PR ready for code review
[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog

Black is conflicting with the pep8 linter. Summarized all points here: https://github.com/RasaHQ/roadmap/issues/436.


Twitter 9.98  is using the X icon.

About this discussion
I never updated Twitter past 9.98 to work around the X changes, but unfortunately Lawnicons uses the X icon. I see that the Twitter icon is still included in the icon pack, but it's not possible to change a single icon just for the homescreen.

So I can only suggest installing, where on the main Twitter is still the old icon. So right now I can only suggest installing Lawnicons 2.3.0, where the main Twitter still has the old icons. But the old version is probably missing some other icons.

As far as I can see, if an app has an icon in Lawnicons, it can't be changed.
So right now I can only suggest installing Lawnicons 2.3.0, where the main Twitter still has the old icon. But the old version is probably missing some other icons.

Okay, yeah it has a lot of missing icons but so far i only use it for the home screen, so it's not that bad. But it would be nice to built in a feature to change some of these icons without touching the app drawer icons, there a lot of great alternatives included in Lawnicons.

Now you can install Lawnchair 14 Beta 2 and change the new Twitter icon to the Twitter Lite icon.
Long tap on X → Customize → Tap on the icon → Pick icon from Lawnicons → Search for "Twitter" → Select the Twitter Lite icon


pretty print json by default

Note: this issue was imported from https://github.com/wercker/stern/issues/128, but it was originally created by naseemkullah...
Currently we use stern <regex> -o raw | jq -R -r '. as $line | try fromjson catch $line' to pretty print any json logs, while still printing non-json logs. Would it be of interest that this be a default behaviour?

I disagree because changing the behavior of default has an impact.

If you have a stronger opinion, please reopen the issue.


Support for individual intrinsics? (feature request)

Hi I was wondering if there is any plans to include individual camera intrinsics, while keeping backwards compatibility to the current transforms.json file, as with instant-ngp?
That'll be helpful for training on images in the wild, where the camera resolution and intrinsics are different.

Good request! @jake-austin has been working on this right now. Maybe you can comment on the state of this feature?

Just about there. All on the CamerasV2 branch. Last night I think I about cracked it, I just need to write more exhaustive and stress tests and make sure that I'm correctly processing all combinations of inputs to the generate_rays() function and whatnot. Also need to resolve some weird viewer issues since it was training correctly last night, just the viewer wasn't showing the model itself.

Added documentation in #1246


Set NodeReady=False when docker is dead

Fix #6285
cc @davidopp @vmarmol

Ref #7222

e2e tests are passing:
Ran 38 of 43 Specs in 1474.965 seconds
SUCCESS! -- 38 Passed | 0 Failed | 1 Pending | 4 Skipped I0505 13:31:05.709929   18131 driver.go:96] All tests pass

cc @dchen1107 (since @vmarmol seems to be OOO today)

LGTM

Only thing that worries me about this approach is whether we have a lot of transient errors due to this. Setting the status won't remove scheduled pods so maybe it isn't much of a concern. We may not be a schedulable node for a bit.

I have the same concern as @vmarmol above. We observed that Docker might be temporiarily unavailable a lot under some average workload pressure even, we should tolerate such failures at our system. My concern is that we might ping-pong those workloads due to switch node status. here.

My problem is that we just simply query docker version, it might run into "resource temporarily unavailable" (forget if this is exact err throwed by docker or not) a lot.

NodeController won't evict pods until node has been NodeReady=False for 5 minutes. Are the transient Docker unavailability longer than 5 minutes?
(Though it still may be a problem from a UX perspective. Maybe it's better to mask transient Docker problem on the Kubelet side so user doesn't get confused.)

@davidopp I agreed with you on this. Kubelet should have some logic inside to decide when docker is not available. Today monit peridically check docker's health, and restart it if it is unresponsive for a certain time (forget the time interval I initially set.) We might should ask kubelet to do such thing instead of monit. But if we take such position, what about other container Runtime? rkt + systemd?

Do you have any suggestions how to fix this?

We should only surface the failure when we've observed Docker to be down
for 5min or so. Keep us from flapping due to transient issues. We may need
to ping Docker at a higher interval than we do for node status.
On May 5, 2015 12:08 PM, "Wojciech Tyczynski"<EMAIL_ADDRESS>wrote:

Do you have any suggestions how to fix this?
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/pull/7763#issuecomment-99185159
.

Just FYI, there is a function in kubelet.go checking whether docker is alive at startup. You could probably repurpose that for your use. https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/kubelet/kubelet.go#L100

@yujuhong thanks - I will try to fix this today.

I've update a PR so that the failure will be reported only if Docker didn't respond during last 5 minutes.
PTAL

I'm running e2e tests - will post the results in few minutes.

I will rerun e2e tests and will update this thread.

It seems that e2e tests are failing. I will take a deeper look tomorrow, but if you have any ideas what can be wrong please let me know.

Ran 38 of 43 Specs in 798.277 seconds
FAIL! -- 22 Passed | 16 Failed | 1 Pending | 4 Skipped F0506 19:35:42.270701   31759 driver.go:94] At least one test failed
The first 22 tests passed, the next 16 failed :(

I've run e2e tests - all tests passed:
Ran 38 of 43 Specs in 1593.325 seconds
SUCCESS! -- 38 Passed | 0 Failed | 1 Pending | 4 Skipped I0507 10:56:37.327217    5607 driver.go:96] All tests pass

LGTM, thanks @wojtek-t!


No .osu files being created

Describe the bug
When the .osv was created. there were no .osu files
Error message
N/A
Screenshots:
N/A
Program version:
1.1.4 (Stable version)
Platform:
Windows 10
Also, please specify what did you used exactly (the .exe file or the source code?). If you used Python, please specify the version of your Python (example: Python 3.7.6)
Python 3.10 through the .exe file
Used files:
I just input .ogg files and 6 .json difficulties.
Additional context:
N/A

Did you checked the folder "output"?


Document proper use of licenses when creating workload clusters

What would you like to be added:
The EKS Anywhere getting started guide describes how to add licensing information for management clusters, but not for workload clusters. That information needs to be included for workload clusters as well.
Why is this needed:
The workload cluster is not properly licensed if you don't know to add this information.

This work has been completed in PR #3861.


chore(main): release 0.1.0

:robot: I have created a release beep boop
0.1.0 (2023-02-21)
Features

move to poetry (#12) (525154d)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/andrewthetechie/geekbot-api-py/releases/tag/v0.1.0 :sunflower:


LayoutReader: Dataset for Fine tunning LayoutReader

Describe
Model I am using: LayoutReader
Firstly, thank you for outstanding contribution in define reading order. Currently, I am trying to fine-tuning the pre-train model. So is there any recommendation on the amount of data set we need to fine tuning the model ?

Thanks for your question!
The larger the dataset, the better the performance. If you could only obtain a small dataset (e.g., hundreds of samples or thousands of samples), the fine-tuning also works in our initial experiments. Data augmentation is also effective under this circumstance. If large data is available, please try using more data until the performance is saturated.