Looks like you haven't set the cross compiler to the correct architecture. The error is the architecture Nim targets is different from what the underlying C compiler targets.
Passing the correct compiler via the switch `--gcc.exe:/path/to/C/cross/compiler` and `--gcc.linkerexe:/path/to/C/cross/compiler` should fix the problem.
