Issues with compilation on MVS2015 and Windows10.

74 views
Skip to first unread message

Илья Королевский

unread,
Aug 23, 2016, 11:54:09 PM8/23/16
to v8-users
Hello. I'm trying to build libraries for my c++ projects. What I've already did:
Downloaded latest depot_tools.
cd C:\depot_tools
fetch v8
cd v8
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_MSVS_VERSION=2013
set GYP_GENERATORS=msvs
gclient sync
python gypfiles\gyp_v8
It gives me ,SLN files in v8/gypfiles
When I try to compile it fails with much errors like cmd.exe exited with code 127; link error v8_base_0.lib etc
I tried to compile with ninja:
ninja -C out/Release
But no lib files ( such as v8.lib, v8_libplatform)

Илья Королевский

unread,
Aug 24, 2016, 12:07:25 AM8/24/16
to v8-users
set GYP_MSVS_VERSION=2015

Philippe Ferdinand

unread,
Aug 24, 2016, 12:19:12 AM8/24/16
to v8-users
I do have the exact same issue, it seems to be related to the visual studio sharing of the library to keep the lib files under 2GB (see this commit).
For reference here is my build script:

SET DEPOT_TOOLS_WIN_TOOLCHAIN=0
mkdir depot_tools
cd depot_tools
cmake -E tar xf "depot_tools.zip" --format=zip
SET PATH=%CD%;%CD%\python276_bin;%PATH%
cd ..
set GYP_MSVS_VERSION=2015
set GYP_GENERATORS=msvs
gclient sync
cd v8
python gypfiles\gyp_v8 -Dtarget_arch=x64 -Dcomponent=shared_library
devenv /build Release gypfiles\all.sln

I end up with this:

  30>LINK : fatal error LNK1181: cannot open input file 'Y:\Sources\git.corp.adobe.com\Horizon\build\win64\lib-v8\v8\build\Release\lib\v8_base_0.lib'
  41>------ Build started: Project: All, Configuration: Release x64 ------
  ========== Build: 21 succeeded, 20 failed, 0 up-to-date, 0 skipped ==========

I've tried to set "msvs_shard=0" in GYP_DEFINES without success (suggestion taken from this post).

Илья Королевский

unread,
Aug 24, 2016, 2:02:46 AM8/24/16
to v8-users
Can confirm this. I've tried to build in msvs2013 on virtual machine - same results with error linking v8_base_0.lib

среда, 24 августа 2016 г., 7:19:12 UTC+3 пользователь Philippe Ferdinand написал:
Reply all
Reply to author
Forward
0 new messages