Per crbug.com/v8/9665, which sounds vaguely related, try linking against
libcompiler_rt, or provide your own implementation (similar to comment #14
on that bug, just for a different function).

Android/x86 is not a combination we're regularly testing, so it's not
surprising that there may be issues.

Also, as I'm sure you're aware, V8 6.3 is very old (5 years), totally
unsupported, and 6.3.1 in particular is not a great version to pick
<https://v8.dev/docs/version-numbers#which-v8-version-should-i-use%3F>. But
that's likely unrelated to the problem you're trying to solve.


On Tue, Oct 4, 2022 at 2:47 PM Vlad Petreaca <vlad.petre...@gmail.com>
wrote:

> Hello,
>
>
> I compile v8(6.3.1) as shared library for cocos2dx which is been used in
> android. The projects has 4 ABIs: x86. x86_64, armeabi-v7a and arm64-v8a.
> It's work fine for x86_64, armeabi and arm64 but the problem is on x86
> architecture.
>
> *After I compile v8 for x86 and add it in the prebuild section, I run the
> project and get this error*:
>
> java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol
> "__moddi3"
>
> I analyzed the library with readelf and I see that is undefined:
>
> $ readelf -Ws libv8.so | grep "__moddi3"
>   6666: 00000000     0 FUNC    GLOBAL DEFAULT  UND __moddi3
>
>
> For the rest of architectures, the library doesn't contain this symbol
> neither defined or undefined and the app works well.
>
> The NDK that I used for compile it's the default from this version of v8,
> ndk12
>
> I compile the v8 library using next steps on Ubuntu 16.04(64-bit), Ubuntu
> 18.04(64-bit) :
>
>    -  git clone
>    https://chromium.googlesource.com/chromium/tools/depot_tools.git
>    - sudo apt-get install -y gcc-multilib
>    - export PATH=`pwd`/depot_tools:"$PATH"
>    -  fetch v8
>    - cd v8
>    - git checkout  8cd4009c5b7072ad224f19a9e668ec0ed7430599 - for
>    V8(6.3.1) version
>    - echo "target_os = ['android']" >> ../.gclient && gclient sync
>    - ./tools/dev/v8gen.py ia32.release
>    - add the following arguments on args file:
>
>
>    1. v8_use_external_startup_data = false
>    2. is_official_build = true
>    3. is_debug = false
>    4. symbol_level = 1
>    5. target_cpu = "x86"
>    6. v8_target_cpu = "x86"
>    7. v8_enable_i18n_support = false
>    8. target_os = "android"
>    9. v8_android_log_stdout = true
>    10. is_component_build = true
>
>
>    - ninja -C out.gn/ia32.release
>
>
> Can someone help me? Thanks!
>
> --
> --
> 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/8d605e6e-74dd-4013-9df9-e40cbc3e44b1n%40googlegroups.com
> <https://groups.google.com/d/msgid/v8-users/8d605e6e-74dd-4013-9df9-e40cbc3e44b1n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
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/CAKSzg3SkvZVLX4A_Ga5-wguXP0VnkzPeVgiQYc7_FKbNwPLkfg%40mail.gmail.com.

Reply via email to