Hi all,

Just faced with curious problem with Nim compiler compiling:
    
    
    pi@raspberrypi:~/nim-2.0.8 $ sh build.sh
    # OS: linux
    # CPU: arm64
    gcc -w -fmax-errors=3 -O3 -fno-strict-aliasing -fno-ident -fno-math-errno 
-Ic_code -c c_code/2_17/@m..@slib@ssys...@sexceptions.nim.c -o 
c_code/2_17/@m..@slib@ssys...@sexceptions.nim.o
    In file included from c_code/2_17/@m..@slib@ssys...@sexceptions.nim.c:5:
    c_code/nimbase.h:264:35: error: static assertion failed: "Pointer size 
mismatch between Nim and C/C++ backend. You probably need to setup the backend 
compiler for target CPU."
      264 | #define NIM_STATIC_ASSERT(x, msg) _Static_assert((x), msg)
          |                                   ^~~~~~~~~~~~~~
    c_code/nimbase.h:538:1: note: in expansion of macro ‘NIM_STATIC_ASSERT’
      538 | NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == 
sizeof(NI)*8, "Pointer size mismatch between Nim and C/C++ backend. You 
probably need to setup the backend compiler for target CPU."); 
    
    Run

So, the platform is RPI4.

It returns `aarch64` with `uname -m`.

But OS is Raspbian 32 bit for sure.

Any suggestion how to fix this?

Reply via email to