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
mksnapshot-v1.6.0-linux-armv7l.zip contains x86 binary not armv7l binary #11413
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
A similar issue has been raised previously electron/mksnapshot#3 |
Yes, that is the same issue that I am facing. I honestly wasn't sure where to post about it, but it's affecting me for the same reason it affected them. My first attempt to build from that user's repository (marked unmaintained last month, by the way) results in a failure with code ELIFECYCLE for What can be done about the root cause of this issue? Is there a way to fix the problem of releasing binaries built for x86 in a tar file labeled armv7l ? |
Going a bit off memory of also trying to get Atom running on ARM64. I believe As to whether the bundled x86 version actually does this is another story. I don't think it's tested, and CI has been outputting it as an artifact because that's how the scripts work. |
If I could successfully cross-compile Atom itself for armv7l on x86_64, that would be awesome. It's hard to find information about that because of the other relevant hits for cross-compile and Atom, and there's no info in the Flight Manual about that. With regard to disabling snapshotting, it's still enabled in the master branch as far as I can tell. |
If new correct-compiled |
If new correct compiled mksnapshot binaries are released, then the branch containing atom/atom#15431 should be able to build Atom on ARM as well. In theory. :-) |
@mathuin the main problem, as I remember, was incorrect arm architecture detection (so packages like electron can't be downloaded), currently I'm have an idea how I can fix that. This branch probably could fix one issue - creating an armhf package. Last time I'm trying to do this it was unsuccessful. |
I can confirm that @groundwater is correct.
It might be possible to run this on the target using qemu-user. |
I don't think that is right to set the |
Thanks for checking @nonnymoose. Unless something has changed in recent Chromium, tooling will need to run I believe the x86 binary for |
@groundwater so, you mean we could use x86_64 |
@hypersad I believe so, the x86_64 binaries should in theory generate the correct ARM7/ARM8 snapshots. We stumbled across this when trying to get Atom running. Everything ARM related in Chromium seems to be cross-compiled, so it makes sense they might design it this way. Unfortunately I have not tested this, and if the generated snapshots do not work, that's definitely a valid bug, but we should perhaps deal with that in a new issue. |
@groundwater I'm currently trying to build Yesterday I've tried to use |
@hypersad my recollection is that compiling chromium on ARM64 is not really supported, and that you cannot cross-compile We documented our process here atom/atom#15881 although ultimately we just removed snapshotting to get our prototype working. It's something we need to loop back on. |
Got it!
|
@hypersad that looks promising, does your |
@groundwater yep, I've generated snapshot but can't test it yesterday and gonna try it today. This way for building it is so weird, but at least we know, that is possible. Could you tell me arguments with which current Update: I'm successfully cross-compiled Update: Atom still throws Update: I compield 3 binaries with
I think, I should try to build it setting ELECTRON_MIRROR for full build with compatible mksnapshot binaries. |
@groundwater you're right! I tried to generate startup blob from |
@hypersad you are my hero! Can you tell me exactly how you did it? I would love to try your process on my Chromebook! |
@groundwater To get it we're just need to modify some generated
|
I hope Electron 2.0.0 will include native working |
@hypersad I'm working on it now. If it is ready, we certainly will include it in 2.0. |
Thank you for taking the time to report this issue and helping to make Electron better. The version of Electron you reported this on has been superseded by newer releases. If you're still experiencing this issue in the latest version of Electron, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know. I'm setting the Thanks in advance! Your help is appreciated. |
Thank you for your issue! We haven't gotten a response to our questions in our comment above. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue. |
Expected behavior
I downloaded https://github.com/electron/electron/releases/download/v1.6.0/mksnapshot-v1.6.0-linux-armv7l.zip and it should have contained an armv7l binary.
Actual behavior
Instead it contained an x86 binary.
How to reproduce
Click the URL, unzip the zip file, and run
file mksnapshot
. If it says "Intel 80386", that's bad, because it's supposed to say "ARM" instead. This problem is keeping me from building Atom on my Chromebook because I can't find an ARM binary formksnapshot
.The text was updated successfully, but these errors were encountered: