Bug#848368: llvm-toolchain-3.9: Please add ELF symbols versions to the libraries

Sylvestre Ledru sylvestre at debian.org
Sun Mar 19 09:14:06 UTC 2017


Le 18/03/2017 à 23:40, Rebecca N. Palmer a écrit :
> Can this be fixed in time for Ubuntu 17.04?  Their mesa is built against LLVM 4.0, so if this bug isn't fixed, I (as beignet maintainer) have to choose between "apply a very new 4.0-support patch that might or might not work" and "leave beignet on 3.9, making OpenCL+OpenGL applications (e.g.
> blender) subject to this bug".
> 
>> I've been told that there is a command line to add a version to all symbols
>> without a script, that should be enough at least for Debian packaging.
> -Wl,--default-symver : rarely used (only 5 packages), and forces the symbol version to be the soname (i.e. libLLVM-3.9.so.1) rather than the conventional LLVM_3.9 form (i.e. potential binary incompatibility if upstream later decide to do it the conventional way), but should at least fix this crash.
> 
> The attached debdiff is for this option, and also fixes #857623 and #857683.  Warning: has NOT been tested yet.
> 
> I intend to try extending the earlier "version script" patch to also cover libclang and liblldb tomorrow.

Impressive! I believe we can try this solution. Many thanks.
I started to build this myself.

If it is working file, I will discuss with upstream about integrating that!
Bravo,
Sylvestre



More information about the Pkg-llvm-team mailing list