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)
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

index 55babe40e306ee1cb850d316d5fc0c63837c92fa..09c38eea42941c1abec7a395353dfc3ea1907f18 100644 (file)
@@ -18,6 +18,7 @@ RUN \
                ccache \
                curl \
                gawk \
+               g++-multilib \
                gcc-multilib \
                genisoimage \
                git-core \