Intel® oneAPI Base Toolkit
Support for the core tools and libraries within the base toolkit that are used to build and deploy high-performance data-centric applications.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
358 Discussions

gdb-oneapi LD_LIBRARY_PATH misconfigured

aaron2
New Contributor I
900 Views

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:

/home/alm100/intel/oneapi/mpi/2021.1.1//libfabric/lib:/home/alm100/intel/oneapi/mpi/2021.1.1//lib/release:/home/alm100/intel/oneapi/mpi/2021.1.1//lib:/home/alm100/intel/oneapi/itac/2021.1.1/slib:/home/alm100/intel/oneapi/mkl/latest/lib/intel64:/home/alm100/intel/oneapi/compiler/2021.1.1/linux/lib:/home/alm100/intel/oneapi/compiler/2021.1.1/linux/lib/x64:/home/alm100/intel/oneapi/compiler/2021.1.1/linux/lib/emu:/home/alm100/intel/oneapi/compiler/2021.1.1/linux/compiler/lib/intel64_lin:/home/alm100/intel/oneapi/compiler/2021.1.1/linux/compiler/lib:/home/alm100/intel/oneapi/tbb/2021.1.1/env/../lib/intel64/gcc4.8:/home/alm100/intel/oneapi/debugger/10.0.0/dep/lib:/home/alm100/intel/oneapi/debugger/10.0.0/libipt/intel64/lib:/home/alm100/intel/oneapi/debugger/10.0.0/gdb/intel64/lib

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?

0 Kudos
3 Replies
SantoshY_Intel
Moderator
797 Views

Hi,


Thanks for reaching out to us.


Could you please install the latest version of Intel OneAPI Base Tool Kit 2021.2 and try running the command "gdb-oneapi" again.


Please let us know if your issue persists.


Thanks & Regards,

Santosh


SantoshY_Intel
Moderator
766 Views

Hi,


We have not heard back from you. Is your issue resolved? Please let us know if the issue still persists.


Thanks & Regards,

Santosh


SantoshY_Intel
Moderator
726 Views

Hi,


As we have not heard back from you, we are considering that your issue has been resolved. So we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.


Thanks & Regards,

Santosh


Reply