Build failed (warning D9002, warning C4996, error C2220) on 39.0.2171.71

503 views
Skip to first unread message

Hubert

unread,
Dec 5, 2014, 2:31:14 AM12/5/14
to chromi...@chromium.org
Hi,

Following error (warning) is recevied when building 39.0.2171.71(64 bit) on Windows 7 + VS2013 Ultimate. Would you give some help, thanks a lot in advance!


[380/17157] CXX obj\build\chrome_elf_common.precompile.obj
cl : Command line warning D9002 : ignoring unknown option '/Zc:inline'
[381/17157] CXX obj\chrome_elf\chrome_elf_common.thunk_getter.obj
FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\chrome_elf\chrome_elf_common.thunk_getter.obj.rsp /c    ..\..\chrome_elf\thunk_getter.cc /Foobj\chrome_elf\chrome_elf_common.thunk_getter.obj /Fdobj\chrome_elf\chrome_elf_common.cc.pdb
cl : Command line warning D9002 : ignoring unknown option '/Zc:inline'
c:\chromium\trunk\src\chrome_elf\thunk_getter.cc(60) : error C2220: warning treated as error - no 'object' file generated
c:\chromium\trunk\src\chrome_elf\thunk_getter.cc(60) : warning C4996: 'GetVersionExW': was declared deprecated
        c:\program files (x86)\windows kits\8.1\include\um\sysinfoapi.h(442) : see declaration of 'GetVersionExW'




bat used to build:

1. Set proxy
netsh winhttp set proxy  url:port  //set proxy for whole system
git config --global http.proxy url:port 
git config --global https.proxy url:port 
setx GYP_MSVS_VERSION 2013 /M
setx GYP_GENERATORS msvs-ninja,ninja /M  rem http://blog.csdn.net/Kuerjinjin/article/details/23563059

2. loading releae
gclient sync --force // following files are excluded:

"custom_deps":{
      "src/webkit/data/layout_tests/LayoutTests":None,
      "src/third_party/WebKit/LayoutTests": None,
      "src/chrome_frame/tools/test/reference_build/chrome_win": None,
      "src/chrome/test/data/perf/canvas_bench": None,
      "src/chrome/test/data/perf/frame_rate/content": None,
      "src/chrome/tools/test/reference_build/chrome_mac": None,
      "src/chrome/tools/test/reference_build/chrome_win": None,
      "src/chrome/tools/test/reference_build/chrome_linux": None,
      'src/chrome/test/data/layout_tests/LayoutTests/fast/workers': None,
      'src/chrome/test/data/layout_tests/LayoutTests/platform/chromium/fast/workers': None,
      'src/chrome/test/data/layout_tests/LayoutTests/fast/js/resources': None,
      'src/chrome/test/data/layout_tests/LayoutTests/platform/chromium-mac/http/tests/workers': None,
      'src/chrome/test/data/layout_tests/LayoutTests/http/tests/resources': None,
      'src/chrome/test/data/layout_tests/LayoutTests/storage/domstorage': None,
      'src/chrome/test/data/layout_tests/LayoutTests/fast/events': None,
      'src/chrome/test/data/layout_tests/LayoutTests/http/tests/workers': None,
      'src/chrome/test/data/layout_tests/LayoutTests/http/tests/xmlhttprequest': None,
      'src/chrome/test/data/layout_tests/LayoutTests/platform/chromium-win/storage/domstorage': None,
      'src/chrome/test/data/layout_tests/LayoutTests/http/tests/appcache': None,
      'src/chrome/test/data/layout_tests/LayoutTests/platform/chromium-win/fast/events': None,
      'src/chrome/test/data/layout_tests/LayoutTests/platform/chromium-mac/fast/events': None,
      'src/chrome/test/data/layout_tests/LayoutTests/platform/chromium-mac/storage/domstorage': None,
      'src/chrome/test/data/layout_tests/LayoutTests/websocket/tests/workers': None,
      'src/chrome/test/data/layout_tests/LayoutTests/platform/chromium-win/fast/workers': None,
      'src/chrome/test/data/layout_tests/LayoutTests/platform/chromium-win/http/tests/workers': None,
      'o3d/samples': None,
 }
3. switch branch
git checkout -b 39.0.2171.71 39.0.2171.71 
gclient sync --with_branch_heads --jobs 16
cd src
git fetch
cd ..\
gclient runhooks --force rem to generate chrome.sln
4. build 

python src\build\gyp_chromium -Dcomponent=shared_library -Goutput_dir=out -Dtarget_arch=x64
ninja -C src/out/Release_x64 chrome






Hubert

unread,
Dec 5, 2014, 3:08:58 AM12/5/14
to chromi...@chromium.org
Update the title

Scott Graham

unread,
Dec 5, 2014, 8:20:26 PM12/5/14
to tcchromiu...@gmail.com, chromium-dev
/Zc:inline is because your toolchain is not updated. C4996 is disabled at head, you'll have to do that locally as we didn't build 39 against 8.1 SDK (which is when those functions were deprecated), or alternatively build against 8.0.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Nico Weber

unread,
Dec 6, 2014, 4:50:31 PM12/6/14
to tcchromiu...@gmail.com, Chromium-dev
Hi,

in general you're going to have a much easier time if you try to build trunk instead of a pinned version. I'd recommend getting that working first, and then you can try with a pinned version after that.

The easiest way for pinned builds is probably to disable warnings as errors.

Nico

Reply all
Reply to author
Forward
0 new messages