-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Arm64 #609
Comments
Copying We have had some discussion about aarch64 in the past here cockpit-project/cockpit#20220 |
I'm reasonably sure I know why our usual wasm tricks aren't working here: tsx vendors its own copy of esbuild, and it doesn't include the wasm one. The important parts of nodejs/loaders#217 are already complete. We can use this (with a few adjustments) once the (already released) Version 22.6.0 makes it into Fedora (and we include it in our tasks container). nodejs/node#54283 also landed (which would let us do this with no code changes at all) but so far it hasn't made it into an upstream release yet. So, in short: I think we'll have a solution to this issue soon enough. |
@allisonkarlitskaya But we don't (or shouldn't) call |
I said tsx, not tsc :) |
@allisonkarlitskaya ah, first time I hear about I still don't understand why our aarch64 packit test works, and doesn't run into this issue. |
@martinpitt Because they never really build node_modules, do never build anything. We tried to build things on aarch64 but that turned out to be a disaster as See #536 and https://esbuild.github.io/getting-started/#simultaneous-platforms |
source code failed to compile due to mismatch in processor architecture. this is a bug? |
I assume that's due to the node_modules git clone you have locally? It is build on x86 and not compatible with ARM sadly. My suggestion is:
|
You installed esbuild for another platform than the one you're currently using.
This won't work because esbuild is written with native code and needs to
install a platform-specific binary executable.
Specifically the "@esbuild/linux-x64" package is present but this platform
needs the "@esbuild/linux-arm64" package instead. People often get into this
situation by installing esbuild on Windows or macOS and copying "node_modules"
into a Docker image that runs Linux, or by copying "node_modules" between
Windows and WSL environments.
The text was updated successfully, but these errors were encountered: