lld-link: error: could not open 'obj/v8/v8_heap_base_headers.lib': no such file or directory

117 views
Skip to first unread message

Basant Kumar Meena

unread,
Apr 14, 2022, 6:52:05 AM4/14/22
to v8-dev
Hello,

I'm not able to build chromium for windows 11 OS.

Flags used:
is_official_build=true
use_custom_libcxx=true
t5_support_partition_alloc=false
t5_single_threaded=false
t5_enable_freetype=false
v8_enable_i18n_support=false
v8_static_library=true
v8_use_external_startup_data=false


FAILED: mksnapshot.exe mksnapshot.exe.pdb
..\..\..\..\..\..\..\chromium\src\third_party\llvm-build\Release+Asserts\bin\lld-link.exe /OUT:./mksnapshot.exe /nologo -libpath:..\..\..\..\..\..\..\chromium\src\third_party\llvm-build\Release+Asserts\lib\clang\15.0.0\lib\windows "-libpath:../../../../../../../../../../../../../Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/ATLMFC/lib/x64" "-libpath:../../../../../../../../../../../../../Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/lib/x64" "-libpath:../../../../../../../../../../../../../Program Files (x86)/Windows Kits/NETFXSDK/4.8/lib/um/x64" "-libpath:../../../../../../../../../../../../../Program Files (x86)/Windows Kits/10/lib/10.0.22000.0/ucrt/x64" "-libpath:../../../../../../../../../../../../../Program Files (x86)/Windows Kits/10/lib/10.0.20348.0/um/x64" /MACHINE:X64  /PDB:./mksnapshot.exe.pdb @./mksnapshot.exe.rsp
lld-link: error: could not open 'obj/v8/v8_heap_base_headers.lib': no such file or directory

Same code works fine and build is successful in mac OS.

Any help in what i might be doing wrong or have to do extra in windows OS?

Paul Harris

unread,
Jul 19, 2022, 9:56:39 PM7/19/22
to v8-dev
I had this same issue.
I notice that v8_heap_base_headers is a header-only target in BUILD.gn,
but it is defined as "v8_source_set()" which ends up as a lib.

If you change the line in BUILD.gn:
v8_source_set("v8_heap_base_headers") {
to
v8_header_set("v8_heap_base_headers") {

It is around the line 5544 or 5653 depending on which version you are looking at.

It changes to a virtual target, doesn't build a lib, and works!

Note that "gn" source_set() normally builds virtual targets, but the v8_source_set() seems to behave differently.


DEVS can you please patch the BUILD.gn file if you agree?
I'm not in a position to make a PR/MR/contribution right now.

Thanks!
Paul

Jakob Kummerow

unread,
Jul 20, 2022, 4:32:55 AM7/20/22
to v8-dev
--
--
v8-dev mailing list
v8-...@googlegroups.com
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 v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/eccf4d53-5e4c-4d73-b5ce-ab451144aa1an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages