-
Notifications
You must be signed in to change notification settings - Fork 539
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
Fail to compile: ld.lld: error: unable to find library -lstdc++ #3557
Comments
@CanYing0913 : I think you are missing the libstdc++-11-dev or libstdc++-12-dev package on your system for some reason. Could you try installing it depending on which g++ version you have installed? |
@mangupta Passing the correct library path successfully compiles it. After running it, it said no ROCm compatible device detected. However, I do have a NVIDIA gpu, which I think is also supported by HIP? |
Hi @CanYing0913, have you added your user to the video and render groups? This can be done with the following command
|
Hi @CanYing0913, by default, access to GPU devices and certain system resources is restricted to the root user or specific groups. The command After adding the current user to the groups, you need to reboot the system to make it work. Here is a link to the Rocm quick installation guide, please let me know if you have more questions. |
Hello HIP community. I have a simple Makefile with my HIP program converted by using hifipy-clang tool:
The output messages can be viewed here:
hip_out.txt
It can be seen that it complains:
ld.lld: error: unable to find library -lstdc++
Take a deeper look at the output, it seems that it skips a lot of directories. How can I fix this issue? I'm pretty sure I have required libraries (I installed ROCm following official docs and my build-essentials is up-to-date with
sudo apt-get update
). Any help is appreciated.The text was updated successfully, but these errors were encountered: