-
Notifications
You must be signed in to change notification settings - Fork 8
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 build error CMake Error #45
Comments
Hi @shophk, could you tell me what distro and version you're running into this on? |
I also got this issue on fedora 34. @MarcusTomlinson |
Hi, same problem for me on Fedora 34 with flutter from snap. |
I'm seeing something similar on impish CMake Error at /snap/flutter/91/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45 (message):
is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. |
@shophk @Rashik4567 @gmstyle @kenvandine could you please try the snap from edge and let me know if the issue is now resolved:
|
@MarcusTomlinson Does not work for me :/ (Fedora 34 too) |
Please try refresh again. Thanks. |
The flutter snap in the edge channel should fix this. I've confirmed it on impish, 20.04, fedora 32 and fedora 34. Please let me know if able to still reproduce it. |
I had the same error on Fedora 34 and got it working by
|
This should be fixed with revision 101 |
Hey! I have tried the edge version of flutter and also did a flutter upgrade but I am still facing the issue in fedora 35. My app gives the following output:
I am on flutter revison 101. Could it be possible the issue is due to something else? Edit: Attached the complete error file. |
same error here also in fedora 35 and edge version |
Still getting this error. I am using openSUSE Tumbleweed, tried edge version and above steps no joy.
|
@MarcusTomlinson I'm having the same issue as @diysumit - I'm also on Tumbleweed. |
I am have this issue also and I am a little bit wondered why a issue is so fast closed... Flutter (Channel stable, 2.5.3, on Fedora Linux 35 (Workstation Edition) 5.14.18-300.fc35.x86_64, locale de_DE.UTF-8) |
+1 I don't face this issue on flutter from tar file. Only happens on the snap. |
Are we not going to reopen this @kenvandine ? |
The more recent comments here are different than the original report. Are you seeing this error: snap/flutter/current/usr/lib/x86_64-linux-gnu/libgcrypt.so: undefined reference to `gpgrt_get_syscall_clamp@GPG_ERROR_1.0' If not, please open a new issue. We should have updated the title of the original report to be more specific. I was able to reproduce that issue on fedora 34 and 35, then confirmed the fix for the libgcrypt issue. Please open a new issue, with as many specifics as you can, including distro and version. Also please try to reproduce it with a fresh project. $ flutter create testcase Thanks |
@kenvandine - you are correct. I have made a new issue: #60 |
I am facing the same problem on Ubuntu 22.04 using Android Studio Bumblebee 2021.1.1 Patch 1.
Note: Using the flutter snap from Gnome store. |
im running arch , facing the same issue
|
Same error here on Ubuntu 22.04 `CMake Error at /snap/flutter/111/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45 (message):
is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. |
Same issue with Ubuntu 22.04 using Android Studio Bumblebee Launching lib/main.dart on Linux in debug mode... "/snap/flutter/current/usr/bin/clang++" is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. Building Linux application... |
I use Ubuntu 22.04 LTS and android studio Chipmunk. My problem was gone after I followed this @pkarakal suggestion. |
Installing missing tools fixed it for me. See "Update your tools with the SDK Manager" https://developer.android.com/studio/intro/update#sdk-manager |
No arch linux eu tive o mesmo erro. flutter 3.0.0 |
CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message):
is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. Building Linux application... adarsh@pop-os:~/Desktop/learning/test_flutter$ flutter doctor -v [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Chrome - develop for the web [✓] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.73.1) [✓] Connected device (2 available) [✓] HTTP Host Availability • No issues found! I having same issue using flutter from git with flutter channel stable |
I'm having the same issue as adarshmaharjan and it seems that we are both having it on PopOS so it might be related. I've updated both Flutter and PopOS since last succesful build, so it's not clear which one might be responsible for the issue |
I've tried this on both 22.10 and 22.04, and haven't been able to reproduce it. Based on the comment from @adarshmaharjan, who reproduced this outside of the flutter snap, it's clearly not a snap specific issue. |
The same thing with me |
@hansmboron, @adarshmaharjan, this issue can be solved by installing new dependency (more details here). Though indeed, this issue isn't related to the snap version of futter. |
Flutter doctor did not indicate any issues.
Running: flutter run -d linux
I get the following:
CMake Error at /snap/flutter/81/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45 (message):
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/work/AndroidStudioProjects/myapp/build/linux/x64/debug/CMakeFiles/CMakeTmp
Run Build Command:"/snap/flutter/current/usr/bin/ninja" "cmTC_0475b"
[1/2] Building CXX object CMakeFiles/cmTC_0475b.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_0475b
FAILED: cmTC_0475b
: && /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_0475b.dir/testCXXCompiler.cxx.o -o cmTC_0475b && :
/snap/flutter/current/usr/lib/x86_64-linux-gnu/libgcrypt.so: undefined reference to `gpgrt_get_syscall_clamp@GPG_ERROR_1.0'
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)
The text was updated successfully, but these errors were encountered: