InBetweenNames / gentooLTO

A Gentoo Portage configuration for building with -O3, Graphite, and LTO optimizations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firefox with LTO and PGO fails to install with nodejs 20.2.0

StefanSalewski opened this issue · comments

Firefox runs node, and that fails with something about error 245. I had that for the latest Firefox 113 on a desktop PC and with stable Firefox on a notebook. Downgrading to nodejs 18.16.0 on notebook fixed it.

Firefox 114 fails as well:

819:13.81 Executing "/usr/bin/node /var/tmp/portage/www-client/firefox-114.0/work/firefox-114.0/devtools/client/shared/build/build.js /var/tmp/portage/www-client/firefox-114.0/work/firefox-114.0/devtools/client/debugger/src/client/firefox/commands.js /var/tmp/portage/www-client/firefox-114.0/work/firefox-114.0/devtools/client/debugger/src/client/firefox/create.js /var/tmp/portage/www-client/firefox-114.0/work/firefox_build/instrumented/dist/bin/browser/chrome/devtools/modules/devtools/client/debugger/src/client/firefox"
819:13.89 b''
819:13.91 gmake[3]: *** [backend.mk:807: devtools/client/debugger/src/.deps/node.stub.stub] Error 245
819:13.91 gmake[3]: *** Waiting for unfinished jobs....
819:13.92 b''
819:13.95 gmake[3]: *** [backend.mk:853: devtools/client/debugger/src/actions/breakpoints/.deps/node.stub.stub] Error 245
819:13.98 b''
819:13.99 gmake[3]: *** [backend.mk:879: devtools/client/debugger/src/actions/pause/.deps/node.stub.stub] Error 245
819:14.00 b''
819:14.01 gmake[3]: *** [backend.mk:831: devtools/client/debugger/src/actions/.deps/node.stub.stub] Error 245
819:14.02 b''
819:14.04 gmake[3]: *** [backend.mk:895: devtools/client/debugger/src/actions/sources/.deps/node.stub.stub] Error 245
819:14.06 b''
819:14.07 gmake[3]: *** [backend.mk:918: devtools/client/debugger/src/actions/utils/middleware/.deps/node.stub.stub] Error 245
819:14.19 b''
819:14.20 gmake[3]: *** [backend.mk:937: devtools/client/debugger/src/client/firefox/.deps/node.stub.stub] Error 245
819:14.20 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-114.0/work/firefox_build/instrumented'
819:14.20 gmake[2]: *** [/var/tmp/portage/www-client/firefox-114.0/work/firefox-114.0/config/recurse.mk:34: misc] Error 2
819:14.20 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-114.0/work/firefox_build/instrumented'
819:14.20 gmake[1]: *** [/var/tmp/portage/www-client/firefox-114.0/work/firefox-114.0/config/rules.mk:361: default] Error 2
819:14.20 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-114.0/work/firefox_build/instrumented'
819:14.20 gmake: *** [client.mk:60: build] Error 2
819:14.22 148 compiler warnings present.
8 * ERROR: www-client/firefox-114.0::gentoo failed (compile phase):
 *   Failed to run './mach build --verbose'

With nodejs 18.16.0 all works fine.

I think I've got a very similar issue, though it isn't fixed by downgrading NodeJS unfortunately. When you traced it up to where in the Firefox build process it was failing, did it look something like this?

�[34m58:10.13�(B�[m gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-114.0/work/firefox_build/instrumented/browser/locales'�(B�[m�(B�[m
�[34m58:10.13�(B�[m gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-114.0/work/firefox_build/instrumented/browser/installer'�(B�[m�(B�[m
�[34m58:10.15�(B�[m gmake[2]: Entering directory '/var/tmp/portage/www-client/firefox-114.0/work/firefox_build/instrumented/browser/installer'�(B�[m�(B�[m
�[34m58:10.15�(B�[m gmake[2]: Nothing to be done for 'tools'.�(B�[m�(B�[m
�[34m58:10.15�(B�[m gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-114.0/work/firefox_build/instrumented/browser/installer'�(B�[m�(B�[m
�[34m58:10.16�(B�[m gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-114.0/work/firefox_build/instrumented/browser/installer'�(B�[m�(B�[m
�[34m58:10.16�(B�[m gmake: Leaving directory '/var/tmp/portage/www-client/firefox-114.0/work/firefox_build/instrumented'�(B�[m�(B�[m
console.warn: services.settings: Ignoring preference override of remote settings server
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
ATTENTION: default value of option mesa_glthread overridden by environment.
Redirecting call to abort() to mozalloc_abort

Exiting due to channel error.
Exiting due to channel error.
Firefox exited with code -11 during profile initialization
Error running mach:

    ['build', '--verbose']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke ``./mach busted`` to check if this issue is already on file. If it
isn't, please use ``./mach busted file build`` to report it. If ``./mach busted`` is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

subprocess.CalledProcessError: Command '['/var/tmp/portage/www-client/firefox-114.0/work/firefox_build/_virtualenvs/build/bin/python', '/var/tmp/portage/www-client/firefox-114.0/work/firefox-114.0/build/pgo/profileserver.py']' returned non-zero exit status 245.

  File "/var/tmp/portage/www-client/firefox-114.0/work/firefox-114.0/python/mozbuild/mozbuild/build_commands.py", line 215, in build
    subprocess.check_call(pgo_cmd, cwd=instr.topobjdir, env=pgo_env)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
 �[31;01m*�[0m ERROR: www-client/firefox-114.0::gentoo failed (compile phase):
 �[31;01m*�[0m   Failed to run './mach build --verbose'
 �[31;01m*�[0m 
 �[31;01m*�[0m Call stack:
 �[31;01m*�[0m     ebuild.sh, line  136:  Called src_compile
 �[31;01m*�[0m   environment, line 5983:  Called virtx './mach' 'build' '--verbose'
 �[31;01m*�[0m   environment, line 7427:  Called die
 �[31;01m*�[0m The specific snippet of code:
 �[31;01m*�[0m       [[ ${retval} -ne 0 ]] && die "Failed to run '$@'";
 �[31;01m*�[0m 
 �[31;01m*�[0m If you need support, post the output of `emerge --info '=www-client/firefox-114.0::gentoo'`,
 �[31;01m*�[0m the complete build log and the output of `emerge -pqv '=www-client/firefox-114.0::gentoo'`.
 �[31;01m*�[0m The complete build log is located at '/var/tmp/portage/www-client/firefox-114.0/temp/build.log'.
 �[31;01m*�[0m The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-114.0/temp/environment'.
 �[31;01m*�[0m Working directory: '/var/tmp/portage/www-client/firefox-114.0/work/firefox-114.0'
 �[31;01m*�[0m S: '/var/tmp/portage/www-client/firefox-114.0/work/firefox-114.0'

That is a completely different issue, and I have no idea for the reason, sorry.

No worries, thanks for taking a look anyway. I've also been very puzzled by it, so I'll probably open a new bug report tomorrow then.