Closed mkszuba closed 3 years ago
Hello Marek,
We have added verification to execute_process()
's result so that a potential error is properly communicated: https://github.com/intel/intel-graphics-compiler/commit/a57f361108a3172fae85b16ca43724d366804568.
After an internal discussion, we've decided to leave the responsibility to include readelf in the PATH to the user.
Thank you for your contribution!
IGC/BiFModule/CMakeLists.txt uses readelf in order to extract the SONAME version from opencl-clang. Unfortunately it calls the tool in question as literally 'readelf', which will quietly fail (and result in a rather confusing message about opencl-clang being too old a moment later) e.g. on systems where only 'x86_64-pc-linux-gnu-readelf' is available.
Steps to reproduce:
Proposed fix: