Skip to content

Sandwall fails to build #39

Description

@bob-u

sandwall fails to compile with error:

... 562 | 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.");

I installed nim using choosenim, my platform is Windows amd64.
test.exe compiles and runs fine
PS D:> gcc --version
gcc.exe (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

PS D:> nim --version
Nim Compiler Version 2.2.12 [Windows: amd64]
Compiled at 2026-09-08
Copyright (c) 2006-2026 by Andreas Rumpf

I can compile sandwall package separately, but threecode build fails due to above error.

I had to pass two flags to the compiler to build successfully:

nimble install --verbose '--passNim:--cpu:amd64' '--passNim:--cc:gcc'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions