Skip to content

Engine - clang18 arm64 - release only (LTO enabled) #170352

Open
@jwinarske

Description

@jwinarske

Steps to reproduce

  - name: Install packages
    run: |
      git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

  - name: Get Flutter Source
    run: |
      export PATH=$PATH:$PWD/depot_tools
      export VPYTHON_VIRTUALENV_ROOT=$PWD/vpython
      git clone https://github.com/flutter/flutter.git
      pushd flutter
      gclient config --spec 'solutions=[{"managed":False,"name":".","url":"https://github.com/flutter/flutter.git","custom_deps":{},"custom_vars":{"download_android_deps":False,"download_windows_deps":False,"download_linux_deps":True},"deps_file":"DEPS","safesync_url":""}]'
      gclient sync --force --shallow --no-history -R -D --revision ${{ inputs.SRCREV }} -j$(nproc) -v
      popd

      # fetch sysroot
      cd flutter/engine/src
      build/linux/sysroot_scripts/install-sysroot.py --arch=$arch

  - name: Patch Flutter Source
    run: |
      PATCH_DIR=$PWD/patches
      cd flutter
      git apply $PATCH_DIR/0001-clang-toolchain.patch

  - name: Build Release
    working-directory: flutter/engine/src
    run: |
      export PATH=$PATH:$PWD/../../../depot_tools
      export VPYTHON_VIRTUALENV_ROOT=$PWD/../../../vpython
      CLANG_ROOT=$(find -iname clang++)
      CLANG_ROOT=$(dirname $CLANG_ROOT)
      export CLANG_ROOT=$(dirname $CLANG_ROOT)
      ./flutter/tools/gn --runtime-mode=release \
        --embedder-for-target \
        --no-build-embedder-examples \
        --enable-impeller-3d \
        --no-goma --no-rbe \
        --no-stripped --no-enable-unittests \
        --no-dart-version-git-info \
        --linux-cpu $linux_cpu \
        --target-os linux \
        --target-sysroot $PWD/build/linux/$target_sysroot \
        --target-toolchain $PWD/$CLANG_ROOT \
        --target-triple $target_triple
      ninja -C out/linux_release_$arch

https://github.com/meta-flutter/flutter-engine/blob/main/patches/0001-clang-toolchain.patch

Expected results

Build without error

Actual results

FAILED: obj/flutter/third_party/vulkan-deps/spirv-tools/src/source/val/libspvtools_val.validate_ray_tracing_reorder.o 
/mnt/raid10/github-ci/_work/flutter-engine/flutter-engine/flutter/engine/src/./flutter/buildtools/linux-x64/clang/bin/clang++ -MD -MF obj/flutter/third_party/vulkan-deps/spirv-tools/src/source/val/libspvtools_val.validate_ray_tracing_reorder.o.d --target=aarch64-unknown-linux-gnu --sysroot /mnt/raid10/github-ci/_work/flutter-engine/flutter-engine/flutter/engine/src/build/linux/debian_sid_arm64-sysroot -DUSE_OPENSSL=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../flutter/third_party/libcxx/include -I../../flutter/third_party/libcxxabi/include -I../../flutter/build/secondary/flutter/third_party/libcxx/config -I../../flutter/third_party/vulkan-deps/spirv-tools/src -I../../flutter/third_party/vulkan-deps/spirv-headers/src/include -I../../flutter/third_party/vulkan-deps/spirv-tools/src/include -Igen/flutter/third_party/vulkan-deps/spirv-tools/src -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=8 -fPIC -pipe -pthread --target=aarch64-linux-gnu -DBORINGSSL_CLANG_SUPPORTS_DOT_ARCH -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-deprecated-copy -Wno-psabi -Wno-deprecated-literal-operator -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -fdebug-prefix-map=/mnt/raid10/github-ci/_work/flutter-engine/flutter-engine/flutter/engine/src/= -no-canonical-prefixes -fvisibility=hidden --sysroot=/mnt/raid10/github-ci/_work/flutter-engine/flutter-engine/flutter/engine/src/build/linux/debian_sid_arm64-sysroot -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g0 -Wno-implicit-fallthrough -Wno-newline-eof -Wno-unreachable-code-break -Wno-unreachable-code-return -std=c++17 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -c ../../flutter/third_party/vulkan-deps/spirv-tools/src/source/val/validate_ray_tracing_reorder.cpp -o obj/flutter/third_party/vulkan-deps/spirv-tools/src/source/val/libspvtools_val.validate_ray_tracing_reorder.o
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Fuchsia clang version 18.0.0 (https://llvm.googlesource.com/llvm-project 725656bdd885483c39f482a01ea25d67acf39c46)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /mnt/raid10/github-ci/_work/flutter-engine/flutter-engine/flutter/engine/src/./flutter/buildtools/linux-x64/clang/bin
clang++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/validate_ray_tracing_reorder-cb40bd.cpp
clang++: note: diagnostic msg: /tmp/validate_ray_tracing_reorder-cb40bd.sh
clang++: note: diagnostic msg: 

********************

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
$ flutter doctor -v
[!] Flutter (Channel [user-branch], 3.32.2, on Fedora Linux 42 (Workstation Edition) 6.14.9-300.fc42.x86_64, locale en_US.UTF-8) [25ms]
    ! Flutter version 3.32.2 on channel [user-branch] at /mnt/raid10/workspace-automation/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 8defaa71a7 (6 days ago), 2025-06-04 11:02:51 -0700
    • Engine revision 1091508939
    • Dart version 3.8.1
    • DevTools version 2.45.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Linux toolchain - develop for Linux desktop [221ms]
    • clang version 20.1.6 (Fedora 20.1.6-1.fc42)
    • cmake version 3.31.6
    • ninja version 1.12.1
    • pkg-config version 2.3.0
    • OpenGL core renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 20.1.5, DRM 3.61, 6.14.9-300.fc42.x86_64)
    • OpenGL core version: 4.6 (Core Profile) Mesa 25.0.7
    • OpenGL core shading language version: 4.60
    • OpenGL ES renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 20.1.5, DRM 3.61, 6.14.9-300.fc42.x86_64)
    • OpenGL ES version: OpenGL ES 3.2 Mesa 25.0.7
    • OpenGL ES shading language version: OpenGL ES GLSL ES 3.20
    • GL_EXT_framebuffer_blit: yes
    • GL_EXT_texture_format_BGRA8888: yes

[✓] VS Code (version unknown) [11ms]
    • VS Code at /usr/share/code
    • Flutter extension version 3.113.20250603
    ✗ Unable to determine VS Code version.

[✓] Connected device (2 available) [42ms]
    • Linux (desktop)            • linux              • linux-x64 • Fedora Linux 42 (Workstation Edition) 6.14.9-300.fc42.x86_64
    • Toyota homescreen (mobile) • desktop-homescreen • linux-x64 • homescreen x86_64

[✓] Network resources [176ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions