Skip to content
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

/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/marcuschan/Downloads/poc/xgboost/python-package/xgboost/../../lib/libxgboost.so)" #8132

Closed
rajkoder opened this issue Aug 2, 2022 · 3 comments

Comments

@rajkoder
Copy link

rajkoder commented Aug 2, 2022

Hi , we tried compiling the custom build of xgboost for multi GPU using NCCL2 and CUDA on.

OS: Pop Os Linux 22.04
gcc version : default is 11.2
gcc used to build the xgboost : 10
xgboost version : 1.5.2

Steps Followed:

clone the xgboost git repo
cd ~/Downloads/poc/xgboost/
mkdir build
cd build
CC=gcc-11.2 CXX=g++-11.2 cmake .. -DUSE_CUDA=ON -DUSE_NCCL=ON -DNCCL_ROOT=/usr/include/nccl.h
make -j4

Result:

  Build Failed stating:
  [Parameter packs not expanded with '...'  ArgTypes]

We tried to build it gcc 10 :

cd ~/Downloads/poc/xgboost/
mkdir build
cd build
CC=gcc-10 CXX=g++-10 cmake .. -DUSE_CUDA=ON -DUSE_NCCL=ON -DNCCL_ROOT=/usr/include/nccl.h
make -j4

Result:

 Build Successful and able to install the package. Now, when we try to run the code in PYCHARM.

 Error: 

   "/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by 
  /home/marcuschan/Downloads/poc/xgboost/python-package/xgboost/../../lib/libxgboost.so)"]

   I have tried this command and i can see the 3.4.30 version but still somehow xgboost failing to pick 
   
   strings /usr/lib64/libstdc++.so.6 | grep GLIBC

Any help is much appreciated.

@StrikerRUS
Copy link
Contributor

This looks like the same issue as microsoft/LightGBM#5106.

Please check the following comment for possible workarounds: microsoft/LightGBM#5106 (comment).

@Jumabek
Copy link

Jumabek commented Aug 3, 2022

So I used gcc/g++ version 9 and it worked

image

@trivialfis
Copy link
Member

Consider using the default gcc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants