I am trying to cross compile V8 for iOS ( https://chromium.googlesource.com/v8/v8.git/+/be47fd1c37ead74cf5c4479043426e0376d3ff29) as described here: https://v8.dev/docs/cross-compile-ios
Using Mac OS 10.14.5 and XCode 10.2.1 I am getting the following error when building *embedded.S*: [1321/1328] ASM obj/v8_snapshot/embedded.o FAILED: obj/v8_snapshot/embedded.o ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/ v8_snapshot/embedded.o.d -DNO_TCMALLOC -DCHROMIUM_BUILD -DCR_XCODE_VERSION= 1021 -DCR_CLANG_REVISION=\"361212-67510fac-2\" -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_USE_SNAPSHOT -DV8_CONCURRENT_MARKING -DV8_EMBEDDED_BUILTINS -DV8_WIN64_UNWINDING_INFO -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_TARGET_ARCH_X64 -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -I../.. -Igen -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -std=c11 -arch x86_64 -g2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -stdlib=libc++ -mios-simulator-version-min=10 -c gen/embedded.S -o obj/v8_snapshot/embedded.o gen/embedded.S:68:15: error: unexpected token in '.section' directive .section .text ^ gen/embedded.S:379:1: error: unknown directive .type Builtins_RecordWrite, @function ^ gen/embedded.S:431:1: error: unknown directive .type Builtins_EphemeronKeyBarrier, @function ^ gen/embedded.S:448:1: error: unknown directive .type Builtins_AdaptorWithBuiltinExitFrame, @function ^ gen/embedded.S:453:1: error: unknown directive .type Builtins_ArgumentsAdaptorTrampoline, @function ^ gen/embedded.S:466:1: error: unknown directive .type Builtins_CallFunction_ReceiverIsNullOrUndefined, @function ^ ............ and hundreds of other similar errors ........... This was working fine with this revision: https://chromium.googlesource.com/v8/v8.git/+/e0a109c05821fa36ec20e1f25895c23baa8d64c3 -- -- 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/aa630655-4f80-4de3-9392-2d44af42c47f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.