Unresolved Win32 entry points

Visto 56 veces
Saltar al primer mensaje no leído

Bit Cortex

no leída,
15 abr 2018, 15:54:1915/4/18
a 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

no leída,
17 abr 2018, 10:17:5117/4/18
a v8-users
Fixed. I was trying to build 64-bit V8 in a Visual Studio command prompt configured for 32-bit targets.
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos