Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter Engine Clang Version #54936

Open
Qxyat opened this issue Apr 16, 2020 · 1 comment
Open

Flutter Engine Clang Version #54936

Qxyat opened this issue Apr 16, 2020 · 1 comment
Labels
a: debugging Debugging, breakpoints, expression evaluation customer: bytedance d: api docs Issues with https://api.flutter.dev/ engine flutter/engine repository. See also e: labels. P2 Important issues not at the top of the work list team-engine Owned by Engine team triaged-engine Triaged by Engine team

Comments

@Qxyat
Copy link

Qxyat commented Apr 16, 2020

I encounter a problem while debugging the engine:single-step debugging behaves abnormally.
When I take a look at assembly code,it is different between Flutter Clang and Xcode Clang.
For example,the assembly code for [FlutterEngine initWithName: project: allowHeadlessExecution]:
result.zip
It looks like that Flutter Clang has more assembly code,
image
I am confused now:

  1. What is the difference between the Flutter Clang and Xcode Clang?

2.What is the role of redundant assembly code? Single-step debugging behaves normally when I
use the Xcode Clang.

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, v1.12.13+hotfix.7, on Mac OS X 10.14.6 18G4032, locale
zh-Hans-CN)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.5)
[✓] Connected device (1 available)

Local Engine:
./flutter/tools/gn --runtime-mode=release --unopt

Xcode Clang Version:
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix

@TahaTesser TahaTesser added a: debugging Debugging, breakpoints, expression evaluation documentation engine flutter/engine repository. See also e: labels. platform-mac Building on or for macOS specifically labels Apr 16, 2020
@TahaTesser TahaTesser added passed first triage and removed platform-mac Building on or for macOS specifically labels Nov 5, 2020
@kf6gpe kf6gpe added the P2 Important issues not at the top of the work list label Dec 10, 2020
@zzjjob
Copy link

zzjjob commented Jul 28, 2021

Flutter 2.0.2

flutter buildtools clang :
Fuchsia clang version 12.0.0 (https://llvm.googlesource.com/a/llvm-project 1a497ae9b83653682d6d20f1ec131394e523375d)
Target: x86_64-apple-darwin20.5.0
Thread model: posix

xcode clang:
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.5.0
Thread model: posix

After compiling into a static library, there will be an inconsistent version error:
Flutter.framework/Flutter(flutter_framework_source.FlutterEngine.o): 'Unknown attribute kind (70) (Producer: 'LLVM12.0.0git' Reader: 'LLVM APPLE_1_1205.0.22.9_0')', using libLTO version 'LLVM version 12.0.5, (clang-1205.0.22.9)'

@flutter-triage-bot flutter-triage-bot bot added the d: api docs Issues with https://api.flutter.dev/ label Jul 5, 2023
@flutter-triage-bot flutter-triage-bot bot added team-engine Owned by Engine team triaged-engine Triaged by Engine team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: debugging Debugging, breakpoints, expression evaluation customer: bytedance d: api docs Issues with https://api.flutter.dev/ engine flutter/engine repository. See also e: labels. P2 Important issues not at the top of the work list team-engine Owned by Engine team triaged-engine Triaged by Engine team
Projects
None yet
Development

No branches or pull requests

6 participants