Unresolved Win32 entry points

瀏覽次數:56 次
跳到第一則未讀訊息

Bit Cortex

未讀,
2018年4月15日 下午3:54:192018/4/15
收件者:v8-users
Hello!

I'm trying to build the 6.6 branch tip for WIndows. After installing depot_tools, I run the following commands in a Visual Studio 2017 prompt:

set DEPOT_TOOLS_WIN_TOOLCHAIN=0
gclient sync -r 6.6.346.24
cd v8
gn gen out --args="is_debug=false v8_use_snapshot=true v8_use_external_startup_data=false v8_enable_i18n_support=false"
ninja -C out

Everything goes well until the final step, where the LINK tasks fail to resolve the Win32 entry points. Partial output:

>ninja -C out
ninja: Entering directory `out'
[639/1119] LINK mksnapshot.exe mksnapshot.exe.pdb
FAILED: mksnapshot.exe mksnapshot.exe.pdb
c:/Code/v8/depot_tools/win_tools-2_7_6_bin/python/bin/python.exe ../build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False link.exe /nologo /OUT:./mksnapshot.exe /PDB:./mksnapshot.exe.pdb @./mksnapshot.exe.rsp
sampler.obj : error LNK2019: unresolved external symbol __imp_GetCurrentThreadId referenced in function "public: __cdecl v8::sampler::Sampler::Sampler(class v8::Isolate *)" (??0Sampler@sampler@v8@@QEAA@PEAVIsolate@2@@Z)
v8_libbase.lib(platform-win32.obj) : error LNK2001: unresolved external symbol __imp_GetCurrentThreadId
libcmt.lib(gs_support.obj) : error LNK2001: unresolved external symbol __imp_GetCurrentThreadId
libucrt.lib(per_thread_data.obj) : error LNK2001: unresolved external symbol __imp_GetCurrentThreadId
sampler.obj : error LNK2019: unresolved external symbol __imp_OpenThread referenced in function "public: __cdecl v8::sampler::Sampler::Sampler(class v8::Isolate *)" (??0Sampler@sampler@v8@@QEAA@PEAVIsolate@2@@Z)
libucrt.lib(thread.obj) : error LNK2001: unresolved external symbol __imp_CloseHandle
libucrt.lib(close.obj) : error LNK2001: unresolved external symbol __imp_CloseHandle
libucrt.lib(open.obj) : error LNK2001: unresolved external symbol __imp_CloseHandle
libucrt.lib(initcon.obj) : error LNK2001: unresolved external symbol __imp_CloseHandle
[TRIMMED]

Does anyone know what I'm doing wrong?

Thanks in advance!

Bit Cortex

未讀,
2018年4月17日 上午10:17:512018/4/17
收件者:v8-users
Fixed. I was trying to build 64-bit V8 in a Visual Studio command prompt configured for 32-bit targets.
回覆所有人
回覆作者
轉寄
0 則新訊息