-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: cannot 'importc' variable at compile time; FE_DIVBYZERO [devel regression] #15843
Comments
I find a situation with similar error messages(but it is wrong indeed in Nim v 1.4): use it in compile time: var
FE_DIVBYZERO* {.importc, header: "<fenv.h>".}: cint
const x = FE_DIVBYZERO got:
|
find a similar issue: |
Report the problem in a way that we can reproduce it. |
Hello @Araq , I always provide a recipe to reproduce the issue, except for this case. This issue shows up only on Travis CI when building Nim devel. The link in my original post of this thread shows where this error happens during the build process. |
This should get me around the issue reported in nim-lang/Nim#15843. > /home/travis/build/kaushalmodi/hello_musl/nim/4c19c5dfae01638ae66fc2c1561762d94fb36a1a/lib/pure/fenv.nim(17, 3) Error: cannot 'importc' variable at compile time; FE_DIVBYZERO
This should get me around the issue reported in nim-lang/Nim#15843. > /home/travis/build/kaushalmodi/hello_musl/nim/4c19c5dfae01638ae66fc2c1561762d94fb36a1a/lib/pure/fenv.nim(17, 3) Error: cannot 'importc' variable at compile time; FE_DIVBYZERO
This should get me around the issue reported in nim-lang/Nim#15843. > /home/travis/build/kaushalmodi/hello_musl/nim/4c19c5dfae01638ae66fc2c1561762d94fb36a1a/lib/pure/fenv.nim(17, 3) Error: cannot 'importc' variable at compile time; FE_DIVBYZERO
This should get me around the issue reported in nim-lang/Nim#15843. > /home/travis/build/kaushalmodi/hello_musl/nim/4c19c5dfae01638ae66fc2c1561762d94fb36a1a/lib/pure/fenv.nim(17, 3) Error: cannot 'importc' variable at compile time; FE_DIVBYZERO
Using Thanks to @timotheecour for his comment in #17907 (comment) . |
Hello,
There's a recent regression on devel that's causing all my Nim project Travis CI jobs to fail with:
Travis failure log
The error happens when my
config.nims
is used on Travis, and nim devel is being built. I am unable to reproduce this error locally.Example
Build nim devel 4c19c5d on Travis CI.
Current Output
Fails with the above error, probably because of the config.nims.
Expected Output
nim devel is expected to build fine.
More Info
The text was updated successfully, but these errors were encountered: