--enable-coverage should set appropriate cflags/ldflags
Categories
(Firefox Build System :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: ted, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•6 years ago
|
||
Bug 1491004 is doing this for CFLAGS.
Comment 4•6 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #2)
The libs shouldn't be necessary. If they are, I'd say there's something
wrong with the compilers in how they handle their flags. Or some flag is
missing.
For Clang, probably https://bugs.llvm.org/show_bug.cgi?id=40877.
For GCC, I think we can remove lgcov.
Comment 5•5 years ago
|
||
Comment 7•5 years ago
|
||
Backed out changeset 098dacd3fabe (bug 1476339) for Linting failure in mozbuild/mozbuild/frontend/context.py. CLOSED TREE
Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=272474545&repo=autoland&lineNumber=284
Push with failures:
https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=098dacd3fabe5b3c916b14cb24cbe9420aa053d6
Backout:
https://hg.mozilla.org/integration/autoland/rev/a95eb47d41c862aacfd550ab81e2f54b14923105
Comment 9•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Comment 10•5 years ago
•
|
||
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=272598501&repo=mozilla-central
https://treeherder.mozilla.org/logviewer.html#?job_id=272598499&repo=mozilla-central
Backout link: https://hg.mozilla.org/integration/autoland/rev/ce5ef7099b4ad932af94a5554a4aaadb45015853
[task 2019-10-23T16:14:47.614Z] 16:14:47 INFO - warning: trait objects without an explicit dyn
are deprecated
[task 2019-10-23T16:14:47.615Z] 16:14:47 INFO - --> Z:\build\build\src\third_party\rust\gleam\src\gles_fns.rs:20:53
[task 2019-10-23T16:14:47.615Z] 16:14:47 INFO - |
[task 2019-10-23T16:14:47.615Z] 16:14:47 INFO - 20 | Rc::new(GlesFns { ffi_gl_: ffi_gl_ }) as Rc<Gl>
[task 2019-10-23T16:14:47.615Z] 16:14:47 INFO - | ^^ help: use dyn
: dyn Gl
[task 2019-10-23T16:14:47.615Z] 16:14:47 INFO - warning: trait objects without an explicit dyn
are deprecated
[task 2019-10-23T16:14:47.615Z] 16:14:47 INFO - --> z:/build/build/src/obj-firefox\x86_64-pc-windows-msvc\debug\build\gleam-26545dc4d8d16efe\out/gl_and_gles_bindings.rs:2758:47
[task 2019-10-23T16:14:47.616Z] 16:14:47 INFO - |
[task 2019-10-23T16:14:47.616Z] 16:14:47 INFO - 2758 | fn do_metaloadfn(loadfn: &mut FnMut(&'static str) -> *const __gl_imports::raw::c_void,
[task 2019-10-23T16:14:47.616Z] 16:14:47 INFO - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use dyn
: dyn FnMut(&'static str) -> *const __gl_imports::raw::c_void
[task 2019-10-23T16:14:47.616Z] 16:14:47 INFO - warning: trait objects without an explicit dyn
are deprecated
[task 2019-10-23T16:14:47.616Z] 16:14:47 INFO - --> z:/build/build/src/obj-firefox\x86_64-pc-windows-msvc\debug\build\gleam-26545dc4d8d16efe\out/gl_bindings.rs:2641:47
[task 2019-10-23T16:14:47.616Z] 16:14:47 INFO - |
[task 2019-10-23T16:14:47.617Z] 16:14:47 INFO - 2641 | fn do_metaloadfn(loadfn: &mut FnMut(&'static str) -> *const __gl_imports::raw::c_void,
[task 2019-10-23T16:14:47.617Z] 16:14:47 INFO - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use dyn
: dyn FnMut(&'static str) -> *const __gl_imports::raw::c_void
[task 2019-10-23T16:14:47.617Z] 16:14:47 INFO - warning: trait objects without an explicit dyn
are deprecated
[task 2019-10-23T16:14:47.617Z] 16:14:47 INFO - --> z:/build/build/src/obj-firefox\x86_64-pc-windows-msvc\debug\build\gleam-26545dc4d8d16efe\out/gles_bindings.rs:1401:47
[task 2019-10-23T16:14:47.618Z] 16:14:47 INFO - |
[task 2019-10-23T16:14:47.618Z] 16:14:47 INFO - 1401 | fn do_metaloadfn(loadfn: &mut FnMut(&'static str) -> *const __gl_imports::raw::c_void,
[task 2019-10-23T16:14:47.618Z] 16:14:47 INFO - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use dyn
: dyn FnMut(&'static str) -> *const __gl_imports::raw::c_void
[task 2019-10-23T16:14:47.618Z] 16:14:47 INFO - error: build failed
[task 2019-10-23T16:14:47.618Z] 16:14:47 INFO - z:/build/build/src/config/makefiles/rust.mk:259: recipe for target 'force-cargo-library-build' failed
[task 2019-10-23T16:14:47.619Z] 16:14:47 INFO - mozmake.EXE[4]: *** [force-cargo-library-build] Error 101
[task 2019-10-23T16:14:47.619Z] 16:14:47 INFO - mozmake.EXE[4]: Leaving directory 'z:/build/build/src/obj-firefox/toolkit/library/gtest/rust'
[task 2019-10-23T16:14:47.619Z] 16:14:47 INFO - z:/build/build/src/config/recurse.mk:74: recipe for target 'toolkit/library/gtest/rust/target' failed
[task 2019-10-23T16:14:47.619Z] 16:14:47 INFO - mozmake.EXE[3]: *** [toolkit/library/gtest/rust/target] Error 2
[task 2019-10-23T16:14:47.619Z] 16:14:47 INFO - mozmake.EXE[3]: *** Waiting for unfinished jobs....
[task 2019-10-23T16:14:47.619Z] 16:14:47 INFO - mozmake.EXE[4]: Entering directory 'z:/build/build/src/obj-firefox/js/src'
[task 2019-10-23T16:14:47.620Z] 16:14:47 INFO - js/src/Unified_cpp_js_src16.obj
[task 2019-10-23T16:14:47.620Z] 16:14:47 INFO - mozmake.EXE[4]: Leaving directory 'z:/build/build/src/obj-firefox/js/src'
[task 2019-10-23T16:14:47.620Z] 16:14:47 INFO - mozmake.EXE[4]: Entering directory 'z:/build/build/src/obj-firefox/modules/zlib/src'
[task 2019-10-23T16:14:47.620Z] 16:14:47 INFO - modules/zlib/src/deflate.obj
Comment 11•5 years ago
|
||
The failure is:
[task 2019-10-23T16:14:47.577Z] 16:14:47 INFO - cargo:warning=clang: error: no such file or directory: ''@z:/build/build/src/obj-firefox\code_coverage_cflags''
I pushed to try a patch which is basically equivalent to this a few days ago and it worked. So it's either something that landed in-between (chmanchester suggested a rustup) or it wasn't really "basically equivalent".
Comment 12•5 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:marco, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Description
•