non-existent virtualenv common used with "virtx ./mach build" on Linux
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox-esr78 unaffected, firefox-esr91 unaffected, firefox92 unaffected, firefox93 unaffected, firefox94 fixed)
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox-esr91 | --- | unaffected |
firefox92 | --- | unaffected |
firefox93 | --- | unaffected |
firefox94 | --- | fixed |
People
(Reporter: steve, Assigned: mhentges)
References
(Regression)
Details
(Keywords: regression)
Attachments
(4 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0
Steps to reproduce:
Using a live firefox ebuild:
After successful configuration
The compile stage called "virtx ./mach build --verbose"
Actual results:
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:
FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/portage/www-client/firefox-9999/work/firefox_build/instrumented/_virtualenvs/common/bin/python'
Expected results:
Successful build
![]() |
Reporter | |
Comment 1•4 years ago
|
||
![]() |
Reporter | |
Comment 2•4 years ago
|
||
Comment 3•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox Build System::General' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•4 years ago
|
Updated•4 years ago
|
![]() |
Assignee | |
Comment 4•4 years ago
|
||
Thanks for the separate report 👍
The configure logs look good, and create the build
virtualenv as expected.
Two questions for you:
- Are there additional log lines above the "Error running mach" line, or below the "FileNotFoundError: [Errno 2]" line? If so, please share them here.
- Can you reproduce this issue outside of Gentoo's "ebuild" environment? You may need to follow the quickstart instructions to set up the local build.
![]() |
Reporter | |
Comment 5•4 years ago
|
||
There are many lines above the error. It does manage to complete the instrumented build but fails after creating the langpack xpi file.
I did try to attach the full build.log, but it was too big. Even compressed it didn't work.
I'll attach the last 100 lines.
![]() |
Reporter | |
Comment 6•4 years ago
|
||
![]() |
Reporter | |
Updated•4 years ago
|
![]() |
Assignee | |
Comment 7•4 years ago
•
|
||
Looks like it's caused by PGO builds, since the profileserver.py
script is invoked without specifying the build virtualenv.
Thanks for the build log, the part that made this possible to diagnose is:
File "/var/tmp/portage/www-client/firefox-9999/work/firefox-9999/python/mozbuild/mozbuild/build_commands.py", line 219, in build
subprocess.check_call(pgo_cmd, cwd=instr.topobjdir, env=pgo_env)
File "/usr/lib/python3.10/subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.10/subprocess.py", line 965, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1841, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
![]() |
Assignee | |
Comment 8•4 years ago
|
||
Build-related work should happen in the "build" virtualenv, but the
BuildDriver
was associated with the default "common" venv instead.
Manually associate BuildDriver
with the "build" venv.
Comment 10•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•