static assert fails

2023-10-12 Thread Akito
Pretty much the same issue on i386.

static assert fails

2023-01-15 Thread elcritch
In that case make sure you also use —cpu:arm64 as well. The static assert occurs when you’re telling Nim to compile for arm (32 bit) but the C compiler is using arm64 (64 but). Generally it’s best to not provide the —cpu option and just make sure you install the arm64 version from brew or elsew

static assert fails

2023-01-15 Thread ecarl42
A few things I can think of to verify. Check the `nim` binary: file `which nim` Run and will output something similar to: /opt/homebrew/bin/nim: Mach-O 64-bit executable arm64 Run then test the binary that was created by `nim`: file

static assert fails

2023-01-15 Thread bw98
I did install via choosenim but I also tried installing it through brew which does install the arm version and made sure to specifically invoke that one when compiling and it still gives me a static assert error on a single echo statement nim file.

static assert fails

2023-01-14 Thread elcritch
Did you install Nim using choosenim? On arm macs it still installs macos x64_64 which runs via rosetta. The easiest solution I found is to install Nim using asdf: Bonus is that the compiler runs quicker.

static assert fails

2023-01-14 Thread bw98
It just compiles to x86_64 again

static assert fails

2023-01-14 Thread mratsim
What about `--cpu:arm64`?

static assert fails

2023-01-13 Thread bw98
I am on a m2 mac and any nim program I try to compile with the **\--cpu:arm** option It gives me the error _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 compile