-
Notifications
You must be signed in to change notification settings - Fork 1k
Unable to build 32bit executables on 5.x #1634
Comments
This is expected behavior. 32-bit is no longer supported. Please upgrade to a supported architecture. |
Thanks for the reply, @jesec. Unfortunately due to legacy support requirements, I am stuck on that architecture for this particular application. |
Our energy would be better spent maintaining new architectures such as |
pkg requires patched Node.js binaries. You would have to compile your own. It is not possible to get around that. |
Couldn't agree more on the leaving old architectures; wish I could for this particular thing I'm working on. Thanks for the explanation. |
pkg-fetch contains everything you would need. It requires a few more dependencies (C++ compiler, patch, etc.) to compile the Node binary, and that's why you saw that error. Once you installed all the required dependencies, it should proceed. Then, you may transfer the |
Good to know! Thank you for the feedback, @jesec! |
Hi @SagePacheco , Edit: I made myself one, please refer to see if it suits your requirements. |
What version of pkg are you using?
5.7.0 but applies to all 5.x
What version of Node.js are you using?
16.15.0 64 and 32bit
What operating system are you using?
Windows 10
What CPU architecture are you using?
x86_64
What Node versions, OSs and CPU architectures are you building for?
node16-win-x86
Describe the Bug
PKG 5.x seems to be choking on any attempt to build a 32bit executable.
Beginning snippet:
`
Then it goes into verbose debug mode where it starts listing directories (small chunk for an example):
`
Then after listing directories it ends with an error stack:
`
Expected Behavior
I have been able to successfully build my project on 4.5.1 with target node14-win-x86 (No available node version satisfies 'node16'), but would like to update to 5.x for compression and other benefits.
I can use 5.x to build my project for basically any node version at 64 bit. Would like to do the same for 32 bit.
To Reproduce
From my findings, trying to build any project using 5.x with a 32 bit target will fail.
Here are my package.json details for reference:
"scripts": { "build": "pkg ." }, "pkg": { "outputPath": "dist", "targets": [ "node16-win-x86" ] }, "dependencies": { "pkg": "5.7.0" },
The text was updated successfully, but these errors were encountered: