Open avnik opened 4 months ago
Thanks for the report. Makes sense to me.
Will look into fixing this. Should be fairly straight forward and was an oversight from me when I reviewed and merged the commit that broke it.
Sorry for that.
Unfortunately, due to time contrains and especially the lack of chromium maintainers (which electron depends on), we don't have many ressources to throw at always ensuring cross compilation works for chromium and electron.
So not only takes cross-compiling almost twice as much time to compile compared to native builds, it also might break from time to time.
@emilylange I have some time to check/debug, but like to have some hinting as well (some parts of process of chromium/electron build looks pretty cryptic). And yes, full build of electron take ~12 hours for me (using 16-20 cores).
I'll meanwhile check what prevent cross build on master (some depends failed to cross-build -- binlore
and yallback
, would go fix them to check if problems affect master or not)
Describe the bug
Cross-compilation of
electron
broken by commit fcdea38355b817b86101b9bb6f717858bc96b4eb (or 9ed4811582532c2b3d3633fff422bd6061ed42f0 if on release-23.11)Steps To Reproduce
Steps to reproduce the behavior:
nix-build -A pkgsCross.aarch64-multiplatform.electron -j1 --cores 16
It failed withnix-build -A pkgsCross.aarch64-multiplatform.electron -j1 --cores 16
It builds cleanly.(reproducing done on stable
release-23.11
branch (commit 5bf1cadb72ab4e77cb0b700dab76bcdaf88f706b), on master it fail earlier on dependencies, by unrelated issues -- would investigate and report them separately)Expected behavior
It should cross-compile clean.
Additional context
I have suspicion, that real problem somewhere in order of linkables, but can't proof it. Chromum cross-build looks unaffected, but require additional confirmation (build in progress), only Electron failed.
Notify maintainers
/cc @reedrw as problematic commit author, @yu-re-ka as Electron maintainer and @emilylange as last active contributor to electron/chromium.
Metadata
Reproduced on 9ed4811582532c2b3d3633fff422bd6061ed42f0 if on release-23.11
Add a :+1: reaction to issues you find important.