Closed Bug 1676307 Opened 5 years ago Closed 5 years ago

long build message should provide concrete instructions to enable sccache

Categories

(Firefox Build System :: General, task)

task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(3 files, 1 obsolete file)

No description provided.

And also, don't output that message if already using sccache.

So that ac_add_options --with-ccache=sccache just works.

Depends on D96500

Keywords: leave-open
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/74e377213d81 Move compiler wrapper config after toolchain search path definition. r=firefox-build-system-reviewers,mhentges https://hg.mozilla.org/integration/autoland/rev/3b7922a9af19 Search for sccache in the toolchain search path. r=firefox-build-system-reviewers,mhentges

This was happening implicitly before because we were passing progs=()
and paths=None, but passing a non-None path makes it mandatory unless we
also pass allow_missing...

Backed out 2 changesets (bug 1676307) for stackwalk related bustage.

Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&fromchange=3b7922a9af1943fa71318e300a8f1c7e80458593&tochange=4fc8763050c90cf1cb738a678e330884a159572a&searchStr=build&selectedTaskRun=dUUKSdyCR86RL416_Jct2g.0

Backout link: https://hg.mozilla.org/integration/autoland/rev/4fc8763050c90cf1cb738a678e330884a159572a

Failures logs: https://treeherder.mozilla.org/logviewer?job_id=321300294&repo=autoland&lineNumber=291

[task 2020-11-10T12:29:10.500Z]  0:01.96 checking for ccache... not found
[task 2020-11-10T12:29:10.500Z]  0:01.96 ERROR: Cannot find ccache
[task 2020-11-10T12:29:10.543Z]  Config object not found by mach.
[task 2020-11-10T12:29:10.543Z] Error running mach:
[task 2020-11-10T12:29:10.543Z] 
[task 2020-11-10T12:29:10.543Z]     ['build', '-v']
[task 2020-11-10T12:29:10.543Z] 
[task 2020-11-10T12:29:10.543Z] The error occurred in code that was called by the mach command. This is either
[task 2020-11-10T12:29:10.543Z] a bug in the called code itself or in the way that mach is calling it.
[task 2020-11-10T12:29:10.543Z] You can invoke |./mach busted| to check if this issue is already on file. If it
[task 2020-11-10T12:29:10.543Z] isn't, please use |./mach busted file build| to report it. If |./mach busted| is
[task 2020-11-10T12:29:10.543Z] misbehaving, you can also inspect the dependencies of bug 1543241.
[task 2020-11-10T12:29:10.543Z] 
[task 2020-11-10T12:29:10.543Z] If filing a bug, please include the full output of mach, including this error
[task 2020-11-10T12:29:10.543Z] message.
[task 2020-11-10T12:29:10.543Z] 
[task 2020-11-10T12:29:10.543Z] The details of the failure are as follows:
[task 2020-11-10T12:29:10.543Z] 
[task 2020-11-10T12:29:10.543Z] Exception: Process executed with non-0 exit code 1: ['/usr/bin/python3', '/builds/worker/workspace/build/src/configure.py']
[task 2020-11-10T12:29:10.543Z] 
[task 2020-11-10T12:29:10.543Z]   File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/build_commands.py", line 153, in build
[task 2020-11-10T12:29:10.543Z]     append_env=append_env,
[task 2020-11-10T12:29:10.543Z]   File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/controller/building.py", line 1144, in build
[task 2020-11-10T12:29:10.543Z]     append_env=append_env,
[task 2020-11-10T12:29:10.543Z]   File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/controller/building.py", line 1525, in configure
[task 2020-11-10T12:29:10.543Z]     append_env=append_env,
[task 2020-11-10T12:29:10.543Z]   File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/base.py", line 888, in _run_command_in_objdir
[task 2020-11-10T12:29:10.543Z]     return self.run_process(cwd=self.topobjdir, **args)
[task 2020-11-10T12:29:10.543Z]   File "/builds/worker/workspace/build/src/python/mach/mach/mixin/process.py", line 174, in run_process
[task 2020-11-10T12:29:10.543Z]     "Process executed with non-0 exit code %d: %s" % (status, args)
[taskcluster 2020-11-10 12:29:10.965Z] === Task Finished ===
[taskcluster 2020-11-10 12:29:11.568Z] Unsuccessful task run with exit code: 1 completed in 50.322 seconds

https://treeherder.mozilla.org/logviewer?job_id=321300296&repo=autoland&lineNumber=234

[task 2020-11-10T12:29:15.164Z] creating build/lib.linux-x86_64-3.6/psutil
[task 2020-11-10T12:29:15.164Z] x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/psutil/_psutil_common.o build/temp.linux-x86_64-3.6/psutil/_psutil_posix.o build/temp.linux-x86_64-3.6/psutil/_psutil_linux.o -o build/lib.linux-x86_64-3.6/psutil/_psutil_linux.cpython-36m-x86_64-linux-gnu.so
[task 2020-11-10T12:29:15.164Z] building 'psutil._psutil_posix' extension
[task 2020-11-10T12:29:15.164Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=570 -DPSUTIL_LINUX=1 -I/builds/worker/workspace/obj-spider/_virtualenvs/init_py3/include -I/usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o
[task 2020-11-10T12:29:15.164Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=570 -DPSUTIL_LINUX=1 -I/builds/worker/workspace/obj-spider/_virtualenvs/init_py3/include -I/usr/include/python3.6m -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_posix.o
[task 2020-11-10T12:29:15.164Z] x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/psutil/_psutil_common.o build/temp.linux-x86_64-3.6/psutil/_psutil_posix.o -o build/lib.linux-x86_64-3.6/psutil/_psutil_posix.cpython-36m-x86_64-linux-gnu.so
[task 2020-11-10T12:29:15.164Z] copying build/lib.linux-x86_64-3.6/psutil/_psutil_linux.cpython-36m-x86_64-linux-gnu.so -> psutil
[task 2020-11-10T12:29:15.164Z] copying build/lib.linux-x86_64-3.6/psutil/_psutil_posix.cpython-36m-x86_64-linux-gnu.so -> psutil
[task 2020-11-10T12:29:15.164Z] 
[task 2020-11-10T12:29:15.164Z] Error processing command. Ignoring because optional. (optional:packages.txt:comm/build/virtualenv_packages.txt)
[task 2020-11-10T12:29:15.170Z] Re-executing in the virtualenv
[task 2020-11-10T12:29:15.350Z] checking for vcs source checkout... hg
[task 2020-11-10T12:29:15.564Z] checking for a shell... /bin/sh
[task 2020-11-10T12:29:15.687Z] checking for host system type... x86_64-pc-linux-gnu
[task 2020-11-10T12:29:15.692Z] checking for target system type... i686-pc-linux-gnu
[task 2020-11-10T12:29:16.963Z] checking for Python 3... /builds/worker/workspace/obj-spider/_virtualenvs/init_py3/bin/python (3.6.3)
[task 2020-11-10T12:29:16.964Z] checking for hg... /usr/bin/hg
[task 2020-11-10T12:29:17.023Z] checking for Mercurial version... 4.8.1
[task 2020-11-10T12:29:17.115Z] checking for sparse checkout... no
[task 2020-11-10T12:29:17.115Z] checking whether cross compiling... yes
[task 2020-11-10T12:29:17.118Z] checking for wget... /usr/bin/wget
[task 2020-11-10T12:29:17.119Z] checking for yasm... /usr/bin/yasm
[task 2020-11-10T12:29:17.121Z] checking yasm version... 1.2.0
[task 2020-11-10T12:29:17.124Z] checking for ccache... not found
[task 2020-11-10T12:29:17.124Z] ERROR: Cannot find ccache
[task 2020-11-10T12:29:17.178Z] Traceback (most recent call last):
[task 2020-11-10T12:29:17.178Z]   File "/builds/worker/checkouts/gecko/js/src/devtools/automation/autospider.py", line 514, in <module>
[task 2020-11-10T12:29:17.178Z]     check=True,
[task 2020-11-10T12:29:17.178Z]   File "/builds/worker/checkouts/gecko/js/src/devtools/automation/autospider.py", line 429, in run_command
[task 2020-11-10T12:29:17.178Z]     raise subprocess.CalledProcessError(status, command, output=stderr)
[task 2020-11-10T12:29:17.178Z] subprocess.CalledProcessError: Command '['sh', '-c', '/builds/worker/checkouts/gecko/js/src/configure  --enable-stdcxx-compat --disable-gold --enable-simulator=arm --target=i686-pc-linux --enable-rust-simd --enable-optimize --enable-debug --target=i686-pc-linux --enable-nspr-build --prefix=/builds/worker/workspace/obj-spider/dist']' returned non-zero exit status 1.
[task 2020-11-10T12:29:17.185Z] + BUILD_STATUS=1
[task 2020-11-10T12:29:17.185Z] + upload=0
[task 2020-11-10T12:29:17.185Z] + '[' -n '' ']'
[task 2020-11-10T12:29:17.185Z] + '[' 0 = 1 ']'
[task 2020-11-10T12:29:17.185Z] + cat
[task 2020-11-10T12:29:17.186Z] + exit 1
[taskcluster 2020-11-10 12:29:21.260Z] === Task Finished ===
[taskcluster 2020-11-10 12:29:21.548Z] Unsuccessful task run with exit code: 1 completed in 60.343 seconds
Flags: needinfo?(emilio)
Attachment #9186890 - Attachment is obsolete: true
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/27f0d77d37d6 Move compiler wrapper config after toolchain search path definition. r=firefox-build-system-reviewers,mhentges
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/550534e1289e Search for sccache in the toolchain search path. r=firefox-build-system-reviewers,mhentges
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1d729b7fb4e8 Provide concrete instructions to enable sccache. r=sylvestre
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: