ld: could not read bitcode temp file: ./v8_sample_process.bundle.GxyLUp/bundle.xar for architecture arm64

46 views
Skip to first unread message

Richard

unread,
May 13, 2021, 10:06:20 PM5/13/21
to v8-users

I'm trying to build v9.0/9.1 for iOS with the following settings:


--args=

    enable_ios_bitcode = true

    ios_deployment_target = 10

    is_component_build = false

    is_debug = false

    target_cpu = "arm64"

    target_os = "ios"

    use_custom_libcxx = false

    use_xcode_clang = true

    v8_enable_i18n_support = false

    v8_monolithic = true

    v8_use_external_startup_data = false

    v8_enable_pointer_compression = false


I'm getting the following error:


    TOOL_VERSION=1620217005 ../../v8/v8/build/toolchain/apple/linker_driver.py -Wcrl,strippath,../../../../../../../../Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip ../../../../../../../../Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -B ../../../../../../../../Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/  -Wl,-fatal_warnings -target arm64-apple-ios10 -Werror -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -fembed-bitcode -Wl,-ObjC -Wl,-objc_abi_version,2 -Wl,-rpath,@executable_path/Frameworks -Wl,-dead_strip -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/usr/lib/swift -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -o "./v8_sample_process" -Wl,-filelist,"./v8_sample_process.rsp" -framework CoreFoundation -framework CoreGraphics -framework CoreText -framework Foundation   


    ld: could not read bitcode temp file: ./v8_sample_process.bundle.GxyLUp/bundle.xar for architecture arm64


    clang: error: linker command failed with exit code 1 (use -v to see invocation)


    Traceback (most recent call last):


    File "../../v8/v8/build/toolchain/apple/linker_driver.py", line 305, in <module>


        Main(sys.argv)


    File "../../v8/v8/build/toolchain/apple/linker_driver.py", line 98, in Main


        subprocess.check_call(compiler_driver_args, env=env)


    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call


        raise CalledProcessError(retcode, cmd)


Any ideas what may be causing this?

Richard

unread,
May 14, 2021, 8:17:47 AM5/14/21
to v8-users
Setting enable_ios_bitcode = false fixes this problem, but is this a valid solution?
Reply all
Reply to author
Forward
0 new messages