Describe the bug
The build script does not work correctly when using cmake installed from snap. os.path.realpath(shutil('cmake')) evaluates to /usr/bin/snap
Urgency
I am trying to build onnxruntime with tensorrt provider for a company project. I can work around this issue but it involves changing the build script.
System information
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04
ONNX Runtime installed from (source or binary): source
ONNX Runtime version: v1.6.0
Python version: 3.8.5 (miniconda)
Visual Studio version (if applicable): none
GCC/Compiler version (if compiling from source): 7.5.0 prebuilt
CUDA/cuDNN version: 11.0/8.0
GPU model and memory: RTX6000-4Q, 4GiB
Note: this is a virtual machine.
To Reproduce
Describe steps/code to reproduce the behavior.
make a new virtual machine or uninstall cmake from system
Describe the bug The build script does not work correctly when using
cmake
installed fromsnap
.os.path.realpath(shutil('cmake'))
evaluates to/usr/bin/snap
Urgency I am trying to build onnxruntime with tensorrt provider for a company project. I can work around this issue but it involves changing the build script.
System information
Note: this is a virtual machine.
To Reproduce
cmake
from systemcmake
withsnap
and add it toPATH
snap
followed by the cmake directory is not a valid command:Expected behavior The build script should be able to build the project with a snap installed
cmake
.