I had this same issue.
This user had the same problem:
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