Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 15823] New: Installing nodejs modules with native extensions fails on first run
@ 2023-10-25 20:38 bugzilla
  2023-10-25 20:43 ` [Buildroot] [Bug 15823] " bugzilla
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugzilla @ 2023-10-25 20:38 UTC (permalink / raw)
  To: buildroot

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: unassigned@buildroot.uclibc.org
          Reporter: marcus.hoffmann@othermo.de
                CC: buildroot@uclibc.org
  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/20190531075800.7064-1-vcrini@gmail.com/

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-11-07 21:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25 20:38 [Buildroot] [Bug 15823] New: Installing nodejs modules with native extensions fails on first run bugzilla
2023-10-25 20:43 ` [Buildroot] [Bug 15823] " bugzilla
2023-10-27 10:43 ` bugzilla
2023-10-31 12:09 ` bugzilla
2023-11-07 21:44 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox