I have the oneapi with HPC packages installed, version 2021.1.1. From the oneapi directory I source the `setvars.sh` file to configure my environment. When I try to run `gdb-oneapi` I get the error message
gdb-oneapi: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by gdb-oneapi) gdb-oneapi: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/alm100/intel/oneapi/debugger/10.0.0/gdb/intel64/lib/libiga64.so) gdb-oneapi: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/alm100/intel/oneapi/debugger/10.0.0/gdb/intel64/lib/libiga64.so)
My envrionment variable `LD_LIBRARY_PATH` is only set through the `setvars.sh` script, and looks like so:
I also tried sourcing the file debugger/latest/env/vars.sh in the oneapi directory, and it did not fix the issue. Doing a `find . -name 'libstdc++*'` in the oneapi directory shows a few results, the most relevant being ./inspector/2021.1.1/lib64/libstdc++.so.6.0.22, which is newer than my system's version. If I modify my environment with `export LD_LIBRARY_PATH=$HOME/intel/oneapi/inspector/2021.1.1/lib64:$LD_LIBRARY_PATH`, then I am able to successfully run `gdb-oneapi`. Am I doing something wrong or is this a bug in the environment setting scripts?
Thank you for using Intel forums. This forum is dedicated to queries related to AI Analytics toolkit. Could you please tell us the toolkit you are using.
Intel® Distribution for GDB* is available as part of the Intel® oneAPI Base Toolkit(https://software.intel.com/content/www/us/en/develop/documentation/get-started-with-debugging-dpcpp-... ). As you’ve already raised this query in oneAPI Basetoolkit forum, shall we discontinue monitoring this thread?
Link to your query in Basekit forum : https://community.intel.com/t5/Intel-oneAPI-Base-Toolkit/gdb-oneapi-LD-LIBRARY-PATH-misconfigured/m-...
‘Stop monitoring’ is closing the case. We close a case after providing a solution to the issues/queries of the user. In your case, as you’ve already raised the query in the correct forum, i.e. the Base toolkit forum, we are closing the case in the AI Analytics forum. The case in the Base toolkit forum would remain active and will be handled by their corresponding moderators. For further queries and issues please raise a new thread. We’d be glad to help you. Any further interaction in this thread will be considered community only.