Windows VS2015 64-bit build of mozilla-central fails with error 'wwc': ambiguous call to overloaded function.

RESOLVED FIXED

Status

()

--
blocker
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: jujjyl, Unassigned)

Tracking

Trunk
x86_64
Windows 10
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
STR:

Building https://github.com/mozilla/gecko-dev.git on

commit 8427ea03544c3cd10050b7a087d7e55480191a1a
Merge: a9bf9d6 4029855
Author: Carsten "Tomcat" Book <cbook@mozilla.com>
Date:   Thu Mar 24 16:15:30 2016 +0100

    merge mozilla-inbound to mozilla-central a=merge

I am getting the following:

1. mozconfig has

ac_add_options --target=x86_64-pc-mingw32
ac_add_options --host=x86_64-pc-mingw32
ac_add_options --enable-profiling
ac_add_options --enable-debug-symbols
ac_add_options --enable-debug

2. Run start-shell-msvc2015-x64.bat on mozilla-build
3. With "./mach clobber" after update and "./mach build"

Observed output:

 0:30.40 nsCategoryManager.cpp
 0:30.43 FileDescriptorSetChild.obj
 0:30.51 nsJSInspector.cpp
 0:30.53 devtools_server.lib.desc
 0:30.65 sctp_crc32.obj
 0:30.71 sctp_callout.c
 0:30.74 nsJARFactory.obj
 0:31.31 Unified_cpp_toolkit_profile0.cpp
 0:31.33 toolkit_profile.lib.desc
 0:31.37 sctp_cc_functions.c
 0:31.39 sctp_indata.obj
 0:31.94 nsJAR.cpp
 0:31.97 FileDescriptorSetParent.obj
 0:32.07 sctp_crc32.c
 0:32.09 sctp_input.obj
 0:32.67 nsComponentManager.cpp
 0:32.88 Unified_cpp_dom_power0.obj
 0:33.06 sctp_indata.c
 0:33.09 sctp_output.obj
 0:33.22 Unified_cpp_toolkit_xre0.cpp
 0:33.22 d:/gecko-dev/toolkit/xre/nsNativeAppSupportWin.cpp(509): error C2668: 'wwc': ambiguous call to overloaded function
 0:33.22 d:\gecko-dev\obj-x86_64-pc-mingw32\dist\include\nsString.h(175): note: could be 'const wchar_t *wwc(const char16_t *)'
 0:33.22 d:\gecko-dev\obj-x86_64-pc-mingw32\dist\include\nsString.h(169): note: or       'const char16_t *wwc(const wchar_t *)'
 0:33.22 d:\gecko-dev\obj-x86_64-pc-mingw32\dist\include\nsString.h(163): note: or       'wchar_t *wwc(char16_t *)'
 0:33.22 d:\gecko-dev\obj-x86_64-pc-mingw32\dist\include\nsString.h(157): note: or       'char16_t *wwc(wchar_t *)'
 0:33.22 d:/gecko-dev/toolkit/xre/nsNativeAppSupportWin.cpp(509): note: while trying to match the argument list '(char16ptr_t)'
 0:33.22 Warning: C4473 in d:\gecko-dev\toolkit\xre\nsNativeAppSupportWin.cpp: '_snwprintf' : not enough arguments passed for format string
 0:33.22 d:/gecko-dev/toolkit/xre/nsNativeAppSupportWin.cpp(508): warning C4473: '_snwprintf' : not enough arguments passed for format string
 0:33.22 d:/gecko-dev/toolkit/xre/nsNativeAppSupportWin.cpp(508): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided
 0:33.22 d:/gecko-dev/toolkit/xre/nsNativeAppSupportWin.cpp(508): note: the missing variadic argument 2 is required by format string '%s'
 0:33.22 d:/gecko-dev/toolkit/xre/nsNativeAppSupportWin.cpp(672): error C2668: 'wwc': ambiguous call to overloaded function
 0:33.22 d:\gecko-dev\obj-x86_64-pc-mingw32\dist\include\nsString.h(175): note: could be 'const wchar_t *wwc(const char16_t *)'
 0:33.22 d:\gecko-dev\obj-x86_64-pc-mingw32\dist\include\nsString.h(169): note: or       'const char16_t *wwc(const wchar_t *)'
 0:33.23 d:\gecko-dev\obj-x86_64-pc-mingw32\dist\include\nsString.h(163): note: or       'wchar_t *wwc(char16_t *)'
 0:33.23 d:\gecko-dev\obj-x86_64-pc-mingw32\dist\include\nsString.h(157): note: or       'char16_t *wwc(wchar_t *)'
 0:33.23 d:/gecko-dev/toolkit/xre/nsNativeAppSupportWin.cpp(672): note: while trying to match the argument list '(char16ptr_t)'
 0:33.23 Warning: C4473 in d:\gecko-dev\toolkit\xre\nsNativeAppSupportWin.cpp: '_snwprintf' : not enough arguments passed for format string
 0:33.23 d:/gecko-dev/toolkit/xre/nsNativeAppSupportWin.cpp(670): warning C4473: '_snwprintf' : not enough arguments passed for format string
 0:33.23 d:/gecko-dev/toolkit/xre/nsNativeAppSupportWin.cpp(670): note: placeholders and their parameters expect 3 variadic arguments, but 2 were provided
 0:33.23 d:/gecko-dev/toolkit/xre/nsNativeAppSupportWin.cpp(670): note: the missing variadic argument 3 is required by format string '%s'
 0:33.23
 0:33.23 In the directory  /d/gecko-dev/obj-x86_64-pc-mingw32/toolkit/xre
 0:33.23 The following command failed to execute properly:
 0:33.23 d:/gecko-dev/obj-x86_64-pc-mingw32/_virtualenv/Scripts/python.exe -m mozbuild.action.cl cl -FoUnified_cpp_toolkit_xre0.obj -c -Id:/gecko-dev/obj-x86_64-pc-mingw32/dist/stl_wrappers -DDEBUG=1 -DTRACING=1 -DWIN32_LEAN_AND_MEAN -D_WIN32 -DWIN32 -D_CRT_RAND_S -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DOS_WIN=1 -D_UNICODE -DCHROMIUM_BUILD -DU_STATIC_IMPLEMENTATION -DUNICODE -D_WINDOWS -D_SECURE_ATL -DCOMPILER_MSVC -DMOZ_APP_NAME="firefox" -DMOZ_APP_BASENAME="Firefox" -DMOZ_APP_VERSION="48.0a1" -DOS_TARGET="WINNT" -DMOZ_WIDGET_TOOLKIT="windows" -DMOZ_UPDATER -DTARGET_OS_ABI="WINNT_x86_64-msvc" -DGRE_MILESTONE=48.0a1 -DAPP_VERSION=48.0a1 -DAPP_ID={ec8030f7-c20a-464f-9b0e-13a3a9e97384} -DMOZ_BUILD_APP_IS_BROWSER -DTOPOBJDIR=d:/gecko-dev/obj-x86_64-pc-mingw32 -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -Id:/gecko-dev/toolkit/xre -Id:/gecko-dev/obj-x86_64-pc-mingw32/toolkit/xre -Id:/gecko-dev/obj-x86_64-pc-mingw32/ipc/ipdl/_ipdlheaders -Id:/gecko-dev/ipc/chromium/src -Id:/gecko-dev/ipc/glue -Id:/gecko-dev/toolkit/profile -Id:/gecko-dev/config -Id:/gecko-dev/dom/base -Id:/gecko-dev/dom/ipc -Id:/gecko-dev/testing/gtest/mozilla -Id:/gecko-dev/toolkit/crashreporter -Id:/gecko-dev/xpcom/build -Id:/gecko-dev/obj-x86_64-pc-mingw32/dist/include -Id:/gecko-dev/obj-x86_64-pc-mingw32/dist/include/nspr -Id:/gecko-dev/obj-x86_64-pc-mingw32/dist/include/nss -MD -FI d:/gecko-dev/obj-x86_64-pc-mingw32/mozilla-config.h -DMOZILLA_CLIENT -TP -nologo -wd5026 -wd5027 -Zc:sizedDealloc- -Zc:threadSafeInit- -wd4091 -D_HAS_EXCEPTIONS=0 -W3 -Gy -FS -wd4251 -wd4244 -wd4267 -wd4345 -wd4351 -wd4800 -wd4819 -we4553 -GR- -Zi -O1 -Oi -Oy- -Fdgenerated.pdb d:/gecko-dev/obj-x86_64-pc-mingw32/toolkit/xre/Unified_cpp_toolkit_xre0.cpp
 0:33.25 d:/gecko-dev/config/rules.mk:918: recipe for target 'Unified_cpp_toolkit_xre0.obj' failed
 0:33.25 mozmake.EXE[5]: *** [Unified_cpp_toolkit_xre0.obj] Error 1
 0:33.25 d:/gecko-dev/config/recurse.mk:71: recipe for target 'toolkit/xre/target' failed
 0:33.25 mozmake.EXE[4]: *** [toolkit/xre/target] Error 2
 0:33.25 mozmake.EXE[4]: *** Waiting for unfinished jobs....
 0:33.26 nsJARInputStream.obj
 0:33.48 CrossProcessMutex_windows.cpp
 0:33.51 sctp_pcb.obj
 0:33.63 Unified_cpp_xpcom_components0.cpp
 0:33.65 xpcom_components.lib.desc
 0:33.85 nsZipArchive.obj
 0:34.35 sctp_input.c
 0:34.40 GeckoChildProcessHost.obj
 0:34.60 nsFormFillController.cpp
 0:34.62 toolkit_components_satchel.lib.desc
 0:34.66 nsJARFactory.cpp
 0:34.68 sctp_peeloff.obj
 0:34.73 SharedMemory_windows.obj
 0:34.88 sctp_output.c
 0:34.91 Unified_cpp_modules_libjar0.obj
 0:35.12 FileDescriptorSetChild.cpp
 0:35.15 sctp_sha1.obj
 0:35.51 nsJARInputStream.cpp
 0:35.53 Transport_win.obj
 0:35.93 Unified_cpp_media_imagecapture0.cpp
 0:35.97 dom_media_imagecapture.lib.desc
 0:36.09 sctp_ss_functions.obj
 0:36.12 Unified_cpp_dom_media_raw0.cpp
 0:36.14 dom_media_raw.lib.desc
 0:36.15 sctp_pcb.c
 0:36.22 sctp_peeloff.c
 0:36.24 URIUtils.obj
 0:36.28 sctp_sysctl.obj
 0:36.46 nsZipArchive.cpp
 0:36.48 WindowsMessageLoop.obj
 0:36.60 sctp_sha1.c
 0:36.63 Unified_cpp_ipc_glue0.obj
 0:36.83 BackgroundChildImpl.cpp
 0:36.85 sctp_ss_functions.c
 0:36.85 sctp_timer.obj
 0:37.32 SharedMemory_windows.cpp
 0:37.35 sctp_userspace.obj
 0:37.54 Unified_cpp_accessible_xpcom0.cpp
 0:37.57 accessible_xpcom.lib.desc
 0:37.58 sctp_sysctl.c
 0:37.61 sctp_usrreq.obj
 0:37.66 FileDescriptorSetParent.cpp
 0:37.68 sctputil.obj
 0:37.68 Unified_cpp_dom_audiochannel0.cpp
 0:37.68 sctp6_usrreq.obj
 0:37.70 dom_audiochannel.lib.desc
 0:37.81 user_environment.obj
 0:38.03 sctp_timer.c
 0:38.09 user_mbuf.obj
 0:38.24 BackgroundParentImpl.cpp
 0:44.46 user_recv_thread.obj
 0:44.47 sctp_userspace.c
 0:44.47 user_socket.obj
 0:44.47 GeckoChildProcessHost.cpp
 0:44.47 sctputil.c
 0:44.47 sctp6_usrreq.c
 0:44.47 nsJARChannel.cpp
 0:44.47 user_environment.c
 0:44.47 user_mbuf.c
 0:44.47 user_recv_thread.c
 0:44.47 user_socket.c
 0:44.48 Transport_win.cpp
 0:44.48 sctp_usrreq.c
 0:44.48 nksctp_s.lib.desc
 0:44.48 Unified_cpp_dom_power0.cpp
 0:44.48 URIUtils.cpp
 0:44.48 Unified_cpp_modules_libjar0.cpp
 0:44.48 dom_power.lib.desc
 0:44.48 modules_libjar.lib.desc
 0:44.48 WindowsMessageLoop.cpp
 0:44.48 Unified_cpp_docshell_base0.cpp
 0:44.48 docshell_base.lib.desc
 0:44.48 Unified_cpp_accessible_generic0.cpp
 0:44.48 accessible_generic.lib.desc
 0:44.48 Unified_cpp_ipc_glue0.cpp
 0:44.48 ipc_glue.lib.desc
 0:44.48 d:/gecko-dev/config/recurse.mk:32: recipe for target 'compile' failed
 0:44.48 mozmake.EXE[3]: *** [compile] Error 2
 0:44.48 d:/gecko-dev/config/rules.mk:531: recipe for target 'default' failed
 0:44.48 mozmake.EXE[2]: *** [default] Error 2
 0:44.48 d:/gecko-dev/client.mk:419: recipe for target 'realbuild' failed
 0:44.48 mozmake.EXE[1]: *** [realbuild] Error 2
 0:44.48 client.mk:181: recipe for target 'build' failed
 0:44.48 mozmake.EXE: *** [build] Error 2
 0:44.52 109 compiler warnings present.
2
(Reporter)

Updated

2 years ago
Version: unspecified → Trunk
(Reporter)

Comment 1

2 years ago
Oh, git pulled again up to just now authored commit

commit ba049d34060b825827355e389478d36e0866317a
Author: Gregory Szorc <gps@mozilla.com>
Date:   Thu Mar 24 09:12:19 2016 -0700

    Bug 1186060 - Build with Visual Studio 2015 Update 1; r=ted, ehsan a=merge

fixes the issue.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.