Skip to content
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

Limits.h file not found #13

Closed
javvylx opened this issue Aug 31, 2022 · 3 comments
Closed

Limits.h file not found #13

javvylx opened this issue Aug 31, 2022 · 3 comments

Comments

@javvylx
Copy link

javvylx commented Aug 31, 2022

Hello, I managed to build Obfuscator-LLVM and performed the steps in #6 (comment)

However, i am getting an error that limits.h is not found.

In file included from /home/ubuntu/.cache/nim/stub_r/stdlib_digitsutils.nim.c:7:
In file included from /home/ubuntu/.choosenim/toolchains/nim-1.6.6/lib/nimbase.h:269:
/usr/include/limits.h:124:16: fatal error: 'limits.h' file not found
# include_next <limits.h>
               ^~~~~~~~~~
1 error generated.
Error: execution of an external compiler program 'clang -c -w -ferror-limit=3 -DWIN32_LEAN_AND_MEAN -mllvm -bcf -mllvm -sub -mllvm -fla -mllvm -split -aesSeed=TDMDF2AR1LO88IBHR998V6YI4MT3Q9NG -Os   -I/home/ubuntu/.choosenim/toolchains/nim-1.6.6/lib -I/home/ubuntu/Desktop/Nimcrypt2 -o /home/ubuntu/.cache/nim/stub_r/stdlib_digitsutils.nim.c.o /home/ubuntu/.cache/nim/stub_r/stdlib_digitsutils.nim.c' failed with exit code: 1


In file included from /home/ubuntu/.cache/nim/stub_r/stdlib_assertions.nim.c:7:
In file included from /home/ubuntu/.choosenim/toolchains/nim-1.6.6/lib/nimbase.h:269:
/usr/include/limits.h:124:16: fatal error: 'limits.h' file not found
# include_next <limits.h>
               ^~~~~~~~~~
In file included from /home/ubuntu/.cache/nim/stub_r/stdlib_formatfloat.nim.c:7:
In file included from /home/ubuntu/.choosenim/toolchains/nim-1.6.6/lib/nimbase.h:269:
/usr/include/limits.h:124:16: fatal error: 'limits.h' file not found
# include_next <limits.h>
               ^~~~~~~~~~
1 error generated.
In file included from /home/ubuntu/.cache/nim/stub_r/stdlib_dollars.nim.c:7:
In file included from /home/ubuntu/.choosenim/toolchains/nim-1.6.6/lib/nimbase.h:269:
/usr/include/limits.h:124:16: fatal error: 'limits.h' file not found
# include_next <limits.h>
               ^~~~~~~~~~
1 error generated.
1 error generated.

[!] Stub compilation failed! Check stub for errors.

Been trying to fix this for a while, limits.h is actually in /usr/include/ directory, but it still prompts the error. Please help.

@javvylx javvylx closed this as completed Sep 3, 2022
@jamesproudstar
Copy link

Did you hash this limits.h problem out? I am getting the same issue on my end, nim 1.6.6 clang-9 as described in the nimcrypt2 readme

@javvylx
Copy link
Author

javvylx commented Sep 22, 2022

You must add the following lines to your nim.cfg file to point nim to your wclang binaries:

amd64.windows.clang.exe = "x86_64-w64-mingw32-clang"
amd64.windows.clang.linkerexe = "x86_64-w64-mingw32-clang"
amd64.windows.clang.cpp.exe = "x86_64-w64-mingw32-clang++"
amd64.windows.clang.cpp.linkerexe = "x86_64-w64-mingw32-clang++"

@jamesproudstar
Copy link

I'm on Linux, but thanks I'll give it a shot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants