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

Unable to generate v8 snapshots for Arm64 on Ubuntu #64

Open
craftzdog opened this issue Jun 10, 2022 · 2 comments
Open

Unable to generate v8 snapshots for Arm64 on Ubuntu #64

craftzdog opened this issue Jun 10, 2022 · 2 comments

Comments

@craftzdog
Copy link

I'm trying to generate v8 snapshots for linux arm64 on ubuntu x64.

Steps to reproduce

On x64 Ubuntu machine:

DEBUG='*' npm_config_arch=arm64 npm install --save-dev electron-mksnapshot
./node_modules/.bin/mksnapshot /home/runner/work/tmp/snapshot.js --output_dir /home/runner/work/tmp/

It downloads the base snapshot files via https://github.com/electron/electron/releases/download/v19.0.4/mksnapshot-v19.0.4-linux-arm64-x64.zip as expected.

Expected result

The snapshot_blob.bin and v8_context_snapshot.bin files are generated.

Actual result

Got an error as following:

Loading script for embedding: /home/runner/work/tmp/snapshot.js
Unable to open file "gen/v8/embedded.S" for writing.
Error running mksnapshot.

The content of snapshot.js doesn't matter.
It still fails even if you specified an empty js file.
Confirmed that "gen/v8/embedded.S" exists in "./node_modules/electron-mksnapshot/bin/gen/v8/".

It works fine to generate snapshots for x64 arch.

@craftzdog
Copy link
Author

@EthianWong
Copy link

How to resolve this problem? i got the same issue~ Orz...

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

2 participants