GeckoDriver broken on mingw build
Categories
(Firefox Build System :: General: Unsupported Platforms, defect, P5)
Tracking
(Not tracked)
People
(Reporter: tjr, Unassigned)
References
(Blocks 1 open bug)
Details
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
| Reporter | ||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Updated•7 years ago
|
Comment 5•6 years ago
|
||
/bin/ld: unrecognized option '--enable-long-section-names' means Binutils are too old, you need version 2.20 or higher.
This option won't work with LLD.
Comment 6•6 years ago
|
||
(In reply to Tom Ritter [:tjr] (needinfo for responses to sec-[approval/ratings/advisories/cve's]) from comment #3)
So I had a try at fixing this, and didn't:
https://treeherder.mozilla.org/#/
jobs?repo=try&revision=18c0672163951a70b147c67e3c710cc2c8453ea4&selectedJob=1
98574476I used this patch: https://hg.mozilla.org/try/rev/cb1726358ba4 which
specifies the linker to be the mingw compiler I'm using; but I don't see any
indication it's being used. The errors/output from the build still say
"linking withgccfailed"If anyone has any suggestions I'd be happy to try something else!
I think you are hitting https://github.com/mstorsjo/llvm-mingw/issues/56 on the llvm-mingw side and https://github.com/rust-lang/rust/issues/62576 on the rust side.
This got recently solved, though, by https://github.com/rust-lang/rust/pull/66257. You can easily backport the patch as the longer section names were only needed for .note.rustc but that was changed long ago in f9846e902dae169255c2d2b1766e7b9846488a89 and 1bb14445160329c2ca5ff9c202e791ca0098d944 (which landed in Rust 1.2.0 and 1.12.0 respectively).
I gave that a try and the result looks much better now. The final geckodriver linking breaks, though:
8:46.48 = note: lld: error: unable to find library -lgcc_eh
8:46.48 clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
Updated•3 years ago
|
Description
•