You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from /home/dian/.cache/nim/libvim_r/@mlibvim.nim.c:11:
/home/dian/.cache/nim/libvim_r/@mlibvim.nim.c: In function 'libvimDatInit000':
/home/dian/.cache/nim/libvim_r/@mlibvim.nim.c:123:20: error: 'nimErr_' undeclared (first use in this function); did you mean 'nimfr_'?
123 | if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
| ^~~~~~~
/home/dian/.nim/lib/nimbase.h:519:44: note: in definition of macro 'NIM_UNLIKELY'
519 | # define NIM_UNLIKELY(x) __builtin_expect(x, 0)
| ^
/home/dian/.cache/nim/libvim_r/@mlibvim.nim.c:123:20: note: each undeclared identifier is reported only once for each function it appears in
123 | if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
| ^~~~~~~
/home/dian/.nim/lib/nimbase.h:519:44: note: in definition of macro 'NIM_UNLIKELY'
519 | # define NIM_UNLIKELY(x) __builtin_expect(x, 0)
| ^
/home/dian/.cache/nim/libvim_r/@mlibvim.nim.c:123:2: error: label 'BeforeRet_' used but not defined
123 | if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
| ^~
Error: execution of an external compiler program 'gcc -c -w -O3 -fno-strict-aliasing -fno-ident -I/home/dian/.nim/lib -I/home/dian/Projects/data/paravim/src/paravim -o /home/dian/.cache/nim/libvim_r/@mlibvim.nim.c.o /home/dian/.cache/nim/libvim_r/@mlibvim.nim.c' failed with exit code: 1
$ nim -v
Nim Compiler Version 1.3.1 [Linux: amd64]
Compiled at 2020-05-05
Copyright (c) 2006-2020 by Andreas Rumpf
git hash: e86a6d24d5ffe43e9dc7f230b80c274167376225
active boot switches: -d:release
The text was updated successfully, but these errors were encountered:
Yardanico
changed the title
[ARC] C compiler error with dynlib pragma calling a proc
[exceptions:goto] C compiler error with dynlib pragma calling a proc
May 6, 2020
This code triggers an error in the C compiler due to nimErr not being declared in the file at all. Found in https://github.com/paranim/paravim.
Example
Compiled C code output - https://gist.github.com/Yardanico/cf934690ba86bfa8a8949c3f94bd2653
Current Output
The text was updated successfully, but these errors were encountered: