-
Notifications
You must be signed in to change notification settings - Fork 738
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
fatal error: 'climits' file not found #15910
Comments
I've seen this before with broken libstdc++ installs or libstdc++ installs If you run
|
Here is the output:
|
I'm not sure why it's trying to use |
It's not. The OP was explicitly passing
It can also happen when the installation of GCC 14 only included the C compiler, not the C++ compiler or its associated headers. In that case, Clang will still pick that installation of GCC on account of it being the most recent one. Installing the version of libstdc++ that matches the latest available GCC should solve the problem. The exact package name will depend on the distribution, e.g. on Ubuntu it would be |
I've seen this issue reported multiple times already. The answer to this problem deserves to be documented in FAQ. In addition to that, we should probably improve the Get Started Guide to emphasize the importance of using the right stdc++ package. |
Thanks a lot for all your replies, but I don't have root access to install compatible libstdc++ version in the machine i work. Do you have any other suggestions to workaround the issue? |
You can try installing it to a directory you have permission to and using the |
Describe the bug
I'm unable to compile a SYCL migrated code on NVIDIA CUDA backend (H100) getting climits not found error
tried fixing it manually by including the path of
climits
throws another error which says <bits/c++config.h> not found.To reproduce
Reproducer:
To compile:
clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda test.cpp
Error:
Tried fixing it manually by passing the path of climits but ended up with another error
To compile:
clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda -I /usr/include/c++/11/ -L /usr/lib/gcc/x86_64-linux-gnu/11/ -lstdc++ test.cpp
Error:
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: