Closed adnan449 closed 3 years ago
Could you please run flutter run -v -d linux
and share the output.
Could you please run ‘flutter run -v -d linux’ and share the output.
OP Edited
I'm having an issue on Manjaro that seems to be the same, switching to the non-snap version worked
@adnan449 and @andersmmg, could you please create a fresh project via flutter create
, and run flutter run -v -d linux
in that new directory? I'd like to see the output of a first run.
Then could you also provide the output to flutter doctor -v
. Thanks!
Hello sorry to break in but I am having the same issue on Manjaro with the snap installation of flutter.
I did what @MarcusTomlinson asked in his last comment.
In the file doctor.txt is the output of flutter doctor -v
and in the file run.txt is the output of flutter run -v -d linux
doctor.txt
run.txt
I removed my Fedora installation and installed Ubuntu LTS. This problem was also seen in OpenSUSE. I think it's an issue with properly installing Flutter desktop extra dependencies for Linux but I cannot guarantee it.
We have seen a bunch of users experiencing this issue I also managed to reproduce it myself
The same project runs fine with non-snap-flutter
https://github.com/flutter/flutter/issues/77786 https://github.com/flutter/flutter/issues/77293 https://github.com/flutter/flutter/issues/77786
I have an idea of how to fix this. Will try sort it out today.
This is now fixed in the latest Flutter snap release.
Having the same issue with flutter installed with snap on Ubuntu 20.04
doctor output
deep@deeps-laptop:pdc$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.1, on Linux, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] Connected device (1 available)
! Device 192.168.1.6:40541 is offline.
• No issues found!
deep@deeps-laptop:pdc$ flutter doctor -v
[✓] Flutter (Channel stable, 2.2.1, on Linux, locale en_IN)
• Flutter version 2.2.1 at /home/deep/snap/flutter/common/flutter
• Framework revision 02c026b03c (8 days ago), 2021-05-27 12:24:44 -0700
• Engine revision 0fdb562ac8
• Dart version 2.13.1
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /mnt/hdd/android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /snap/android-studio/103/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 4.2)
• Android Studio at /snap/android-studio/103/android-studio
• Flutter plugin version 57.0.2
• Dart plugin version 202.8488
• Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.77
! Device 192.168.1.6:40541 is offline.
• No issues found!
run output
Launching lib/main.dart on AC2001 in debug mode...
Running Gradle task 'assembleDebug'...
Note: /home/deep/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.2.0/android/src/main/java/io/flutter/plugins/firebase/core/FlutterFirebaseCorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/deep/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.10.0/android/src/main/java/io/flutter/plugins/firebase/firebaseremoteconfig/FirebaseRemoteConfigPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':pdf_render:externalNativeBuildDebug'.
> Build command failed.
Error while executing process /mnt/hdd/android/sdk/cmake/3.10.2.4988404/bin/ninja with arguments {-C /home/deep/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/pdf_render-1.0.11/android/.cxx/cmake/debug/armeabi-v7a bbhelper}
ninja: Entering directory `/home/deep/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/pdf_render-1.0.11/android/.cxx/cmake/debug/armeabi-v7a'
[1/2] Building CXX object CMakeFiles/bbhelper.dir/c++/directBufferAndroid.cpp.o
FAILED: CMakeFiles/bbhelper.dir/c++/directBufferAndroid.cpp.o
/mnt/hdd/android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi21 --gcc-toolchain=/mnt/hdd/android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/mnt/hdd/android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dbbhelper_EXPORTS -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -O0 -fno-limit-debug-info -fPIC -DBUILD_FOR_ANDROID -MD -MT CMakeFiles/bbhelper.dir/c++/directBufferAndroid.cpp.o -MF CMakeFiles/bbhelper.dir/c++/directBufferAndroid.cpp.o.d -o CMakeFiles/bbhelper.dir/c++/directBufferAndroid.cpp.o -c ../../../../c++/directBufferAndroid.cpp
In file included from ../../../../c++/directBufferAndroid.cpp:1:
In file included from /mnt/hdd/android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/jni.h:27:
In file included from /snap/flutter/current/usr/include/stdint.h:26:
In file included from /snap/flutter/current/usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33:
In file included from /snap/flutter/current/usr/include/features.h:448:
/snap/flutter/current/usr/include/x86_64-linux-gnu/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
# include <gnu/stubs-32.h>
^~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 51s
Exception: Gradle task assembleDebug failed with exit code 1
[ +207 ms] executing: uname -m
[ +96 ms] Exit code 0 from: uname -m
[ ] x86_64
[ +22 ms] executing: [/home/mitai/flutter/] git -c
log.showSignature=false log -n 1 --pretty=format:%H
[ +33 ms] Exit code 0 from: git -c log.showSignature=false log -n 1
--pretty=format:%H
[ +1 ms] 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[ +1 ms] executing: [/home/mitai/flutter/] git tag --points-at
02c026b03cd31dd3f867e5faeb7e104cce174c5f
[ +39 ms] Exit code 0 from: git tag --points-at
02c026b03cd31dd3f867e5faeb7e104cce174c5f
[ +1 ms] 2.2.1
[ +19 ms] executing: [/home/mitai/flutter/] git rev-parse --abbrev-ref
--symbolic @{u}
[ +14 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [/home/mitai/flutter/] git ls-remote --get-url
origin
[ +10 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +305 ms] executing: [/home/mitai/flutter/] git rev-parse --abbrev-ref
HEAD
[ +20 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +348 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not
required, skipping update.
[ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not
required, skipping update.
[ +7 ms] Artifact Instance of 'IOSEngineArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required,
skipping update.
[ +9 ms] Artifact Instance of 'WindowsEngineArtifacts' is not
required, skipping update.
[ +6 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required,
skipping update.
[ +14 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not
required, skipping update.
[ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not
required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not
required, skipping update.
[ +3 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not
required, skipping update.
[ +232 ms] executing: /home/mitai/Android/Sdk/platform-tools/adb
devices -l
[ +49 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.
[ +3 ms] Artifact Instance of 'FlutterWebSdk' is not required,
skipping update.
[ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not
required, skipping update.
[ +6 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required,
skipping update.
[ +4 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not
required, skipping update.
[ +2 ms] 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.
[ +227 ms] executing: /home/mitai/Android/Sdk/platform-tools/adb
devices -l
[ +65 ms] Skipping pub get: version match.
[ +434 ms] Generating
/home/mitai/code/billboard/frontend/android/app/src/main/java/io/flutte
r/plugins/GeneratedPluginRegistrant.java
[ +302 ms] Initializing file store
[ +35 ms] Skipping target: gen_localizations
[ +19 ms] complete
[ +24 ms] Launching lib/main.dart on Linux in debug mode...
[ +26 ms] /home/mitai/flutter/bin/cache/dart-sdk/bin/dart
--disable-dart-dev
/home/mitai/flutter/bin/cache/artifacts/engine/linux-x64/frontend_serve
r.dart.snapshot --sdk-root
/home/mitai/flutter/bin/cache/artifacts/engine/common/flutter_patched_s
dk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true
--output-dill /tmp/flutter_tools.HMAQKJ/flutter_tool.IXVAUR/app.dill
--packages
/home/mitai/code/billboard/frontend/.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
[ +106 ms] Building Linux application...
[ +102 ms] <- compile package:frontend/main.dart
[ +6 ms] executing: [build/linux/x64/debug/] cmake -G Ninja
-DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-x64
/home/mitai/code/billboard/frontend/linux
[ +86 ms] List of devices attached
[ +6 ms] List of devices attached
[ +592 ms] -- Configuring done
[ +82 ms] -- Generating done
[ +64 ms] -- Build files have been written to:
/home/mitai/code/billboard/frontend/build/linux/x64/debug
[ +19 ms] executing: ninja -C build/linux/x64/debug install
[ +58 ms] ninja: Entering directory `build/linux/x64/debug'
[+74432 ms] [1/5] Generating
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/libfl
utter_linux_gtk.so,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_basic_message_channel.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_binary_codec.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_binary_messenger.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_dart_project.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_engine.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_json_message_codec.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_json_method_codec.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_message_codec.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_method_call.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_method_channel.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_method_codec.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_method_response.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_plugin_registrar.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_plugin_registry.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_standard_message_codec.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_standard_method_codec.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_string_codec.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_value.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/fl_view.h,
/home/mitai/code/billboard/frontend/linux/flutter/ephemeral/flutt
er_linux/flutter_linux.h, _phony_
[ +16 ms] [ +303 ms] executing: uname -m
[ ] [ +103 ms] Exit code 0 from: uname -m
[ ] [ +2 ms] x86_64
[ ] [ +26 ms] executing: [/home/mitai/flutter/] git -c
log.showSignature=false log -n 1 --pretty=format:%H
[ +10 ms] [ +508 ms] Exit code 0 from: git -c
log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ ] 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[ ] [ +2 ms] executing: [/home/mitai/flutter/] git tag
--points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[ ] [ +30 ms] Exit code 0 from: git tag --points-at
02c026b03cd31dd3f867e5faeb7e104cce174c5f
[ ] [ ] 2.2.1
[ ] [ +16 ms] executing: [/home/mitai/flutter/] git
rev-parse --abbrev-ref --symbolic @{u}
[ ] [ +10 ms] Exit code 0 from: git rev-parse
--abbrev-ref --symbolic @{u}
[ ] [ ] origin/stable
[ ] [ ] executing: [/home/mitai/flutter/] git
ls-remote --get-url origin
[ ] [ +10 ms] Exit code 0 from: git ls-remote --get-url
origin
[ +1 ms] [ ] https://github.com/flutter/flutter.git
[ ] [ +320 ms] executing: [/home/mitai/flutter/] git
rev-parse --abbrev-ref HEAD
[ ] [ +10 ms] Exit code 0 from: git rev-parse
--abbrev-ref HEAD
[ ] [ ] stable
[ ] [ +362 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.
[ ] [ +14 ms] Artifact Instance of
'WindowsEngineArtifacts' is not required, skipping update.
[ +9 ms] [ ] Artifact Instance of 'MacOSEngineArtifacts'
is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts'
is not required, skipping update.
[ +2 ms] [ +1 ms] Artifact Instance of
'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of
'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +3 ms] [ +3 ms] Artifact Instance of
'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of
'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ +500 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.
[ ] [ +3 ms] 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.
[ ] [ +1 ms] 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.
[ +1 ms] [ ] Artifact Instance of 'PubDependencies' is
not required, skipping update.
[ ] [ +305 ms] Initializing file store
[ ] [ +252 ms] Skipping target: gen_localizations
[ ] [ +27 ms] unpack_linux: Starting due to {}
[ ] [+3595 ms] kernel_snapshot: Starting due to {}
[ ] [ +11 ms] unpack_linux: Complete
[ +3 ms] [+10479 ms]
/home/mitai/flutter/bin/cache/dart-sdk/bin/dart
--disable-dart-dev
/home/mitai/flutter/bin/cache/artifacts/engine/linux-x64/frontend
_server.dart.snapshot --sdk-root
/home/mitai/flutter/bin/cache/artifacts/engine/common/flutter_pat
ched_sdk/ --target=flutter --no-print-incremental-dependencies
-DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false
-Ddart.vm.product=false --enable-asserts --track-widget-creation
--packages
/home/mitai/code/billboard/frontend/.dart_tool/package_config.jso
n --output-dill
/home/mitai/code/billboard/frontend/.dart_tool/flutter_build/e12a
a3a0448ee0b97dec0c3a4effc663/app.dill --depfile
/home/mitai/code/billboard/frontend/.dart_tool/flutter_build/e12a
a3a0448ee0b97dec0c3a4effc663/kernel_snapshot.d
package:frontend/main.dart
[ +4 ms] [+45824 ms] kernel_snapshot: Complete
[ ] [+1697 ms] debug_bundle_linux-x64_assets: Starting due
to {}
[ ] [+1629 ms] debug_bundle_linux-x64_assets: Complete
[ ] [+1579 ms] Persisting file store
[ ] [ +28 ms] Done persisting file store
[ ] [ +17 ms] build succeeded.
[ ] [ +29 ms] "flutter assemble" took 66 175ms.
[ +7 ms] [ +269 ms] ensureAnalyticsSent: 255ms
[ ] [ +4 ms] Running shutdown hooks
[ ] [ ] Shutdown hooks complete
[ ] [ +1 ms] exiting with code 0
[+9659 ms] [2/5] Building CXX object
CMakeFiles/frontend.dir/flutter/generated_plugin_registrant.cc.o
[ +641 ms] [3/5] Building CXX object
CMakeFiles/frontend.dir/my_application.cc.o
[+1333 ms] [4/5] Linking CXX executable
intermediates_do_not_run/frontend
[ ] [4/5] Install the project...
[ +415 ms] -- Install configuration: "Debug"
[ +2 ms] -- Installing: /usr/local/frontend
[ +4 ms] CMake Error at cmake_install.cmake:66 (file):
[ +13 ms] file INSTALL cannot copy file
[ ]
"/home/mitai/code/billboard/frontend/build/linux/x64/debug/interm
ediates_do_not_run/frontend"
[ +1 ms] to "/usr/local/frontend": Permission denied.
[ +3 ms] FAILED: CMakeFiles/install.util
[ ] cd
/home/mitai/code/billboard/frontend/build/linux/x64/debug &&
/usr/bin/cmake -P cmake_install.cmake
[ +1 ms] ninja: build stopped: subcommand failed.
[ +58 ms] Building Linux application... (completed in 87,6s)
[ +3 ms] Exception: Build process failed
[ +6 ms] "flutter run" took 89 437ms.
[ +45 ms]
#0 throwToolExit
(package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand
(package:flutter_tools/src/commands/run.dart:663:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:1043:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand
(package:args/command_runner.dart:196:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous
closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:284
:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand
(package:flutter_tools/src/runner/flutter_command_runner.dart:232
:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure>
(package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main
(package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>
[ +263 ms] ensureAnalyticsSent: 253ms
[ +3 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ +1 ms] exiting with code 1
fedora 34
Seems to be broken again. Using flutter and visual studio code via snap. Only for linux desktop build.
[mspehar@delicious ft]$ flutter run -d linux -v
[ +63 ms] executing: uname -m
[ +31 ms] Exit code 0 from: uname -m
[ ] x86_64
[ +5 ms] executing: [/home/mspehar/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +4 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 96bbcd006fafade4ad7a4abde77cec32df6846ea
[ ] executing: [/home/mspehar/snap/flutter/common/flutter/] git tag --points-at 96bbcd006fafade4ad7a4abde77cec32df6846ea
[ +165 ms] Exit code 0 from: git tag --points-at 96bbcd006fafade4ad7a4abde77cec32df6846ea
[ +3 ms] 2.4.0-0.0.pre
[ +7 ms] executing: [/home/mspehar/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/dev
[ ] executing: [/home/mspehar/snap/flutter/common/flutter/] git ls-remote --get-url origin
[ +6 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +87 ms] Unable to locate an Android SDK.
[ +4 ms] executing: [/home/mspehar/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] dev
[ +84 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.
[ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'WindowsUwpEngineArtifacts' 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.
[ +96 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 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +2 ms] 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.
[ +77 ms] Skipping pub get: version match.
[ +176 ms] Initializing file store
[ +8 ms] Skipping target: gen_localizations
[ +10 ms] Skipping target: gen_dart_plugin_registrant
[ +1 ms] Skipping target: _composite
[ +3 ms] complete
[ +6 ms] Launching lib/main.dart on Linux in debug mode...
[ +6 ms] /home/mspehar/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/mspehar/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/mspehar/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.PIHDZJ/flutter_tool.HVGJJX/app.dill --packages /home/mspehar/Projects/ft/.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/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill
--enable-experiment=alternative-invalidation-strategy
[ +29 ms] Building Linux application...
[ +21 ms] <- compile package:ft/main.dart
[ +2 ms] executing: [build/linux/x64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-x64
/home/mspehar/Projects/ft/linux
[ +279 ms] -- The CXX compiler identification is Clang 6.0.0
[ +6 ms] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++
[ +117 ms] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++ -- broken
[ ] -- Configuring incomplete, errors occurred!
[ ] See also "/home/mspehar/Projects/ft/build/linux/x64/debug/CMakeFiles/CMakeOutput.log".
[ ] See also "/home/mspehar/Projects/ft/build/linux/x64/debug/CMakeFiles/CMakeError.log".
[ ] CMake Error at /var/lib/snapd/snap/flutter/91/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45 (message):
[ +3 ms] The C++ compiler
[ ] "/snap/flutter/current/usr/bin/clang++"
[ ] is not able to compile a simple test program.
[ ] It fails with the following output:
[ ] Change Dir: /home/mspehar/Projects/ft/build/linux/x64/debug/CMakeFiles/CMakeTmp
[ ] Run Build Command:"/usr/bin/ninja-build" "cmTC_fe7c1"
[ +6 ms] [1/2] Building CXX object CMakeFiles/cmTC_fe7c1.dir/testCXXCompiler.cxx.o
[ ] [2/2] Linking CXX executable cmTC_fe7c1
[ ] FAILED: cmTC_fe7c1
[ ] : && /snap/flutter/current/usr/bin/clang++ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8
-L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -L/snap/flutter/current/usr/lib/
-L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma
-lpthread -L/snap/flutter/current/usr/lib/ CMakeFiles/cmTC_fe7c1.dir/testCXXCompiler.cxx.o -o cmTC_fe7c1 && :
[ +4 ms] /snap/flutter/current/usr/bin/ld: warning: /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crt1.o: unsupported
GNU_PROPERTY_TYPE (5) type: 0xc0008002
[ +1 ms] /snap/flutter/current/usr/bin/ld: warning: //lib64/libdl.so.2: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
[ ] //lib64/libdl.so.2: undefined reference to `_dl_catch_error_ptr@GLIBC_PRIVATE'
[ ] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ ] ninja: build stopped: subcommand failed.
[ ] CMake will not be able to correctly generate this project.
[ ] Call Stack (most recent call first):
[ ] CMakeLists.txt:2 (project)
[ +20 ms] Building Linux application... (completed in 454ms)
[+7926 ms] Exception: Unable to generate build files
[ +1 ms] "flutter run" took 8,858ms.
[ +5 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:671:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1126:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:196:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>
[ +9 ms] ensureAnalyticsSent: 7ms
[ +1 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1
[mspehar@delicious ft]$ cat /home/mspehar/Projects/ft/build/linux/x64/debug/CMakeFiles/CMakeError.log
Determining if the CXX compiler works failed with the following output:
Change Dir: /home/mspehar/Projects/ft/build/linux/x64/debug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/ninja-build" "cmTC_f2abe"
[1/2] Building CXX object CMakeFiles/cmTC_f2abe.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_f2abe
FAILED: cmTC_f2abe
: && /snap/flutter/current/usr/bin/clang++ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -L/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -L/snap/flutter/current/usr/lib/ CMakeFiles/cmTC_f2abe.dir/testCXXCompiler.cxx.o -o cmTC_f2abe && :
/snap/flutter/current/usr/bin/ld: warning: /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/snap/flutter/current/usr/bin/ld: warning: //lib64/libdl.so.2: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
//lib64/libdl.so.2: undefined reference to `_dl_catch_error_ptr@GLIBC_PRIVATE'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Determining if the CXX compiler works failed with the following output:
Change Dir: /home/mspehar/Projects/ft/build/linux/x64/debug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/ninja-build" "cmTC_0fe06"
[1/2] Building CXX object CMakeFiles/cmTC_0fe06.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_0fe06
FAILED: cmTC_0fe06
: && /snap/flutter/current/usr/bin/clang++ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -L/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -L/snap/flutter/current/usr/lib/ CMakeFiles/cmTC_0fe06.dir/testCXXCompiler.cxx.o -o cmTC_0fe06 && :
/snap/flutter/current/usr/bin/ld: warning: /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/snap/flutter/current/usr/bin/ld: warning: //lib64/libdl.so.2: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
//lib64/libdl.so.2: undefined reference to `_dl_catch_error_ptr@GLIBC_PRIVATE'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Determining if the CXX compiler works failed with the following output:
Change Dir: /home/mspehar/Projects/ft/build/linux/x64/debug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/ninja-build" "cmTC_fe7c1"
[1/2] Building CXX object CMakeFiles/cmTC_fe7c1.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_fe7c1
FAILED: cmTC_fe7c1
: && /snap/flutter/current/usr/bin/clang++ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -L/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -lblkid -lgcrypt -llzma -lpthread -L/snap/flutter/current/usr/lib/ CMakeFiles/cmTC_fe7c1.dir/testCXXCompiler.cxx.o -o cmTC_fe7c1 && :
/snap/flutter/current/usr/bin/ld: warning: /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/snap/flutter/current/usr/bin/ld: warning: //lib64/libdl.so.2: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
//lib64/libdl.so.2: undefined reference to `_dl_catch_error_ptr@GLIBC_PRIVATE'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Hello @MarcusTomlinson how do I update to the latest Flutter snap release? I have installed flutter via snap couple of days ago but still same issue during my linux app build
I installed Flutter and VS Code installed with snap on Fedora, here's my build log:
Verbose run log: https://pastebin.com/c9NTJjig