Hi, I'm trying to embed v8, currently via prebuilding v8 shared libraries 
and linking with them. Currently on Linux. 

Unfortunately, when use_custom_libcxx=true (seems to be the gm.py 
default?), I'm getting undefined symbols. stderr: ld.lld: error: undefined 
symbol: v8::platform::NewDefaultPlatform(int, 
v8::platform::IdleTaskSupport, v8::platform::InProcessStackDumping, 
std::unique_ptr<v8::TracingController, 
std::default_delete<v8::TracingController> >) 

nm -gAC libv8_libplatform.so | grep "v8::platform::NewDefaultPlatform" 
shows: 

libv8_libplatform.so:0000000000013240 T 
v8::platform::NewDefaultPlatform(int, v8::platform::IdleTaskSupport, 
v8::platform::InProcessStackDumping, 
std::__Cr::unique_ptr<v8::TracingController, 
std::__Cr::default_delete<v8::TracingController> >) 

So my build system is expecting std::unique_ptr for NewDefaultPlatform(), 
and the shared lib uses std::__Cr. 


My current solution is to try to avoid using the custom toolchain 
via use_custom_libcxx=false

gn args:
        is_component_build=true
        use_custom_libcxx=false
        is_debug = false
        v8_use_external_startup_data = false
        v8_enable_backtrace = true
        v8_enable_disassembler = true
        v8_enable_object_print = true
        v8_enable_verify_heap = true
        dcheck_always_on = false
However, I'm seeing this error from the system toolchain: version 
`GLIBCXX_3.4.26' not found (required by ./torque) I'd like to pass a path 
to the same toolchain that my build system is using. So I imagine I need a 
way to pass a specific path into gm/gn. Is there any way to do this? 

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/b9c5a315-9a1c-44ea-9d50-edd8c053cfaen%40googlegroups.com.

Reply via email to