Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28539] Android: Update V8 runtime to 9.4

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2021-10-19T17:01:59.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.2.0
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2021-09-22T03:54:28.000+0000
Updated2021-10-23T15:55:25.000+0000

Description

- Upgrade V8 to the latest stable version 9.4.146.16 https://omahaproxy.appspot.com/ https://github.com/v8/v8/tree/9.4-lkgr - Maintain backwards compatibility

Comments

  1. Gary Mathews 2021-09-24

    https://github.com/appcelerator/v8_titanium/tree/9.4-lkgr
  2. Gary Mathews 2021-09-30

    master: https://github.com/appcelerator/titanium_mobile/pull/13097
  3. Michael Gangolf 2021-10-23

    Is there anything special I'll need to update? When I build the latest master it will stop with:
       Found architectures arm, arm64, x86, x86_64
       Generating snapshot blob for arm...
       Error: Command failed: /titanium_mobile/dist/android/libv8/9.4.146.16/release/libs/arm/mksnapshot --turbo_instruction_scheduling --embedded_src=/titanium_mobile/dist/android/libv8/9.4.146.16/release/libs/arm/embedded.S --embedded_variant=Default --no-native-code-counters --startup_blob=/titanium_mobile/dist/android/libv8/9.4.146.16/release/libs/arm/blob.bin /titanium_mobile/dist/tmp/startup.js
       /titanium_mobile/dist/android/libv8/9.4.146.16/release/libs/arm/mksnapshot: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
       
           at ChildProcess.exithandler (child_process.js:383:12)
           at ChildProcess.emit (events.js:400:28)
           at maybeClose (internal/child_process.js:1058:16)
           at Socket.<anonymous> (internal/child_process.js:443:11)
           at Socket.emit (events.js:400:28)
           at Pipe.<anonymous> (net.js:686:12) {
         killed: false,
         code: 127,
         signal: null,
         cmd: '/titanium_mobile/dist/android/libv8/9.4.146.16/release/libs/arm/mksnapshot --turbo_instruction_scheduling --embedded_src=/titanium_mobile/dist/android/libv8/9.4.146.16/release/libs/arm/embedded.S --embedded_variant=Default --no-native-code-counters --startup_blob=/titanium_mobile/dist/android/libv8/9.4.146.16/release/libs/arm/blob.bin /titanium_mobile/dist/tmp/startup.js',
         stdout: '',
         stderr: '/titanium_mobile/dist/android/libv8/9.4.146.16/release/libs/arm/mksnapshot: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory\n'
       }
       [Error: ENOENT: no such file or directory, unlink '/titanium_mobile/dist/android/libv8/9.4.146.16/release/libs/arm/blob.bin'] {
         errno: -2,
         code: 'ENOENT',
         syscall: 'unlink',
         path: '/titanium_mobile/dist/android/libv8/9.4.146.16/release/libs/arm/blob.bin'
       }
       
       > Task :titanium:snapshotTiCommonFiles FAILED
       
       FAILURE: Build failed with an exception.
       
       * Where:
       Build file '/titanium_mobile/android/titanium/build.gradle' line: 202
       
       * What went wrong:
       Execution failed for task ':titanium:snapshotTiCommonFiles'.
       
    When I switch back to 8.8.278.17 it works fine. I've installed libatomic (it will create a libatomic.so so l've linked libatomic.so.1 to it) but it didn't help either
  4. Michael Gangolf 2021-10-23

    Never mind! I saw the https://github.com/appcelerator/titanium_mobile/commit/59db7bf8bed2a41cc5ca891a1f8a3bb58c20dc2a commit and it has to be the 32bit version of libatomic. Then it worked (y)

JSON Source