intel / intel/llvm

Compiler is installing non-stable targets by default

Open
#21,514 0 comments 0 reactions 1 assignee Claimed by @kswiecicki View on GitHub
confirmed
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

With:
* https://github.com/intel/llvm/commit/e66b3c331f5f64b7a9b300578eb884a5b20ba52e (top of sycl branch) or v6.3.0

```
python3 ./buildbot/configure.py -t Release
python3 ./buildbot/compile.py

$ ls build/install/lib/*.so.0*
build/install/lib/libur_adapter_level_zero.so.0 build/install/lib/libur_adapter_opencl.so.0
build/install/lib/libur_adapter_level_zero.so.0.12.0 build/install/lib/libur_adapter_opencl.so.0.12.0
build/install/lib/libur_adapter_level_zero_v2.so.0 build/install/lib/libur_loader.so.0
build/install/lib/libur_adapter_level_zero_v2.so.0.12.0 build/install/lib/libur_loader.so.0.12.0

$ ls build/install/include/unified-runtime/
ur_api_funcs.def ur_api.h ur_ddi.h ur_print.h ur_print.hpp
```

By default intel/llvm compiler is installing non-stable targets (major version 0) to `$libdir`. Targets with unstable API/ABI are cause various compatibility errors on different levels. Please, make a change to stop installing non-stable targets in the default build. Possible solution includes statically linking with such targets and avoid publishing their API headers.

Above example includes Unified Runtime component. Please, handle other non-stable install targets as well if any.

CC: @sarnex @frenchwr

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.