Onnxruntime wrong GLIBCXX version

Given Jetson Zoo - eLinux.org documentation, onnxruntime_gpu-1.18.0-cp38-cp38-linux_aarch64.whl should be used with Jetpack 5.1.2.
I found that this onnxruntime wheel includes a shared library (/usr/local/lib/python3.8/dist-packages/onnxruntime/capi/onnxruntime_pybind11_state.so) that depends on GLIBCXX_3.4.29.
However, it seams that nvcr.io/nvidia/l4t-jetpack:r35.4.1 only has GLIBCXX_3.4.28.

Here’s a dump of my versions:

Host L4T 35.4.1
Host Jetpack 5.1.2
Container nvcr.io/nvidia/l4t-jetpack:r35.4.1
onnx 1.17.0
onnxslim 0.1.46
onnxruntime-gpu https://nvidia.box.com/shared/static/3fechcaiwbtblznlchl6dh8uuat3dp5r.whl
torch https://developer.download.nvidia.com/compute/redist/jp/v512/pytorch/torch-2.1.0a0+41361538.nv23.06-cp38-cp38-linux_aarch64.whl
torchvision https://github.com/ultralytics/assets/releases/download/v0.0.0/torchvision-0.16.2+c6f3977-cp38-cp38-linux_aarch64.whl

I get the following error message:

ONNX: slimming with onnxslim 0.1.46...
ONNX: simplifier failure: /lib/aarch64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/local/lib/python3.8/dist-packages/onnxruntime/capi/onnxruntime_pybind11_state.so)
$ strings /lib/aarch64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_3.4.27
GLIBCXX_3.4.28

Can you please publish a up to date image or recommend an other version of onnxruntime-gpu compatible with GLIBCXX_3.4.28?

Thank you

I found that docker.io/dustynv/l4t-pytorch:r35.4.1 has the required GLIBXX versions:

...
GLIBCXX_3.4.29
GLIBCXX_3.4.30

Shouldn’t the official image be updated?

Hi,

This is a known issue and the packages are prepared by the ONNXRuntime team.
The recommendation of the ONNXRuntime team is to upgrade the environment to JetPack 6.x.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.