-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Linux desktop build process failed #77293
Comments
Hi @andersmmg logstaha@pop-os:~/AndroidStudioProjects/bug$ flutter run -d linux -v
[ +45 ms] executing: uname -m
[ +20 ms] Exit code 0 from: uname -m
[ ] x86_64
[ +8 ms] executing: [/home/taha/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[ +7 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] cc9b78fc5c4a4d2d51316d9626523336230a89a9
[ ] executing: [/home/taha/snap/flutter/common/flutter/] git tag --points-at
cc9b78fc5c4a4d2d51316d9626523336230a89a9
[ +8 ms] Exit code 0 from: git tag --points-at cc9b78fc5c4a4d2d51316d9626523336230a89a9
[ ] 2.1.0-10.0.pre
[ +27 ms] executing: [/home/taha/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +2 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/dev
[ ] executing: [/home/taha/snap/flutter/common/flutter/] git ls-remote --get-url origin
[ +2 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +30 ms] executing: [/home/taha/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[ +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] dev
[ +53 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +41 ms] executing: /home/taha/Code/SDK/platform-tools/adb devices -l
[ +11 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +40 ms] executing: /home/taha/Code/SDK/platform-tools/adb devices -l
[ +7 ms] Skipping pub get: version match.
[ +82 ms] Generating
/home/taha/AndroidStudioProjects/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.j
ava
[ +64 ms] Initializing file store
[ +5 ms] Skipping target: gen_localizations
[ +4 ms] complete
[ +3 ms] Launching lib/main.dart on Linux in debug mode...
[ +3 ms] /home/taha/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/taha/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot
--sdk-root /home/taha/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/
--incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata
-DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.XNERHH/flutter_tool.ZJNDZZ/app.dill
--packages /home/taha/AndroidStudioProjects/bug/.dart_tool/package_config.json -Ddart.vm.profile=false
-Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
--initialize-from-dill build/3c113a45063dc6628e68a4111abcacad.cache.dill.track.dill
--enable-experiment=alternative-invalidation-strategy
[ +15 ms] Building Linux application...
[ +19 ms] <- compile package:bug/main.dart
[ +1 ms] executing: [build/linux/x64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug
-DFLUTTER_TARGET_PLATFORM=linux-x64 /home/taha/AndroidStudioProjects/bug/linux
[ +7 ms] List of devices attached
[ +1 ms] List of devices attached
[ +21 ms] -- Configuring done
[ +4 ms] -- Generating done
[ ] -- Build files have been written to: /home/taha/AndroidStudioProjects/bug/build/linux/x64/debug
[ +2 ms] executing: ninja -C build/linux/x64/debug install
[ +4 ms] ninja: Entering directory `build/linux/x64/debug'
[+2741 ms] [1/5] Generating
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/libflutter_linux_gtk.so,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_engine.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_method_call.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_method_response.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_value.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/fl_view.h,
/home/taha/AndroidStudioProjects/bug/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
[ +2 ms] [ +49 ms] executing: uname -m
[ ] [ +24 ms] Exit code 0 from: uname -m
[ ] [ ] x86_64
[ ] [ +10 ms] executing: [/home/taha/snap/flutter/common/flutter/] git -c log.showSignature=false log
-n 1 --pretty=format:%H
[ ] [ +3 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ ] cc9b78fc5c4a4d2d51316d9626523336230a89a9
[ ] [ ] executing: [/home/taha/snap/flutter/common/flutter/] git tag --points-at
cc9b78fc5c4a4d2d51316d9626523336230a89a9
[ ] [ +9 ms] Exit code 0 from: git tag --points-at cc9b78fc5c4a4d2d51316d9626523336230a89a9
[ ] [ ] 2.1.0-10.0.pre
[ ] [ +42 ms] executing: [/home/taha/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +2 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] dev
[ ] [ +38 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ +37 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ ] [ +58 ms] Initializing file store
[ ] [ +7 ms] Done initializing file store
[ ] [ +34 ms] Skipping target: gen_localizations
[ ] [+1311 ms] Skipping target: unpack_linux
[ ] [ +310 ms] Skipping target: kernel_snapshot
[ ] [ +218 ms] Skipping target: debug_bundle_linux-x64_assets
[ ] [ ] Persisting file store
[ ] [ +5 ms] Done persisting file store
[ ] [ +3 ms] build succeeded.
[ ] [ +6 ms] "flutter assemble" took 2,010ms.
[ ] [ +164 ms] ensureAnalyticsSent: 161ms
[ ] [ +1 ms] Running shutdown hooks
[ ] [ ] Shutdown hooks complete
[ ] [ ] exiting with code 0
[ +290 ms] [2/5] Building CXX object CMakeFiles/bug.dir/flutter/generated_plugin_registrant.cc.o
[ +19 ms] [3/5] Building CXX object CMakeFiles/bug.dir/my_application.cc.o
[ +67 ms] [4/5] Linking CXX executable intermediates_do_not_run/bug
[ ] [4/5] Install the project...
[ +7 ms] -- Install configuration: "Debug"
[ +11 ms] -- Installing: /home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/bug
[ ] -- Set runtime path of "/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/bug" to
"$ORIGIN/lib"
[ ] -- Installing: /home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/icudtl.dat
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so
[ +74 ms] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/version.json
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/kernel_blob.bin
[ +23 ms] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.json
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/NOTICES
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/packages
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icon
s
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icon
s/assets
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icon
s/assets/CupertinoIcons.ttf
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/FontManifest.json
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/fonts
[ ] -- Installing:
/home/taha/AndroidStudioProjects/bug/build/linux/x64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Reg
ular.otf
[ +8 ms] Building Linux application... (completed in 3.3s)
[ +188 ms] Observatory URL on device: http://127.0.0.1:41457/m6uEOqFxVUA=/
[+2208 ms] Caching compiled dill
[ +22 ms] Connecting to service protocol: http://127.0.0.1:41457/m6uEOqFxVUA=/
[ +90 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service
at http://127.0.0.1:41457/m6uEOqFxVUA=/.
[ +44 ms] DDS is listening at http://127.0.0.1:36095/9DkhXXYHXBk=/.
[ +36 ms] Successfully connected to service protocol: http://127.0.0.1:41457/m6uEOqFxVUA=/
[ +11 ms] DevFS: Creating new filesystem on the device (null)
[ +9 ms] DevFS: Created new filesystem on the device (file:///tmp/bugTAQZFH/bug/)
[ +1 ms] Updating assets
[ +51 ms] Syncing files to device Linux...
[ +1 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +1 ms] <- recompile package:bug/main.dart 0c30abd5-7e6e-4e9f-9eca-3f8f612ab6bb
[ ] <- 0c30abd5-7e6e-4e9f-9eca-3f8f612ab6bb
[ +66 ms] Updating files.
[ ] DevFS: Sync finished
[ ] Syncing files to device Linux... (completed in 70ms)
[ ] Synced 0.0MB.
[ ] <- accept
[ +3 ms] Connected to _flutterView/0x1ab6fe0.
[ +1 ms] Flutter run key commands.
[ +1 ms] r Hot reload. 🔥🔥🔥
[ ] R Hot restart.
[ ] h Repeat this help message.
[ ] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] Running with unsound null safety
[ ] For more information see https://dart.dev/null-safety/unsound-null-safety
[ ] An Observatory debugger and profiler on Linux is available at:
http://127.0.0.1:36095/9DkhXXYHXBk=/
[ +708 ms] The Flutter DevTools debugger and profiler on Linux is available at:
http://127.0.0.1:9102?uri=http%3A%2F%2F127.0.0.1%3A36095%2F9DkhXXYHXBk%3D%2F taha@pop-os:~/AndroidStudioProjects/bug$ neofetch
///////////// taha@pop-os
///////////////////// -----------
///////*767//////////////// OS: Pop!_OS 20.10 x86_64
//////7676767676*////////////// Host: 81SX Lenovo Legion Y540-15IRH
/////76767//7676767////////////// Kernel: 5.8.0-7642-generic
/////767676///*76767/////////////// Uptime: 28 mins
///////767676///76767.///7676*/////// Packages: 1982 (dpkg), 5 (snap)
/////////767676//76767///767676//////// Shell: bash 5.0.17
//////////76767676767////76767///////// Resolution: 3072x1728
///////////76767676//////7676////////// DE: GNOME 3.38.2
////////////,7676,///////767/////////// WM: Mutter
/////////////*7676///////76//////////// WM Theme: Pop
///////////////7676//////////////////// Theme: Pop-dark [GTK2/3]
///////////////7676///767//////////// Icons: Pop [GTK2/3]
//////////////////////'//////////// Terminal: gnome-terminal
//////.7676767676767676767,////// CPU: Intel i7-9750H (12) @ 4.500GHz
/////767676767676767676767///// GPU: NVIDIA GeForce RTX 2060 Mobile
/////////////////////////// Memory: 3452MiB / 15927MiB
/////////////////////
/////////////
taha@pop-os:~/AndroidStudioProjects/bug$ flutter doctor -v[✓] Flutter (Channel beta, 2.0.1, on macOS 11.2.2 20D80 darwin-x64, locale
en-GB)
• Flutter version 2.0.1 at /Users/tahatesser/Code/flutter_beta
• Framework revision c5a4b4029c (15 hours ago), 2021-03-04 09:47:48 -0800
• Engine revision 40441def69
• Dart version 2.12.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Volumes/Extreme/SDK
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = /Volumes/Extreme/SDK
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.54.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.20.0
[✓] Connected device (3 available)
• SM M025F (mobile) • R9ZR205XX0A • android-arm • Android 10 (API 29)
• macOS (desktop) • macos • darwin-x64 • macOS 11.2.2 20D80
darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome
88.0.4324.192
• No issues found! Can you please detail of your Linux distro and |
This is on Manjaro Linux. neofetch
|
Hi @andersmmg sudo snap remove --purge flutter
rm -rf ~/snap/flutter Thank you |
It did work on a manual install! I only used the snap because the docs recommended it, if this is a known issue with the snap install maybe it should be said somewhere |
For the technically inclined: As of the initial Flutter 2 release, all builds for this would fail. The [kernel_snapshot] would experience an exception with some references to [flutter_tools]. While investigating, the only most recent change I saw was to do with a clean up but it does not look like a breaking sort of change in this case. So it must be something else. Similar issues: - flutter/flutter#77293 - flutter/flutter#77317
Hi @andersmmg |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
flutter create bug
.flutter run -d linux
Expected results:
The app should open on Linux desktop.
Actual results:
Failed to build
Logs
The text was updated successfully, but these errors were encountered: