My biggest issue is that no matter what I do, Visual Studio says the lib 
files are corrupt.

On Sunday, 3 March 2019 18:36:48 UTC-5, James W wrote:
>
> I've spent a whole day on this now and I can't seem to get the .lib files 
> to build with VS 2017. I followed the V8 docs here:
>
> https://v8.dev/docs/build
>
> Following the instructions does work, but I end up with a V8 command line 
> program in the outdirectory and .lib that do NOT work with Visual Studio 
> 2017.
>
> fatal error LNK1107: invalid or corrupt file: cannot read at 0x1422A
>
> I executed this to try to get the build files for the libraries only:
>
> gn gen out/lib --args="v8_static_library=true v8_use_snapshot=true 
> v8_use_external_startup_data=false v8_monolithic=true icu_use_data_file=false 
> is_component_build=false is_debug=false"
>
> Then ran this: ninja -C out/lib
>
> And this was the final result:
>
> ninja: Entering directory `out/lib'
> [1632/1645] LINK cctest.exe cctest.exe.pdb
> FAILED: cctest.exe cctest.exe.pdb
> ninja -t msvc -e environment.x64 -- 
> ../../../../third_party/llvm-build/Release+Asserts/bin/lld-link.exe /nologo 
> /OUT:./cctest.exe /PDB:./cctest.exe.pdb @./cctest.exe.rsp
> lld-link: error: <root>: undefined symbol: mainCRTStartup
> [1634/1645] LINK generate-bytecode-expectations.exe 
> generate-bytecode-expectations.exe.pdb
> ninja: build stopped: subcommand failed.
>
> I think I'm missing something, but I have no idea at the moment.
>

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to