Building Firefox failed with error message: [builtins-static 0.1.0] Failed to run rustfmt: No such file or directory (os error 2) (non-fatal, continuing) Please see build.log for the USE flags for firefox. dev-lang/rust was built without USE=rustfmt, and the linker used is sys-devel/mold instead of sys-devel/lld, which might be related to the issue.
Created attachment 862968 [details] tarball with build log
Comment on attachment 862968 [details] tarball with build log Please do not use tar when compressing single files.
Please provide emerge --info and change the status to UNCONFIRMED.
Created attachment 863004 [details] emerge --info
Created attachment 863005 [details] build.log compressed
I emerged dev-lang/rust with USE=rustfmt and tested again. The compilation still failed. The build log suggests that the issue is related to mold: ^[7^[8^[[1G^[[K^[[34m98:24.40^[(B^[[m mold: fatal: /var/tmp/portage/www-client/firefox-113.0.2/work/firefox_build/toolkit/library/build/libxul_so.list:1022: INPUT("../../../gfx/cairo/cairo/src/cairo-polygon-intersect.o")^[(B^[[m^[(B^[[m ^[7^[8^[[1G^[[K^[[34m98:24.40^[(B^[[m ^ library not found: ../../../gfx/cairo/cairo/src/cairo-polygon-intersect.o^[(B^[[m^[(B^[[m ^[7^[8^[[1G^[[K^[[34m98:24.40^[(B^[[m clang-15: error: linker command failed with exit code 1 (use -v to see invocation)^[(B^[[m^[(B^[[m ^[7^[8^[[1G^[[K^[[34m98:24.40^[(B^[[m gmake[4]: *** [/var/tmp/portage/www-client/firefox-113.0.2/work/firefox-113.0.2/config/rules.mk:535: libxul.so] Error 1^[(B^[[m^[(B^[[m ^[7^[8^[[1G^[[K^[[34m98:24.40^[(B^[[m gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-113.0.2/work/firefox_build/toolkit/library/build'^[(B^[[m^[(B^[[m ^[7^[8^[[1G^[[K^[[34m98:24.40^[(B^[[m gmake[3]: *** [/var/tmp/portage/www-client/firefox-113.0.2/work/firefox-113.0.2/config/recurse.mk:72: toolkit/library/build/target] Error 2^[(B^[[m^[(B^[[m
possible cause: https://github.com/rui314/mold/issues/851
Yeah, this should be fixed on next mold's release. I'm a bit reluctant adding hacky workarounds in the ebuild meanwhile. Just increase your ulimit meanwhile for a temporary workaround. I'll leave the bug open until mold upstream makes a new release. See also bug #892641
(In reply to Joonas Niilola from comment #8) > Yeah, this should be fixed on next mold's release. I'm a bit reluctant > adding hacky workarounds in the ebuild meanwhile. > > Just increase your ulimit meanwhile for a temporary workaround. I'll leave > the bug open until mold upstream makes a new release. > > See also bug #892641 It's not clear to me that it's really fixed in mold, rather just better error handling so you get a proper error rather than something vague here. I think we still need people to increase their ulimit.
with -clang +jumbo-build +lto +pgo and mold, 113.0.2 builds. There was no need to increase ulimit.
(In reply to Kai-Chun Ning from comment #10) > with -clang +jumbo-build +lto +pgo and mold, 113.0.2 builds. There was no > need to increase ulimit. With this combination bfd is forced, regardless of user settings. So mold wasn't used there. I'll increase the ulimit for 114 when mold is being used with lto.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39cfe283ccf6455b9781e4ac8ac15c9cf9937ed6 commit 39cfe283ccf6455b9781e4ac8ac15c9cf9937ed6 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2023-06-06 19:12:21 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2023-06-06 19:15:33 +0000 www-client/firefox: add 114.0 - enable 'valgrind' use flag, - include couple upstream skia patches from the upcoming 115 release, - increase ulimit in the ebuild when using mold linker and 'lto' use flag so the build does not fail. Bug: https://bugs.gentoo.org/838373 Closes: https://bugs.gentoo.org/700934 Closes: https://bugs.gentoo.org/905780 Closes: https://bugs.gentoo.org/906509 Closes: https://bugs.gentoo.org/907485 Signed-off-by: Joonas Niilola <juippis@gentoo.org> www-client/firefox/Manifest | 101 +++ www-client/firefox/firefox-114.0.ebuild | 1445 +++++++++++++++++++++++++++++++ 2 files changed, 1546 insertions(+)