I'm trying to build PDFium from Canary (chromium/2939 tag) using the latest Visual Studio 2015 on Windows 10, and I keep running into an error while building ICU. Here's what I'm doing:
[469/1444] CXX obj/third_party/icu/icui18n/calendar.obj
FAILED: obj/third_party/icu/icui18n/calendar.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/third_party/icu/icui18n/calendar.obj.rsp /c ../../third_party/icu/source/i18n/calendar.cpp /Foobj/third_party/icu/icui18n/calendar.obj /Fd"obj/third_party/icu/icui18n_cc.pdb"
z:\development\pdfium\win\2939\pdfium\third_party\icu\source\common\unicode\utypes.h(415): error C2220: warning treated as error - no 'object' file generated
z:\development\pdfium\win\2939\pdfium\third_party\icu\source\common\unicode\utypes.h(415): warning C4595: 'operator new': non-member operator new or delete functions may not be declared inline
z:\development\pdfium\win\2939\pdfium\third_party\icu\source\common\unicode\utypes.h(415): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
z:\development\pdfium\win\2939\pdfium\third_party\icu\source\common\unicode\utypes.h(431): warning C4595: 'operator new[]': non-member operator new or delete functions may not be declared inline
z:\development\pdfium\win\2939\pdfium\third_party\icu\source\common\unicode\utypes.h(431): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
z:\development\pdfium\win\2939\pdfium\third_party\icu\source\common\unicode\utypes.h(443): warning C4595: 'operator delete': non-member operator new or delete functions may not be declared inline
z:\development\pdfium\win\2939\pdfium\third_party\icu\source\common\unicode\utypes.h(443): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
z:\development\pdfium\win\2939\pdfium\third_party\icu\source\common\unicode\utypes.h(454): warning C4595: 'operator delete[]': non-member operator new or delete functions may not be declared inline
z:\development\pdfium\win\2939\pdfium\third_party\icu\source\common\unicode\utypes.h(454): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
c:\program files (x86)\microsoft visual studio 14.0\vc\include\vcruntime_new.h(34): warning C4595: 'operator new': non-member operator new or delete functions may not be declared inline
c:\program files (x86)\microsoft visual studio 14.0\vc\include\vcruntime_new.h(34): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
c:\program files (x86)\microsoft visual studio 14.0\vc\include\vcruntime_new.h(45): warning C4595: 'operator new[]': non-member operator new or delete functions may not be declared inline
c:\program files (x86)\microsoft visual studio 14.0\vc\include\vcruntime_new.h(45): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
c:\program files (x86)\microsoft visual studio 14.0\vc\include\vcruntime_new.h(55): warning C4595: 'operator delete': non-member operator new or delete functions may not be declared inline
c:\program files (x86)\microsoft visual studio 14.0\vc\include\vcruntime_new.h(55): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
c:\program files (x86)\microsoft visual studio 14.0\vc\include\vcruntime_new.h(64): warning C4595: 'operator delete[]': non-member operator new or delete functions may not be declared inline
c:\program files (x86)\microsoft visual studio 14.0\vc\include\vcruntime_new.h(64): note: to simplify migration, consider the temporary use of /Wv:18 flag with the version of the compiler with which you used to build without warnings
ninja: build stopped: subcommand failed.
Any idea what's wrong? Would it help to roll ICU to a newer revision in DEPS?
Ralf