New: nodejs build fails in installation phase when BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL is set
https://bugs.busybox.net/show_bug.cgi?id=15625
Bug ID: 15625
Summary: nodejs build fails in installation phase when
BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL is set
Product: buildroot
Version: 2023.02
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 9607
--> https://bugs.busybox.net/attachment.cgi?id=9607&action=edit
patch for check-bin-arch to ignore nodejs files
My setup is buildroot2023.02, host OS is Ubuntu, target is linux i686 (32 bit).
I added some nodejs modules:
BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL="zigbee2mqtt lirc2mqtt"
Now when nodejs is being built check-bin-arch complains:
~~~
(...)
ERROR: architecture for "/usr/lib/node_modules/zigbee2mqtt/node_modules/@serialport/bindings-cpp/prebuilds/linux-arm/node.napi.armv6.node" is "ARM", should be "Intel 80386"
ERROR: architecture for "/usr/lib/node_modules/zigbee2mqtt/node_modules/@serialport/bindings-cpp/prebuilds/android-arm/node.napi.armv7.node" is "ARM", should be "Intel 80386"
ERROR: architecture for "/usr/lib/node_modules/zigbee2mqtt/node_modules/@serialport/bindings-cpp/prebuilds/linux-arm/node.napi.armv7.node" is "ARM", should be "Intel 80386"
ERROR: architecture for "/usr/lib/node_modules/zigbee2mqtt/node_modules/@serialport/bindings-cpp/prebuilds/android-arm64/node.napi.armv8.node" is "AArch64", should be "Intel 80386"
ERROR: architecture for "/usr/lib/node_modules/zigbee2mqtt/node_modules/@serialport/bindings-cpp/prebuilds/linux-arm64/node.napi.armv8.node" is "AArch64", should be "Intel 80386"
ERROR: architecture for "/usr/lib/node_modules/zigbee2mqtt/node_modules/@serialport/bindings-cpp/prebuilds/linux-x64/node.napi.glibc.node" is "Advanced Micro Devices X86-64", should be "Intel 80386"
ERROR: architecture for "/usr/lib/node_modules/zigbee2mqtt/node_modules/@serialport/bindings-cpp/prebuilds/linux-x64/node.napi.musl.node" is "Advanced Micro Devices X86-64", should be "Intel 80386"
make[1]: *** [package/pkg-generic.mk:406:/home/felix/ffritz/packages/x86/buildroot-2023.02_glibc230/build/output/build/nodejs-16.18.1/.stamp_installed] Error 1
make: *** [Makefile:82: _all] Error 2
~~~
Just re-building works. My fix is to have check-bin-arch ignore these files, see patch. I'm not sure if this is the proper approach.
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 15625] nodejs build fails in installation phase when BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL is set
https://bugs.busybox.net/show_bug.cgi?id=15625
Yann E. MORIN <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |MOVED
Status|NEW |RESOLVED
CC| |[email protected]--- Comment #1 from Yann E. MORIN <[email protected]> --- Thank you for your report.
The issue tracker for the Buildroot project has been moved to the Gitlab.com issue tracker:
https://gitlab.com/buildroot.org/buildroot/-/issues
We are taking this opportunity to close old issues in this old tracker. If you believe your issue is still relevant, please open one in the new issue tracker.
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