Bug#976042: llvm-11: generates WebAssembly incompatible with binaryen 98

Jonas Smedegaard dr at jones.dk
Sat Nov 28 18:57:08 GMT 2020


Package: llvm-11
Version: 1:11.0.0-5+b1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Seems LLVM and binaryen is out of sync, causing some code compilations
to fail with emscripten: https://bugs.debian.org/975069

Seems that some renaming of "emscripten EH functions" was previously
done by binaryen and more recently in LLVM - binaryen 98 is too new to
do it and LLVM is too old to do it:
https://github.com/llvm/llvm-project/commit/3bba91f64eef15956f589fa446c265a714cc7893

Emscripten upstream generally use bleeding edge unreleased LLVM and
binaryen which is obviously not possible with Debian.  Their suggestion
is to alternatively use the last release of emscripten known to work
with LLVM 11, but I strongly suspect that it requires using older
releases of binayen (and possibly other tools as well) - i.e. again
an approach less suitable for Debian.

Seems to me that -  - the least invasive solution is to have
LLVM 11 

Assuming my understanding of the above is correct, the least invasive
solution seems to be to have llvm-11 cherry-pick the LLVM patch to
handle this "emscripten EH functions" renaming:
https://github.com/llvm/llvm-project/commit/3bba91f64eef15956f589fa446c265a714cc7893

What do you think?  Are you willing to carry such patch?

 - Jonas

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAl/CnYAACgkQLHwxRsGg
ASFngA//WQ/LiSXwxumqdZatSrMa4E//i4qViXDyF2q0wiJ1lZRcQDMPiaG3XlDM
0ymbE3OV0af6aOd4VHocSwpvKLDjr+TRjM9KhuvFUsN/eWiA9g+kw2ubsbxmMyqF
iCnEVTKsYeGv5r/rLDGeyvw5XQKaVmJtjsbKPpLfqzZitpPZDVl4GRPUWKbs+7TC
Kj1UhqXgKMkLH+PhVsuO0ZshHkHRkfwB3D/RvYCFe1XvhCAcGSsYDFzHiIiXe5Us
lgnE2oh5MJE1K43rLoHECwuV34X6gblF+CMgFP/7QrvGn9MyJnQFEfI8hN7QYZuS
yKzwZ0lNzdJg0xgtB+5Y81+lvSLLOWp4dmaq60ObiINnFO08515Xk/mnqcQdiAAM
QU6feiAfajqNOh0xANxyUfDn7aJ+5QdGAlkena4lnZukX2jmKFRyF3evw6D7laYW
v8obDlfl2l727GrT6d6X9EWa3Z7+URc0as0IRfc+hhz+PoNk0JXlwa8eCRvKsXWr
wlHxryfPazh62EuMOJSSQlGy099xH4quraPL2uZmsaTosVajWz3j0u1RO3gJw961
HDjGS3sWsefopXJZ30fyKBWAIFf3QYNMFdBBLe0no9lo9dY6LysgDhyV0TeQFILs
+lxJXAGsOx4rQ7300qp5YWFYhZ4w2d9hUm+j3n71sxcYLzeBpNA=
=Hiv8
-----END PGP SIGNATURE-----



More information about the Pkg-llvm-team mailing list