More WebAssembly (wasm32/wasm64) work, including libc++/libc++abi for wasm32-wasi

This was quite painful and took a while! As promised, this adds libc++/libc++abi for wasm32-wasi. While at it, it unbreaks compilation for compiler-rt in non-x86, but also really fixes a fundamental issue with the work that was merged before. Changelog:

  • Update patch wasm-sysroot-usr to stop including /usr/include when building for the wasm targets, to avoid inadvertently including the host's (glibc) headers.
  • Re-enable builds on all architectures, previously disabled for arm64 armel mips64el mipsel ppc64el armhf in 1:14.0.6-4, due to an FTBFS related to the /usr/include issue above.
  • Update patch wasm-sysroot-usr to adjust system include paths for C++ headers as well.
  • Build libc++ and libc++abi for wasm32-wasi, generating two new binary packages, and introducing a build dependency on wasi-libc.
  • Misc code organization fixes to debian/rules.

A lot more details can be found in the individual commit messages, which I would recommend to read and review.

Merge request reports

Loading