New: Installing nodejs modules with native extensions fails on first run
https://bugs.busybox.net/show_bug.cgi?id=15823
Bug ID: 15823
Summary: Installing nodejs modules with native extensions fails
on first run
Product: buildroot
Version: 2023.08.2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
I'm building the the raspberrypi4_64_defconfig with the following changes/additions:
``` BR2_CCACHE=y BR2_PACKAGE_NODEJS=y BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL="serialport" BR2_TARGET_ROOTFS_EXT2_SIZE="300M" ```
This fails during the first run with the following errors:
``` ERROR: architecture for "/usr/lib/node_modules/node-red-node-serialport/node_modules/@serialport/bindings-cpp/prebuilds/linux-arm/node.napi.armv6.node" is "ARM", should be "AArch64" ERROR: architecture for "/usr/lib/node_modules/node-red-node-serialport/node_modules/@serialport/bindings-cpp/prebuilds/android-arm/node.napi.armv7.node" is "ARM", should be "AArch64" ERROR: architecture for "/usr/lib/node_modules/node-red-node-serialport/node_modules/@serialport/bindings-cpp/prebuilds/linux-arm/node.napi.armv7.node" is "ARM", should be "AArch64" ERROR: architecture for "/usr/lib/node_modules/node-red-node-serialport/node_modules/@serialport/bindings-cpp/prebuilds/linux-x64/node.napi.glibc.node" is "Advanced Micro Devices X86-64", should be "AArch64" ERROR: architecture for "/usr/lib/node_modules/node-red-node-serialport/node_modules/@serialport/bindings-cpp/prebuilds/linux-x64/node.napi.musl.node" is "Advanced Micro Devices X86-64", should be "AArch64" make[1]: *** [package/pkg-generic.mk:406: /home/marcus/repos/buildroot-upstream/output/build/nodejs-16.20.0/.stamp_installed] Error 1 ```
On a second invocation of make, it then succeeds to build. I have not yet runtime testing if the serialport library actually works.
As discussed on IRC just now, there was a discussion about this issue on this patch already:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15823] Installing nodejs modules with native extensions fails on first run
https://bugs.busybox.net/show_bug.cgi?id=15823
Giulio Benetti <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|[email protected] |giulio.benetti@benettiengin |.org |eering.com
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15823] Installing nodejs modules with native extensions fails on first run
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=15823
--- Comment #1 from Marcus Hoffmann <[email protected]> --- To clarify: this is happening on the 2023.08.2 release tag, i.e. fe50c054bce7fb9b2e073b9c1bc78dd8a187289a.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15823] Installing nodejs modules with native extensions fails on first run
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=15823
--- Comment #2 from Giulio Benetti <[email protected]> --- Hi Marcus,
can you please give a try to this [0] pending patch?
[0]:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Thank you
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 15823] Installing nodejs modules with native extensions fails on first run
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=15823
Yann E. MORIN <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
CC| |[email protected]--- Comment #3 from Yann E. MORIN <[email protected]> --- Marcus, All,
Thanks for the report. We believe it has now been fixed with commit:
cbc5691ab298 package/nodejs/nodejs-src: fix arch check on additional
modules
If you stil have issues, please open a new bug.
Regards,
Yann E. MORIN.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot