Looong01 / pyg-rocm-build

20 stars 0 forks source link

OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found #3

Open Looong01 opened 7 months ago

Looong01 commented 7 months ago

@PavanKumarMiriyala PavanKumarMiriyala on Feb 7, 2023 I'm using ubuntu 20.04, ROCm 5.4.0, Python 3.8.13, torch 1.13.0. But I'm facing the below error

OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/conda/lib/python3.8/site-packages/torch_scatter/_version_cuda.so)
Looong01 commented 7 months ago

@Looong01 Looong01 on Feb 7, 2023 Author

I'm using ubuntu 20.04, ROCm 5.4.0, Python 3.8.13, torch 1.13.0. But I'm facing the below error

OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/conda/lib/python3.8/site-packages/torch_scatter/_version_cuda.so)

What operation did you do before this error?

Looong01 commented 7 months ago

@PavanKumarMiriyala PavanKumarMiriyala on Feb 7, 2023 I did

wget https://github.com/Looong01/pyg-rocm-build/releases/download/1/torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip
unzip torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip
pip3 install *.whl

Installation is successful. I'm facing the above error when I run an example gcn code.

Looong01 commented 7 months ago

@Looong01 Looong01 on Feb 7, 2023 Author

I'm using ubuntu 20.04, ROCm 5.4.0, Python 3.8.13, torch 1.13.0. But I'm facing the below error

OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/conda/lib/python3.8/site-packages/torch_scatter/_version_cuda.so)

You can make an issue here. https://github.com/Looong01/pyg-rocm-build/issues

Looong01 commented 7 months ago

@Looong01 Looong01 on Feb 7, 2023 Author

I did

wget https://github.com/Looong01/pyg-rocm-build/releases/download/1/torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip
unzip torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip
pip3 install *.whl
Installation is successful. I'm facing the above error when I run an example gcn code.

I think the libc version in your os is too old.

Solution:

sudo strings /lib/x86_64-linux-gnu/libc.so.6 |grep GLIBC, make sure there are no strings include GLIBC_2.32

If 1 is true, download th newest or required version of glibc (http://ftp.gnu.org/gnu/glibc/) Take glibc-2.37 as an example.

tar xvf glibc-2.37.tar.gz
cd glibc-2.37
mkdir build
cd ./build
../configure --prefix=<the path you want to install>
make -j<the number of your CPU cores> #if your cpu has 8 cores, then "make -j8"
sudo make install
sudo rm -rf /lib/x86_64-linux-gnu/libc.so.6
sudo ln -s <the path you installed glibc>/lib/libc-2.37.so /lib/x86_64-linux-gnu/libc.so.6
Looong01 commented 7 months ago

@PavanKumarMiriyala PavanKumarMiriyala on Feb 7, 2023 Yes, it is due to old libc version in my OS. I resolved that issue. Thank you so much.

ashwinma commented 7 months ago

@Looong01 unfortunately, I do not have root access and do not have the privileges to upgrade the OS on this cluster. Can you suggest any alternatives?

glukhove commented 7 months ago

Also have the same issue and can't change the version of glibc on cluster. Did anyone try another release version to fix the issue?

Looong01 commented 7 months ago

@Looong01 unfortunately, I do not have root access and do not have the privileges to upgrade the OS on this cluster. Can you suggest any alternatives?

  1. U can try to use Docker.
  2. U can try to compile and install it in ur own path, which do not need to use root access. And then link this new libc.so.6 to ur python interpreter of ur envs.
Looong01 commented 7 months ago

Also have the same issue and can't change the version of glibc on cluster. Did anyone try another release version to fix the issue?

U can install glibc in anaconda's envs. Then python will use this, instead of the one of system(/lib/x86_64-linux-gnu/libc.so.6). So, u can manipulate it without root access.