r-debug icon indicating copy to clipboard operation
r-debug copied to clipboard

undefined symbol: `__libc_single_threaded`

Open david-cortes opened this issue 3 years ago • 4 comments

In the latest build of this image, I am experiencing this error when installing some C++ packages through <Rbuild> CMD INSTALL package.tar.gz:

Error: package or namespace load failed for ‘lightgbm’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/usr/local/RDvalgrind/lib/R/site-library/00LOCK-lightgbm/00new/lightgbm/libs/lightgbm.so':
  /usr/local/RDvalgrind/lib/R/site-library/00LOCK-lightgbm/00new/lightgbm/libs/lightgbm.so: undefined symbol: __libc_single_threaded
Error: loading failed
Execution halted
ERROR: loading failed

Guess it needs to update its libc. Happens with RDcsan too.

david-cortes avatar Jan 22 '22 21:01 david-cortes

Oddy enough, there is no issue loading the package with devtools::load_all

david-cortes avatar Jan 26 '22 02:01 david-cortes

You may want to upgrade your glibc by >= 2.32.

ryuujo1573 avatar Jul 01 '24 15:07 ryuujo1573

I have the same issue, do you know how I can upgrade the glibc? Thank you so much in advance!!!!

Cristopher-Morales avatar Sep 11 '24 19:09 Cristopher-Morales

I have the same issue, do you know how I can upgrade the glibc? Thank you so much in advance!!!!

FWIW, If you cannot find the latest glibc on your OS distribution or that version doesnt satisfy >= 2.32, you may want to do nothing about it.

Just pick up a newer Linux!

ryuujo1573 avatar Sep 12 '24 14:09 ryuujo1573