docker,worker: install g++-multilib
authorAlois Klink <alois@aloisklink.com>
Wed, 23 Nov 2022 17:23:48 +0000 (17:23 +0000)
committerPetr Štetiar <ynezz@true.cz>
Wed, 17 May 2023 09:27:07 +0000 (11:27 +0200)
commit6b145dbf190c52caa1829f6dcfdc9e304552bd5a
treec458d36976d40aa25a044765d1e3335f5157169a
parentbc489fdb40c64f899957a139fbe3e4049a9f80d2
docker,worker: install g++-multilib

From [openwrt/docker@5484951][1] (GitHub PR [#89][2]):

Node fails to cross-compile from a 64-bit build machine to 32-bit host
with the following error:

```
  In file included from /usr/include/c++/8/memory:62,
  from ../deps/v8/src/libplatform/default-foreground-task-runner.h:8,
  from ../deps/v8/src/libplatform/default-foreground-task-runner.cc:5:
  /usr/include/c++/8/bits/stl_algobase.h:59:10: fatal error: bits/c++config.h:
    No such file or directory
  #include <bits/c++config.h>
          ^~~~~~~~~~~~~~~~~~
  compilation terminated.
```

On Debian, `g++-multilib` can be installed to fix this.

[1]: https://gitlab.com/openwrt/docker/-/commit/54849510d7802028b94757051cca6d004a9ca1d1
[2]: https://github.com/openwrt/docker/pull/89

Fixes: https://github.com/openwrt/packages/issues/18476
Fixes: https://forum.openwrt.org/t/why-arent-the-node-and-node-npm-packages-available-on-arm-cortex-a9-vfpv3-d16-in-22-03-2/142722
Signed-off-by: Alois Klink <alois@aloisklink.com>
docker/buildworker/Dockerfile