Open Bug 1318957 Opened 8 years ago Updated 2 years ago

Error running `mach run` with Firefox for Android (Linux host) - can't find _psutil_linux

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: benjamin, Unassigned)

References

Details

STR: * Fresh Fedora VM * Run mach bootstrap with option 4 for an android build * `mach build` (works) * `mach package` (works) * `mach run` Expected: mach prompts me to start an emulator and runs FxAndroid Actual: Error thrown on the build console: ImportError: cannot import name _psutil_linux ... File "/home/bsmedberg/mozilla-central/python/psutil/psutil/_pslinux.py", line 24, in <module> from . import _psutil_linux as cext I tried installing python2-psutil in the fedora package manager, but that doesn't appear to have helped.
Summary: Error running `mach run` with Firefox for Android (Linux host) → Error running `mach run` with Firefox for Android (Linux host) - can't find _psutil_linux
Found this in the configure log: building 'psutil._psutil_linux' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --params=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSUTIL_VERSION=e11 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
Solved for me by running `sudo dnf install redhat-rpm-config` and reconfiguring. I'm not sure what the bootstrap script should do for this.
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.