Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBuild fails at mozjs_sys on Archlinux #15025
Comments
|
There are a lot of unusual linker errors in that output. What compiler and version are you using? |
|
and if it helps
|
|
I'm guessing the linker errors are just the way configure.sh checks for some libraries.
I didn't realize the log file and what
It seems to confirm that the problem comes from determining the icu version number that fails. |
|
Ok, so I have finally been able to build mozjs_sys :
|
|
After some testing on different distros I have an explanation for why this problem only occurs on a few machines. So the problem is the sed 4.3:
sed 4.2.2:
So by cheer luck, the command works even if the regex is incorrect with sed < 4.3. What would be the correct fix for this ? I had to edit old-configure but it looks like a generated file. |
|
This was fixed upstream in https://hg.mozilla.org/mozilla-central/rev/ebcbf47a83e7d3b89460cf1c991b6be5a79a967b. I'll cherry-pick the fix. |
Cherry-picked from <https://hg.mozilla.org/mozilla-central/rev/ebcbf47a83e7d3b89460cf1c991b6be5a79a967b>. CC <servo/servo#15025>.
Add brackets to icu.m4 for sed 4.3 compliance. Cherry-picked from <https://hg.mozilla.org/mozilla-central/rev/ebcbf47a83e7d3b89460cf1c991b6be5a79a967b>. CC <servo/servo#15025>. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/110) <!-- Reviewable:end -->
Update mozjs_sys. Fixes #15025. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15048) <!-- Reviewable:end -->
Update mozjs_sys. Fixes #15025. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15048) <!-- Reviewable:end -->
I get a build error when compiling mozjs_sys on Archlinux.
The dependencies listed in the README are installed.
This is the log file I get
./target/debug/build/mozjs_sys-365f6a67e79262dc/out/config.log.I don't really know what else may help to track down this issue, please tell me if I can provide more information.