onnxruntime: [Bug][Build] include/onnxruntime_cxx_api.h:27:10: fatal error: onnxruntime_float16.h: No such file or directory
Describe the issue
I am integrating onnxruntime 1.16.0 into sherpa-onnx.
However, I am getting the following error:
https://github.com/k2-fsa/sherpa-onnx/actions/runs/6257997702/job/16991224452#step:5:234
[ 19%] Building CXX object sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/context-graph.cc.o
In file included from /home/runner/work/sherpa-onnx/sherpa-onnx/sherpa-onnx/csrc/cat.h:9,
from /home/runner/work/sherpa-onnx/sherpa-onnx/sherpa-onnx/csrc/cat.cc:5:
/home/runner/work/sherpa-onnx/sherpa-onnx/build/temp.linux-x86_64-cpython-37/_deps/onnxruntime-src/include/onnxruntime_cxx_api.h:27:10: fatal error: onnxruntime_float16.h: No such file or directory
27 | #include "onnxruntime_float16.h"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/build.make:90: sherpa-onnx/csrc/CMakeFiles/sherpa-onnx-core.dir/cat.cc.o] Error 1
I have checked the downloaded onnxruntime lib:
onnxruntime-linux-x64-1.16.0 fangjun$ tree .
.
├── GIT_COMMIT_ID
├── LICENSE
├── Privacy.md
├── README.md
├── ThirdPartyNotices.txt
├── VERSION_NUMBER
├── include
│ ├── cpu_provider_factory.h
│ ├── onnxruntime_c_api.h
│ ├── onnxruntime_cxx_api.h
│ ├── onnxruntime_cxx_inline.h
│ ├── onnxruntime_run_options_config_keys.h
│ ├── onnxruntime_session_options_config_keys.h
│ ├── onnxruntime_training_c_api.h
│ ├── onnxruntime_training_cxx_api.h
│ ├── onnxruntime_training_cxx_inline.h
│ └── provider_options.h
└── lib
├── libonnxruntime.so -> libonnxruntime.so.1.16.0
└── libonnxruntime.so.1.16.0
2 directories, 18 files
You can see that onnxruntime_float16.h is not included in the released file.
Urgency
It is very urgent as it shows the released files cannot be used to compile a project.
Target platform
Linux
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 15 (4 by maintainers)
I believe I am not the only one having this issue.
If it is not fixed in the released files, more and more people will have this issue once they download them and try to use them in their own projects.
Addressed in the main branch. Patch release with this fix coming up next week.
Yes, I agree. It is a surprise that there has been no such test to cover the released files.