Failed to cross compile v8 for iOS: error: unknown directive .type PushAllRegistersAndIterateStack

106 views
Skip to first unread message

许超前

unread,
May 8, 2020, 9:18:35 AM5/8/20
to v8-users

$ ninja -C out/ios.release

ninja: Entering directory `out/ios.release'

[195/2128] CXX obj/cppgc_base/push_registers_asm.o

FAILED: obj/cppgc_base/push_registers_asm.o 

clang++ -MMD -MF obj/cppgc_base/push_registers_asm.o.d -DCR_XCODE_VERSION=1141 -DCR_CLANG_REVISION=\"n346557-4e0d9925-3\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DNS_BLOCK_ASSERTIONS=1 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_MINOR_MC -DENABLE_HANDLE_ZAPPING -DV8_CONCURRENT_MARKING -DV8_ARRAY_BUFFER_EXTENSION -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SNAPSHOT_COMPRESSION -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_TARGET_ARCH_ARM64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_IOS -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -I../.. -Igen -I../.. -I../../include -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fcolor-diagnostics -fmerge-all-constants -arch arm64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wunguarded-availability -Wundeclared-selector -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -fno-omit-frame-pointer -g2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk -miphoneos-version-min=10 -fembed-bitcode -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-error -Wmissing-field-initializers -Wunreachable-code -Wshorten-64-to-32 -O3 -fvisibility=default -Wexit-time-destructors -std=c++14 -Wextra-semi -fno-exceptions -fno-rtti -c ../../src/heap/cppgc/asm/arm64/push_registers_asm.cc -o obj/cppgc_base/push_registers_asm.o

error: unknown directive

.type PushAllRegistersAndIterateStack, %function   

^

error: unknown directive

.hidden PushAllRegistersAndIterateStack            

^

<inline asm>:2:1: error: unknown directive

.type PushAllRegistersAndIterateStack, %function   

^

error: cannot compile inline asm

<inline asm>:3:1: error: unknown directive

.hidden PushAllRegistersAndIterateStack 

Message has been deleted

许超前

unread,
May 8, 2020, 8:41:51 PM5/8/20
to v8-users
I compiled latest v8(commit f5818c6b7b167c1641c9184fc5e7c0ca43abd888) using clang(version 11.0.3) on macOS catalina(version 10.15.4), with the following gn args: 

enable_ios_bitcode = true

ios_deployment_target = 10

is_component_build = false

is_debug = false

target_cpu = "arm64"                  # "x64" for a simulator build.

target_os = "ios"

use_custom_libcxx = false             # Use Xcode's libcxx.

use_xcode_clang = true

v8_enable_i18n_support = false        # Produces a smaller binary.

v8_monolithic = true                  # Enable the v8_monolith target.

v8_use_external_startup_data = false  # The snaphot is included in the binary.

Jakob Gruber

unread,
May 11, 2020, 12:49:59 AM5/11/20
to v8-u...@googlegroups.com, Michael Lippautz

On Fri, May 8, 2020 at 3:25 PM 许超前 <chao...@gmail.com> wrote:
I compiled latest v8 on macOS catalina(10.15.4), with the following gn args: 

enable_ios_bitcode = true

ios_deployment_target = 10

is_component_build = false

is_debug = false

target_cpu = "arm64"                  # "x64" for a simulator build.

target_os = "ios"

use_custom_libcxx = false             # Use Xcode's libcxx.

use_xcode_clang = true

v8_enable_i18n_support = false        # Produces a smaller binary.

v8_monolithic = true                  # Enable the v8_monolith target.

v8_use_external_startup_data = false  # The snaphot is included in the binary.

--
--
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/e25b0852-e834-4d39-b937-40dad8c8a713%40googlegroups.com.

Michael Lippautz

unread,
May 11, 2020, 3:29:11 AM5/11/20
to Jakob Gruber, v8-users
Thank you for reporting! The issue will be tracked in https://bugs.chromium.org/p/v8/issues/detail?id=10517.

许超前

unread,
May 11, 2020, 8:38:13 PM5/11/20
to v8-users
Thank you so much!

On Monday, May 11, 2020 at 3:29:11 PM UTC+8, Michael Lippautz wrote:
Thank you for reporting! The issue will be tracked in https://bugs.chromium.org/p/v8/issues/detail?id=10517.

On Mon, May 11, 2020 at 6:49 AM Jakob Gruber <jgr...@chromium.org> wrote:
On Fri, May 8, 2020 at 3:25 PM 许超前 <chao...@gmail.com> wrote:
I compiled latest v8 on macOS catalina(10.15.4), with the following gn args: 

enable_ios_bitcode = true

ios_deployment_target = 10

is_component_build = false

is_debug = false

target_cpu = "arm64"                  # "x64" for a simulator build.

target_os = "ios"

use_custom_libcxx = false             # Use Xcode's libcxx.

use_xcode_clang = true

v8_enable_i18n_support = false        # Produces a smaller binary.

v8_monolithic = true                  # Enable the v8_monolith target.

v8_use_external_startup_data = false  # The snaphot is included in the binary.

--
--
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-u...@googlegroups.com.

kosit la-orngsri

unread,
Jun 17, 2020, 8:49:22 AM6/17/20
to v8-users


เมื่อ วันศุกร์ที่ 8 พฤษภาคม ค.ศ. 2020 20 นาฬิกา 18 นาที 35 วินาที UTC+7, 许超前 เขียนว่า:
Reply all
Reply to author
Forward
0 new messages