Skip to content
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

Building with --arch="arm64" on Ubuntu 22.04 x64 machine doesn't produce arm64 ELF file for native deps #3529

Open
3 tasks done
jb1685 opened this issue Mar 11, 2024 · 0 comments

Comments

@jb1685
Copy link

jb1685 commented Mar 11, 2024

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

6.4.2

Electron version

v27.0.3

Operating system

Ubuntu 22.04 x64

Last known working Electron Forge version

No response

Expected behavior

Electron forge will build native dependencies for the correct architecture that's specified when using the --arch flag

Actual behavior

Instead of an arm64, A x64 ELF binary for the native dep is produced for the arch specified by "npm run make -- --arch=arm64" when executed on Ubuntu 22.04 x64 machine

Steps to reproduce

arm64 flag is correctly being passsed:
image

File type is x64_86 when it should be arm64:
image

Additional information

This same issue does not persist on OSX x64. For instance, using the "--arch=arm64" flag, it correctly produces the arm64 version of the "pty.node" native dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant