pkg icon indicating copy to clipboard operation
pkg copied to clipboard

Executable runs with Linux-armv6 binaries. But node does not run the source code with armv6 binaries, it requires armv7 binaries.

Open tatujan opened this issue 3 years ago • 0 comments

What version of pkg are you using?

5.8.0

What version of Node.js are you using?

10.24.1

What operating system are you using?

Raspbian

What CPU architecture are you using?

armv7

What Node versions, OSs and CPU architectures are you building for?

node10-linux-armv7

Describe the Bug

Pretty straightforward as the title puts it. the app I am working on is a native nodejs app and I am using sharp library. When sharp is installed with armv6 flag the pkg compiles and executable and runs fine. But trying to run the source code with node app.js, it throws:

'linux-armv6' binaries cannot be used on the 'linux-armv7' platform. When sharp is installed with armv7 flag now source can be run with node app.js but compiled executable throws

'linux-armv7' binaries cannot be used on the 'linux-armv6' platform. I've checked with whereis node and there are no other node installed only this version. and it is located at /usr/bin/node.

Expected Behavior

both the executable and running with source should work.

To Reproduce

Install sharp with armv6 and armv7 and compile the app with pkg. Either the executable or running with source fails.

tatujan avatar Aug 05 '22 21:08 tatujan