kaolin icon indicating copy to clipboard operation
kaolin copied to clipboard

`GLIBC_2.29' not found

Open Devininthelab opened this issue 4 months ago • 12 comments

I have encountered an error when installing Kaolin:

File "/home/minhthan001/.conda/envs/tre/lib/python3.10/site-packages/kaolin/ops/batch.py", line 17, in <module>
    from kaolin import _C
ImportError: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /home/minhthan001/.conda/envs/tre/lib/python3.10/site-packages/kaolin/_C.so)

Even though, my environment already has glibc_2.29

(tre) [minhthan001@hpc-npriv-g001 TRELLIS]$ ldd --version
ldd (GNU libc) 2.29
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

I'm using torch 2.6.0, with Cuda 12.6

Please help. I have spent four straight days, but I still can not figure out the issue

Devininthelab avatar Aug 26 '25 03:08 Devininthelab

Hi @Devininthelab , sorry you are struggling with your system. we had that in the past in CI. I can't recall how we resolved it but you might want to have a look at our Dockerfile (that we are using in the CI), specifically the apt-get install command lines:

  • https://github.com/NVIDIAGameWorks/kaolin/blob/master/tools/linux/Dockerfile.base
  • https://github.com/NVIDIAGameWorks/kaolin/blob/master/tools/linux/Dockerfile.install

Alternatively if you can use Docker, the dockerfiles should guarantee to have a working environment.

Caenorst avatar Aug 26 '25 03:08 Caenorst

Hi @Caenorst,

Thanks for your help. However, I’m using other software that depends on Kaolin, so using those Dockerfiles might not work for my setup. However, could you advise what I could do on my side to make it easier for you to troubleshoot what’s causing this error?

Devininthelab avatar Aug 26 '25 06:08 Devininthelab

Exactly the same question, help

DongzeLi-CASIA avatar Aug 26 '25 13:08 DongzeLi-CASIA

What is your OS? (With version). What is ldd --version returning?

What I'm suggesting is installing some of the packages we are installing in the dockerfiles.

Caenorst avatar Aug 26 '25 15:08 Caenorst

@Caenorst
Hi my OS is this:

[minhthan001@hpc-npriv-g001 TRELLIS]$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: Rocky
Description:    Rocky Linux release 8.9 (Green Obsidian)
Release:        8.9
Codename:       GreenObsidian

ldd --version

(tre) [minhthan001@hpc-npriv-g001 TRELLIS]$ ldd --version
ldd (GNU libc) 2.29
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Devininthelab avatar Aug 27 '25 04:08 Devininthelab

hi, here is my glibc version and os version

CentOS Linux release 8.6.2205 (Core) ldd (GNU libc) 2.28

It's hard to install another version of glibc on current machine

DongzeLi-CASIA avatar Aug 27 '25 06:08 DongzeLi-CASIA

@DongzeLi-CASIA Hi, have u fixed the issue?

Devininthelab avatar Sep 01 '25 07:09 Devininthelab

@Caenorst Do you have any updates about this :(

Devininthelab avatar Sep 03 '25 06:09 Devininthelab

Hi @Devininthelab , sorry I don't really have a clue about your case. Somehow it looks like your Glibc is not linked to your building environment. I'm really not sure why.

Caenorst avatar Sep 03 '25 06:09 Caenorst

I had the same issue when installing with pip. I also tried building from source following the instructions in the doc, but got an error You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later..

However, building from source by first installing:

conda install -c conda-forge gcc_linux-64=9 gxx_linux-64=9
export CC=$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-gcc
export CXX=$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-g++
export CUDAHOSTCXX=$CXX

then python setup.py develop seems to work for me. You may try this too!

JulienGaubil avatar Oct 01 '25 15:10 JulienGaubil

I fixed it by using the dynamic loader (ld-2.29.so) directly, and it works for me. Does this behavior depend on the OS version or distribution?

Devininthelab avatar Oct 03 '25 02:10 Devininthelab

Stale issue, please reopen if still relevant

github-actions[bot] avatar Dec 02 '25 21:12 github-actions[bot]