Repository navigation
Add arm64 build support - #10219
Add arm64 build support#10219
Conversation
|
The arm and ia32 builds are failing for this change, do you have an idea of it? It seems that |
|
Yes, just an updated version. let me check the issue . |
|
Ok, following changes on
Note: After checking master branch of breakpad on chromium they also fixed this and we cant see any |
|
diff with HEAD of breakpad master chromium for eg: diff --git a/vendor/breakpad/src/common/memory.h b/tmp/src/common/memory.h
index 16a612b..9158b50 100644
--- a/vendor/breakpad/src/common/memory.h
+++ b/tmp/src/common/memory.h
@@ -44,7 +44,6 @@
#ifdef __APPLE__
#define sys_mmap mmap
-#define sys_mmap2 mmap
#define sys_munmap munmap
#define MAP_ANONYMOUS MAP_ANON
#else
@@ -117,14 +116,8 @@ class PageAllocator {
private:
uint8_t *GetNPages(size_t num_pages) {
-#if defined(__x86_64__) || defined(__aarch64__) || defined(__aarch64__) || \
- ((defined(__mips__) && _MIPS_SIM == _ABI64))
void *a = sys_mmap(NULL, page_size_ * num_pages, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
-#else
- void *a = sys_mmap2(NULL, page_size_ * num_pages, PROT_READ | PROT_WRITE,
- MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
-#endif
if (a == MAP_FAILED)
return NULL;
|
|
@HAMIDx9 Thanks for looking into it, I'll apply the change on our fork of breakpad and then update this PR. |
|
@groundwater @jkleinsc The arm64 target built successfully on CI. I have created a job for electron-linux-arm64 on our internal CI, but currently it is failing because of lack of some dependencies, if we can fix it we can probably include arm64 in next release. |
|
@groundwater I'm seeing this on janky, do you remember how you solved this? |
|
@zcbenz on Ubuntu I installed |
|
We are going to marge this after merging the This is because building arm64 target requires system arm64 toolchains, which unfortunately are not available on the old distribution used by our internal Linux build machines. Fixing this requires using docker, which has been done as part of the Chrome 59 upgrade. |
|
Glad to hear that. Let me know if i can help in the process. |
|
Congrats on merging your first pull request! 🎉🎉🎉 |
With electron/electron#10219 merged, ARM64 support is likely to be official starting with the Electron 1.8 release series. This adds basic official support for the arch, plus adds it to the platform/arch combinations when `all` is true or `platform=linux` and `arch=all`, and the specified version of Electron is 1.8.0 or above.
With electron/electron#10219 merged, ARM64 support is likely to be official starting with the Electron 1.8 release series. This adds basic official support for the arch, plus adds it to the platform/arch combinations when `all` is true or `platform=linux` and `arch=all` is set, and the specified version of Electron is 1.8.0 or above.
|
@HAMIDx9 Building electron with this commit in arm64 platform. Script build.py is failing with error ../../vendor/llvm-build/Release+Asserts/bin/clang:ELF: not found. Please guide me in solving in this issue. Thanks in advance. |
|
Hi @HAMIDx9 Sorry to disturb you. Can you please help me out for ARM64 compiling, I am completely stuck in it. I can't see any such folder like Regards, |
This PR has patches to build arm64 electron package successfully.
I've also provided unofficial packages for download until official releases prepared for the community.
This build has been tested successfully on Odroid C2 (arm64). Unfortunately support for electron-packager is not provided here.
You may just copy your resources to the
electron-v1.7.5-linux-arm64.zipand runelectronthere.libcromiumcontent build instructions:
electron + arm64 support build instruction:
$ git clone https://github.com/HAMIDx9/electron.git $ cd electron $ ./script/bootstrap.py -v --target_arch=arm64 -u file:///home/hamidx9/dev/electron/libchromiumcontent/ $ ./script/build.py -c R $ ./script/create-dist.py $ ls ./dist/electron-v1.7.5-linux-arm64.zipUnofficial Builds:
electron-v1.7.5-linux-arm64-symbols.zip
electron-v1.7.5-linux-arm64.zip
ffmpeg-v1.7.5-linux-arm64.zip
libchromiumcontent/libchromiumcontent-static.zip
libchromiumcontent/libchromiumcontent.zip
sha256sum: