Closed Bug 1481005 Opened 8 years ago Closed 8 years ago

Perma-failing tier2 z:\build\build\src\obj-firefox\dist\include\mozilla/Alignment.h(29): error C2220: warning treated as error - no 'object' file generated

Categories

(Firefox Build System :: General, defect, P5)

defect

Tracking

(firefox63 fixed)

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

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

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

Filed by: apavel [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=192047664&repo=mozilla-central https://queue.taskcluster.net/v1/task/MqE9oyK3SqKF4x9d3w7Vmw/runs/0/artifacts/public/logs/live_backing.log 12:59:42 INFO - Unified_cpp_reflect_xptinfo0.cpp 12:59:42 INFO - mozmake.EXE[4]: Leaving directory 'z:/build/build/src/obj-firefox/xpcom/reflect/xptinfo' 12:59:42 INFO - mozmake.EXE[4]: Entering directory 'z:/build/build/src/obj-firefox/js/src' 12:59:42 INFO - mozmake.EXE[4]: Leaving directory 'z:/build/build/src/obj-firefox/js/src' 12:59:42 INFO - mozmake.EXE[4]: Entering directory 'z:/build/build/src/obj-firefox/js/src' 12:59:42 INFO - mozmake.EXE[4]: Leaving directory 'z:/build/build/src/obj-firefox/js/src' 12:59:43 INFO - mozmake.EXE[4]: Entering directory 'z:/build/build/src/obj-firefox/xpcom/reflect/xptcall' 12:59:43 INFO - z:/build/build/src/obj-firefox/_virtualenvs/init/Scripts/python.exe -m mozbuild.action.cl z:/build/build/src/vs2017_15.6.6/VC/bin/Hostx64/x64/cl.exe -Foxptcall.obj -c -Iz:/build/build/src/obj-firefox/dist/stl_wrappers -DDEBUG=1 -DSTATIC_EXPORTABLE_JS_API -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -Iz:/build/build/src/xpcom/reflect/xptcall -Iz:/build/build/src/obj-firefox/xpcom/reflect/xptcall -Iz:/build/build/src/obj-firefox/dist/include -Iz:/build/build/src/obj-firefox/dist/include/nspr -Iz:/build/build/src/obj-firefox/dist/include/nss -MD -FI z:/build/build/src/obj-firefox/mozilla-config.h -DMOZILLA_CLIENT -utf-8 -TP -nologo -w15038 -wd5026 -wd5027 -Zc:sizedDealloc- -wd4091 -wd4577 -D_HAS_EXCEPTIONS=0 -W3 -Gy -Zc:inline -Gw -wd4251 -wd4244 -wd4267 -wd4800 -wd4595 -wd4065 -we4553 -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING -GR- -Zi -O1 -Oi -Oy- -WX -Fdgenerated.pdb -FS z:/build/build/src/xpcom/reflect/xptcall/xptcall.cpp 12:59:43 INFO - xptcall.cpp 12:59:43 INFO - z:\build\build\src\obj-firefox\dist\include\mozilla/Alignment.h(29): error C2220: warning treated as error - no 'object' file generated 12:59:43 INFO - z:\build\build\src\obj-firefox\dist\include\mozilla/Alignment.h(32): note: see reference to class template instantiation 'mozilla::AlignmentFinder<nsXPTCVariant::ExtendedVal>::Aligner' being compiled 12:59:43 INFO - z:\build\build\src\xpcom\reflect\xptcall\xptcall.h(126): note: see reference to class template instantiation 'mozilla::AlignmentFinder<nsXPTCVariant::ExtendedVal>' being compiled 12:59:43 INFO - z:\build\build\src\obj-firefox\dist\include\mozilla/Alignment.h(29): warning C4624: 'mozilla::AlignmentFinder<nsXPTCVariant::ExtendedVal>::Aligner': destructor was implicitly defined as deleted 12:59:43 INFO - z:/build/build/src/config/rules.mk:1086: recipe for target 'xptcall.obj' failed 12:59:43 INFO - mozmake.EXE[4]: *** [xptcall.obj] Error 2 12:59:43 INFO - mozmake.EXE[4]: Leaving directory 'z:/build/build/src/obj-firefox/xpcom/reflect/xptcall' 12:59:43 INFO - z:/build/build/src/config/recurse.mk:74: recipe for target 'xpcom/reflect/xptcall/target' failed 12:59:43 INFO - mozmake.EXE[3]: *** [xpcom/reflect/xptcall/target] Error 2 12:59:43 INFO - mozmake.EXE[3]: *** Waiting for unfinished jobs.... 12:59:43 INFO - mozmake.EXE[4]: Entering directory 'z:/build/build/src/obj-firefox/config/external/icu/common' 12:59:43 INFO - mozmake.EXE[4]: Leaving directory 'z:/build/build/src/obj-firefox/config/external/icu/common' 12:59:43 INFO - mozmake.EXE[4]: Entering directory 'z:/build/build/src/obj-firefox/config/external/icu/common' 12:59:43 INFO - mozmake.EXE[4]: Leaving directory 'z:/build/build/src/obj-firefox/config/external/icu/common' 12:59:43 INFO - mozmake.EXE[4]: Entering directory 'z:/build/build/src/obj-firefox/config/external/icu/i18n' 12:59:43 INFO - mozmake.EXE[4]: Leaving directory 'z:/build/build/src/obj-firefox/config/external/icu/i18n' 12:59:43 INFO - mozmake.EXE[4]: Entering directory 'z:/build/build/src/obj-firefox/config/external/icu/i18n' 12:59:43 INFO - mozmake.EXE[4]: Leaving directory 'z:/build/build/src/obj-firefox/config/external/icu/i18n' 12:59:43 INFO - mozmake.EXE[4]: Entering directory 'z:/build/build/src/obj-firefox/config/external/icu/common' 12:59:43 INFO - z:/build/build/src/obj-firefox/_virtualenvs/init/Scripts/python.exe -m mozbuild.action.cl z:/build/build/src/vs2017_15.6.6/VC/bin/Hostx64/x64/cl.exe -Founormcmp.obj -c -DDEBUG=1 -DU_COMMON_IMPLEMENTATION -DUCONFIG_NO_TRANSLITERATION -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_LEGACY_CONVERSION -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_CHARSET_IS_UTF8 -DU_HAVE_NL_LANGINFO_CODESET=0 -DU_DEBUG=1 -Iz:/build/build/src/config/external/icu/common -Iz:/build/build/src/obj-firefox/config/external/icu/common -Iz:/build/build/src/intl/icu/source/i18n -Iz:/build/build/src/obj-firefox/dist/include -Iz:/build/build/src/obj-firefox/dist/include/nspr -Iz:/build/build/src/obj-firefox/dist/include/nss -MD -FI z:/build/build/src/obj-firefox/mozilla-config.h -DMOZILLA_CLIENT -utf-8 -TP -nologo -w15038 -wd5026 -wd5027 -Zc:sizedDealloc- -wd4091 -wd4577 -D_HAS_EXCEPTIONS=0 -W3 -Gy -Zc:inline -Gw -wd4251 -wd4244 -wd4267 -wd4800 -wd4595 -wd4065 -we4553 -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING -GR- -Zi -O1 -Oi -Oy- -GR -wd4005 -wd4333 -wd4996 -Fdgenerated.pdb -FS z:/build/build/src/intl/icu/source/common/unormcmp.cpp 12:59:43 INFO - cl : Command line warning D9025 : overriding '/GR-' with '/GR' 12:59:43 INFO - unormcmp.cpp
Broke on windows msvc builds - Possibly related to Bug 1480624 ?
Flags: needinfo?(nika)
Flags: needinfo?(continuation)
Blocks: 1480624
To add to the above, I'm seeing the changes from bug 1480624 lead to this issue with local MSVC builds. Verified by backing out the changes. Highlighting the issue in comment #0 / the logs: >>12:59:43 INFO - xptcall.cpp >>12:59:43 INFO - z:\build\build\src\obj-firefox\dist\include\mozilla/Alignment.h(29): error C2220: warning treated as error - no 'object' file generated >>12:59:43 INFO - z:\build\build\src\obj-firefox\dist\include\mozilla/Alignment.h(32): note: see reference to class template instantiation 'mozilla::AlignmentFinder<nsXPTCVariant::ExtendedVal>::Aligner' being compiled >>12:59:43 INFO - z:\build\build\src\xpcom\reflect\xptcall\xptcall.h(126): note: see reference to class template instantiation 'mozilla::AlignmentFinder<nsXPTCVariant::ExtendedVal>' being compiled >12:59:43 INFO - z:\build\build\src\obj-firefox\dist\include\mozilla/Alignment.h(29): warning C4624: 'mozilla::AlignmentFinder<nsXPTCVariant::ExtendedVal>::Aligner': destructor was implicitly defined as deleted
Looking a little deeper. Suspect MSVC is unhappy when it tries to handle one of the new lines[0] from bug 1480624. MOZ_ALIGNOF(nsXPTCVariant::ExtendedVal) -> AlignmentFinder with T=nsXPTCVariant::ExtendedVal -> Aligner with a nsXPTCVariant::ExtendedVal member. Since nsXPTCVariant::ExtendedVal has a deleted dtor, compiler decides that said specialisation of Aligner has an implicitly deleted dtor and we get this unhappiness. [0]: https://searchfox.org/mozilla-central/rev/3fdc491e118c5cdfbaf6e2d52f3466d2b27ad1de/xpcom/reflect/xptcall/xptcall.h#124
Bug 1480624 added new code that results in a warning on MSVC debug builds. This warning is treated as an error and makes such builds unhappy. The warning is due to implicit deletion of a dtor, this changeset makes that deletion explicit to avoid the fatal warning.
Thanks for figuring this out :bryce!
Flags: needinfo?(nika)
Assignee: nobody → bvandyk
Comment on attachment 8998234 [details] Bug 1481005 - Explicitly delete dtor of AlignmentFinder::Alinger to avoid MSVC warning breaking debug builds. Nathan Froyd [:froydnj] has approved the revision. https://phabricator.services.mozilla.com/D2865
Attachment #8998234 - Flags: review+
Pushed by bvandyk@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/76baf773b83e Explicitly delete dtor of AlignmentFinder::Alinger to avoid MSVC warning breaking debug builds. r=froydnj
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Flags: needinfo?(continuation)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: