iOS ARM64 only: undefined symbol: v8_Default_embedded_blob_code_

64 views
Skip to first unread message

Benoit Blanchon

unread,
Dec 4, 2022, 8:35:22 AM12/4/22
to pdfium
Hi,

I successfully build PDFium with V8 on most platforms, but I'm having the following linker errors when target_os=ios and target_cpu=arm64:

ld64.lld: error: undefined symbol: v8_Default_embedded_blob_code_
>>> referenced by isolate.cc:0 (../v8/src/execution/isolate.cc:0)
>>>               obj/v8/v8_base_without_compiler/isolate.o:(symbol v8::internal::Isolate::InitializeDefaultEmbeddedBlob()+0x104)
>>> referenced by isolate.cc:0 (../v8/src/execution/isolate.cc:0)
>>>               obj/v8/v8_base_without_compiler/isolate.o:(symbol v8::internal::Isolate::InitializeDefaultEmbeddedBlob()+0x100)
>>> referenced by deoptimizer-cfi-builtins.cc:52 (../v8/src/deoptimizer/deoptimizer-cfi-builtins.cc:52)
>>>               obj/v8/v8_snapshot/deoptimizer-cfi-builtins.o:(symbol v8::internal::Deoptimizer::IsValidReturnAddress(unsigned long, v8::internal::Isolate*)+0x44)
>>> referenced 1 more times

ld64.lld: error: undefined symbol: v8_Default_embedded_blob_data_
...
ld64.lld: error: undefined symbol: v8_Default_embedded_blob_data_size_
...
ld64.lld: error: undefined symbol: v8_Default_embedded_blob_code_size_
...
ld64.lld: error: undefined symbol: Builtins_RestartFrameTrampoline
...
ld64.lld: error: undefined symbol: Builtins_BaselineOrInterpreterEnterAtNextBytecode
...
ld64.lld: error: undefined symbol: Builtins_BaselineOrInterpreterEnterAtBytecode
...
ld64.lld: error: undefined symbol: construct_stub_invoke_deopt_addr
...
ld64.lld: error: undefined symbol: construct_stub_create_deopt_addr
...
ld64.lld: error: undefined symbol: Builtins_ContinueToJavaScriptBuiltin
...
ld64.lld: error: undefined symbol: Builtins_ContinueToJavaScriptBuiltinWithResult
...
ld64.lld: error: undefined symbol: Builtins_ContinueToCodeStubBuiltin
...
ld64.lld: error: undefined symbol: Builtins_ContinueToCodeStubBuiltinWithResult
...
ld64.lld: error: undefined symbol: Builtins_InterpreterEnterAtNextBytecode
...
ld64.lld: error: undefined symbol: Builtins_InterpreterEnterAtBytecode

As far as I can tell, v8_Default_embedded_blob_data_ is defined in v8/src/builtins/arm64/builtins-arm64.cc, which seems to build fine (see log).

Any idea how I could fix this?

Best regards,
Benoit

Lei Zhang

unread,
Dec 6, 2022, 3:26:39 PM12/6/22
to Benoit Blanchon, pdfium
Since your question is about building V8 on iOS, it will be best to
ask on a V8 mailing list.
> --
> You received this message because you are subscribed to the Google Groups "pdfium" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/0be2bf82-ca4c-42d6-add6-5bcff7178214n%40googlegroups.com.

Benoit Blanchon

unread,
Dec 7, 2022, 4:11:08 AM12/7/22
to pdfium
Thank you for your quick answer, Lei.
I created this new conversation: https://groups.google.com/g/v8-users/c/rykJ2F9RIcc

Reply all
Reply to author
Forward
0 new messages