-
Notifications
You must be signed in to change notification settings - Fork 21
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
undefined symbol #3
Comments
This error is typically encountered when compiling the tool with some incompatible version of g++/gcc. |
|
I am pretty sure you are using an "old" version of libstdc++.so.6 which is using glibc < GLIBCXX_3.4.21. To confirm that can you please paste this?
if that is the issue you should try to update to a newer version of libstdc++.so.6. |
Output from
|
I am puzzled... everything seems fine. |
I encountered the same problem. I am using CUDA Driver version 440.33.01. I can't use older driver version in my cluster. |
Can you please paste the console output of when you type So far I have tried on many machines, libraries and compiler versions and unfortunately I was not able to reproduce the issue on my side. |
Thanks a lot, it works. I have change the gcc version and cuda version. |
Great! Can you please let me know exactly which version you were using before and after. |
I was using cuda-10.0 and I think the nvcc was using gcc 4.9.2. I changed it to gcc-6.2.0 and cuda-9.0. |
The requirement is GCC version: >= 5.3.0 (see https://github.com/NVlabs/NVBit/blob/master/README.md) which is the one used to build The version of CUDA driver you are using a bit higher (see https://github.com/NVlabs/NVBit/blob/master/README.md ) but this is a separate issue and completely unrelated from the "symbol lookup error". If it works for you, there is no need to lower the CUDA driver version, it is just that I did not test it with that version. Thanks again for the update. |
Hi @ovilla coming back to this issue, I finally had time to play around with this a little more and was able to get this working with ubuntu 16.04 and 18.04. This issue is reproducible with ubuntu 14.04 (both on a local machine and on a docker image). Would it be possible for you to provide a version of this library compiled on ubuntu 14.04? It's very hard for me to test my repo on an upgraded version of ubuntu due to other library dependencies. Thank you and looking forward to hearing back from you. |
Can you try the method below and see if it solves your issue? When using nvbit tool, add libstdc++.so with its full path to the LD_PRELOAD as well. Something like: Let us know whether it works. |
@x-y-z Thanks for the reply.
Also
Returns no matches. |
It seems that your libstdc++.so does not have that symbol. Could you try to copy libstdc++.so with that symbol (like from ubuntu 16.04) to your ubuntu 14.04 machine and try this again? NVBit is compiled with gcc 5.3.0 but ubuntu 14.04 seems to have older gcc. This could cause the missing symbol issue. |
Great! It worked! Thank you! |
OK, I did more comprehensive investigation on this. The issue comes from gcc's Dual ABI thing. Ubuntu 14.04 comes with gcc 4.8.y, which does not use new c++11 ABI, so To verify it, if you do As I see you are using gcc 6.5.0 compiling NVBit tools, that might cause the issue if your tool uses |
I got this error when running nvbit according to the instructions in Readme.
Any suggestions?
The text was updated successfully, but these errors were encountered: