Closed Bug 1538030 Opened 9 months ago Closed 9 months ago

Perma make[4]: *** [TestCanRunScript.o] Error 1

Categories

(Firefox Build System :: Source Code Analysis, defect, P5)

defect

Tracking

(firefox-esr60 unaffected, firefox66 unaffected, firefox67 unaffected, firefox68 fixed)

RESOLVED FIXED
mozilla68
Tracking Status
firefox-esr60 --- unaffected
firefox66 --- unaffected
firefox67 --- unaffected
firefox68 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: bzbarsky)

References

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

#[markdown(off)]
Filed by: ccoroiu [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=235287692&repo=mozilla-central

https://queue.taskcluster.net/v1/task/FDVPTRyeTN-PguuLfdkdag/runs/0/artifacts/public/logs/live_backing.log

task 2019-03-21T22:12:22.730Z] 22:12:22 INFO - error: 'error' diagnostics expected but not seen:
[task 2019-03-21T22:12:22.730Z] 22:12:22 INFO - File /builds/worker/workspace/build/src/build/clang-plugin/tests/TestCanRunScript.cpp Line 215: ISO C++ does not allow indirection on operand of type 'void *'
[task 2019-03-21T22:12:22.730Z] 22:12:22 INFO - error: 'warning' diagnostics seen but not expected:
[task 2019-03-21T22:12:22.730Z] 22:12:22 INFO - File /builds/worker/workspace/build/src/build/clang-plugin/tests/TestCanRunScript.cpp Line 215: ISO C++ does not allow indirection on operand of type 'void *'
[task 2019-03-21T22:12:22.731Z] 22:12:22 INFO - 2 errors generated.
[task 2019-03-21T22:12:22.731Z] 22:12:22 INFO - /builds/worker/workspace/build/src/config/rules.mk:805: recipe for target 'TestCanRunScript.o' failed
[task 2019-03-21T22:12:22.731Z] 22:12:22 ERROR - make[4]: *** [TestCanRunScript.o] Error 1
[task 2019-03-21T22:12:22.731Z] 22:12:22 INFO - make[4]: Leaving directory '/builds/worker/workspace/build/src/obj-firefox/build/clang-plugin/tests'
[task 2019-03-21T22:12:22.732Z] 22:12:22 INFO - /builds/worker/workspace/build/src/config/recurse.mk:74: recipe for target 'build/clang-plugin/tests/target' failed
[task 2019-03-21T22:12:22.732Z] 22:12:22 ERROR - make[3]: *** [build/clang-plugin/tests/target] Error 2
[task 2019-03-21T22:12:22.732Z] 22:12:22 INFO - /builds/worker/workspace/build/src/config/recurse.mk:32: recipe for target 'compile' failed
[task 2019-03-21T22:12:22.732Z] 22:12:22 ERROR - make[2]: *** [compile] Error 2
[task 2019-03-21T22:12:22.732Z] 22:12:22 INFO - /builds/worker/workspace/build/src/config/rules.mk:400: recipe for target 'default' failed
[task 2019-03-21T22:12:22.732Z] 22:12:22 ERROR - make[1]: *** [default] Error 2
[task 2019-03-21T22:12:22.732Z] 22:12:22 INFO - client.mk:125: recipe for target 'build' failed
[task 2019-03-21T22:12:22.733Z] 22:12:22 INFO - make: *** [build] Error 2
[task 2019-03-21T22:12:22.768Z] 22:12:22 INFO - 0 compiler warnings present.
[task 2019-03-21T22:12:22.837Z] 22:12:22 ERROR - Return code: 2
[task 2019-03-21T22:12:22.837Z] 22:12:22 WARNING - setting return code to 2
[task 2019-03-21T22:12:22.837Z] 22:12:22 FATAL - 'mach build -v' did not run successfully. Please check log for errors.
[task 2019-03-21T22:12:22.837Z] 22:12:22 FATAL - Running post_fatal callback...
[task 2019-03-21T22:12:22.837Z] 22:12:22 FATAL - Exiting -1
[task 2019-03-21T22:12:22.837Z] 22:12:22 INFO - [mozharness: 2019-03-21 22:12:22.837784Z] Finished build step (failed)
[task 2019-03-21T22:12:22.837Z] 22:12:22 INFO - Running post-run listener: _parse_build_tests_ccov
[task 2019-03-21T22:12:22.837Z] 22:12:22 INFO - Running post-run listener: _shutdown_sccache
[task 2019-03-21T22:12:22.837Z] 22:12:22 INFO - Running command: ['/builds/worker/workspace/build/src/sccache2/sccache', '--stop-server'] in /builds/worker/workspace/build/src
[task 2019-03-21T22:12:22.838Z] 22:12:22 INFO - Copy/paste: /builds/worker/workspace/build/src/sccache2/sccache --stop-server
[task 2019-03-21T22:12:22.841Z] 22:12:22 INFO - Stopping sccache server...
[task 2019-03-21T22:12:22.841Z] 22:12:22 INFO - error: couldn't connect to server
[task 2019-03-21T22:12:22.841Z] 22:12:22 INFO - caused by: Connection refused (os error 111)
[task 2019-03-21T22:12:22.841Z] 22:12:22 ERROR - Return code: 2
[task 2019-03-21T22:12:22.841Z] 22:12:22 INFO - Running post-run listener: _summarize
[task 2019-03-21T22:12:22.841Z] 22:12:22 ERROR - # TBPL FAILURE #
[task 2019-03-21T22:12:22.841Z] 22:12:22 INFO - [mozharness: 2019-03-21 22:12:22.841892Z] FxDesktopBuild summary:
[task 2019-03-21T22:12:22.841Z] 22:12:22 ERROR - # TBPL FAILURE #
[task 2019-03-21T22:12:22.848Z] cleanup

Basic problem: one of the tests https://hg.mozilla.org/mozilla-central/rev/1133a148d29c657567b6985e08af96adab3328f7 added triggers a compiler warning (about dereferencing void*). In --enable-warnings-as-errors builds (default in automation) that becomes an error. The ccov build from comment 0 is using the mozconfig at https://searchfox.org/mozilla-central/source/browser/config/mozconfigs/linux64/asan-fuzzing-ccov which has --disable-warnings-as-errors, so it ends up a warning, not an error. Hence the errors in the log:

INFO - error: 'error' diagnostics expected but not seen:
INFO - File /builds/worker/workspace/build/src/build/clang-plugin/tests/TestCanRunScript.cpp Line 215: ISO C++ does not allow indirection on operand of type 'void *'
INFO - error: 'warning' diagnostics seen but not expected:
INFO - File /builds/worker/workspace/build/src/build/clang-plugin/tests/TestCanRunScript.cpp Line 215: ISO C++ does not allow indirection on operand of type 'void *'

I can just remove the test, but looking into some other options first.

Assignee: nobody → bzbarsky
Blocks: 1536825
Component: General → Source Code Analysis

Some of our builds use --enable-warnings-as-errors and some don't, and I can't
figure out a way to write an expectation comment for that.

Flags: needinfo?(bzbarsky)
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1f5e5aa2229d
Disable warning about dereferencing void* in can-run-script test.  r=glandium
Summary: Intermittent make[4]: *** [TestCanRunScript.o] Error 1 → Pemra make[4]: *** [TestCanRunScript.o] Error 1
Summary: Pemra make[4]: *** [TestCanRunScript.o] Error 1 → Perma make[4]: *** [TestCanRunScript.o] Error 1
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.