************************************************* gn args as following: *************************************************
enable_ios_bitcode = true ios_deployment_target = 10 is_component_build = false is_debug = false is_official_build = true symbol_level = 1 target_cpu = "arm64" target_os = "ios" treat_warnings_as_errors = false use_custom_libcxx = false # Use Xcode's libcxx. use_xcode_clang = true v8_target_cpu = "arm64" v8_enable_debugging_features = false v8_enable_i18n_support = false # Produces a smaller binary. v8_enable_pointer_compression = false v8_enable_v8_checks = false v8_monolithic = true # Enable the v8_monolith target. v8_use_external_startup_data = false # The snaphot is included in the binary. On Sunday, August 8, 2021 at 12:47:31 PM UTC+8 chao...@gmail.com wrote: > Thanks for your quick response! > > Compiled successfully when I switched to tag 9.4.116 and added an #include > <utility> in include/cppgc/allocation.h. > > But it shows error during the link stage: > > Undefined symbols for architecture arm64: > > > "v8::internal::trap_handler::RegisterDefaultTrapHandler()", referenced from: > > v8::internal::trap_handler::EnableTrapHandler(bool) > in libv8_monolith.a(handler-outside.o) > > "v8::internal::trap_handler::TryHandleSignal(int, > __siginfo*, void*)", referenced from: > > v8::TryHandleWebAssemblyTrapPosix(int, __siginfo*, > void*) in libv8_monolith.a(api.o) > > v8::V8::TryHandleSignal(int, void*, void*) in > libv8_monolith.a(api.o) > > ld: symbol(s) not found for architecture arm64 > > clang: error: linker command failed with exit code 1 (use > -v to see invocation) > > > On Saturday, August 7, 2021 at 2:33:27 AM UTC+8 Clemens Backes wrote: > >> Thanks for letting us know, we indeed did not differentiate between MacOS >> and iOS. I just landed a fix for this: https://crrev.com/c/3077154 >> >> The error about std::forward should be fixable by adding an >> #include <utility> in include/cppgc/allocation.h. Can you try that? >> >> On Fri, Aug 6, 2021 at 3:50 AM chao...@gmail.com <chao...@gmail.com> >> wrote: >> >>> My OS version is macOS Big Sur 11.5. >>> On Friday, August 6, 2021 at 8:06:29 AM UTC+8 chao...@gmail.com wrote: >>> >>>> >>>> Oh, I forgot to mention the version. I am trying to compile V8 v9.4.113. >>>> On Thursday, August 5, 2021 at 11:10:14 PM UTC+8 chao...@gmail.com >>>> wrote: >>>> >>>>> 1. >>>>> ************************************************* >>>>> gn args as following: >>>>> ************************************************* >>>>> >>>>> enable_ios_bitcode = true >>>>> >>>>> ios_deployment_target = 10 >>>>> >>>>> is_component_build = false >>>>> is_debug = false >>>>> is_official_build = true >>>>> >>>>> symbol_level = 0 >>>>> >>>>> target_cpu = "arm64" # "x64" for a simulator build. >>>>> target_os = "ios" >>>>> >>>>> treat_warnings_as_errors = false >>>>> >>>>> use_custom_libcxx = true # Use Xcode's libcxx. >>>>> use_xcode_clang = false >>>>> >>>>> v8_target_cpu = "arm64" >>>>> v8_enable_debugging_features = false >>>>> v8_enable_i18n_support = false # Produces a smaller binary. >>>>> v8_enable_pointer_compression = false >>>>> v8_enable_v8_checks = false >>>>> v8_monolithic = true # Enable the v8_monolith target. >>>>> v8_use_external_startup_data = false # The snaphot is included in the >>>>> binary. >>>>> >>>>> >>>>> 2. >>>>> ************************************************* >>>>> error msg as following: >>>>> ************************************************* >>>>> >>>>> ../../src/wasm/code-space-access.cc:40:3: error: >>>>> 'pthread_jit_write_protect_np' is unavailable: not available on iOS >>>>> pthread_jit_write_protect_np(0); >>>>> ^ >>>>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/usr/include/pthread.h:561:6: >>>>> >>>>> note: 'pthread_jit_write_protect_np' has been explicitly marked >>>>> unavailable >>>>> here >>>>> void pthread_jit_write_protect_np(int enabled); >>>>> ^ >>>>> ../../src/wasm/code-space-access.cc:44:3: error: >>>>> 'pthread_jit_write_protect_np' is unavailable: not available on iOS >>>>> pthread_jit_write_protect_np(1); >>>>> >>>> -- >>> -- >>> v8-users mailing list >>> v8-u...@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+u...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/v8-users/b5cf66f9-95d7-4f2c-99f5-0fa655e11a56n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/v8-users/b5cf66f9-95d7-4f2c-99f5-0fa655e11a56n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> >> Clemens Backes >> >> Software Engineer >> >> clem...@google.com >> >> Google Germany GmbH >> >> Erika-Mann-Straße 33 >> >> 80636 München >> >> Geschäftsführer: Paul Manicle, Halimah DeLaine Prado >> >> Registergericht und -nummer: Hamburg, HRB 86891 >> >> Sitz der Gesellschaft: Hamburg >> >> Diese E-Mail ist vertraulich. Falls sie diese fälschlicherweise erhalten >> haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, >> löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, >> dass die E-Mail an die falsche Person gesendet wurde. >> >> >> This e-mail is confidential. If you received this communication by >> mistake, please don't forward it to anyone else, please erase all copies >> and attachments, and please let me know that it has gone to the wrong >> person. >> >> -- -- 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/8ee091ef-9579-4695-88d0-750be22c870fn%40googlegroups.com.