sgerrand / alpine-pkg-glibc

A glibc compatibility layer package for Alpine Linux
2.04k stars 280 forks source link

v2.35-r1 symbols not found #199

Closed D34DC3N73R closed 1 year ago

D34DC3N73R commented 1 year ago

I use this package to add glibc support in netdata which uses alpine as a base. The primary reason is to allow GPU passthrough via nvidia-container-toolkit. Nvidia drivers require glibc. In v2.34-r0 this works as intended. But in v2.35+ I get missing symbol errors when calling the nvidia-smi binary.

using 2.34-r0

docker exec -it netdata /bin/bash
bash-5.1# nvidia-smi
Thu Apr 13 18:21:42 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.105.17   Driver Version: 525.105.17   CUDA Version: N/A      |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro P2000        Off  | 00000000:09:00.0 Off |                  N/A |
| 48%   37C    P0    18W /  75W |   3236MiB /  5120MiB |      2%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

using 2.35-r1

docker exec -it netdata /bin/bash
bash-5.1# nvidia-smi
Error relocating /usr/bin/nvidia-smi: __isnan: symbol not found
Error relocating /usr/bin/nvidia-smi: __strtok_r: symbol not found
Error relocating /usr/bin/nvidia-smi: __strdup: symbol not found

an example of a Dockerfile (currently using 2.34-r0) can be found here.

chadlwilson commented 1 year ago

This is likely the same root cause(s) as #176, #175, #181

If you script installation there's a possible workaround at https://github.com/sgerrand/alpine-pkg-glibc/issues/175#issuecomment-1322395184 although you might also have to make sure libc6-compat isn't installed (and conflicting).

D34DC3N73R commented 1 year ago

@chadlwilson thanks that does work. I'll close this since it seems like a duplicate.