-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Linker error when building on Linux #214
Comments
Does this persist after |
No, I forgot to say that I found this note in the verbose logs:
I have checked and I have this version of GLIB installed. |
Not sure if that error is related. It seems that Rust is unable to build any binary on your computer. But there is about a million reasons why it could fail so it's hard to say why exactly. Can you try the following:
And post here the output? |
The build fails because of a missing system dependency:
(I have checked and I have the package installed) |
If I'm not entirely sure why the error would not show in the original log though. |
The command failed so I installed |
You shouldn't be installing
|
Have you tried installing |
I get the same error:
When I installed |
can you do |
I still get the same error: flutter run -d linux -v
|
Are you able to run From the full log it seems that cargo is trying to link with |
Yes, it runs without any problems:
|
Actually, that might not mean much :-/ The problem seems to happen when loading the liblto plugin |
I'll see if I can reproduce this with Fedora 38 and Flutter from snap. Both 37 and 38 have way newer glibc version than 2.3.3 so that shouldn't matter. |
There is similar issue discussed here: https://stackoverflow.com/questions/74156104/glibc-2-33-not-found-while-building-flutter-for-linux |
I tried to reinstall Flutter and run the build process again, but I still got the same error:
|
Okay, I think see where the problem is. The flutter snap is shipped with libc-2.31, but the |
Btw, I just published 0.7.0. It will use precompiled libraries if Rust is not available. You can try upgrading your project to 0.7.0 and uninstalling Rust. |
I reported the Flutter issue here: flutter/flutter#137036 |
Another options would be simply not use Flutter from snap. All you need to do is checkout the flutter project and add the |
Moved to flutter-snap: canonical/flutter-snap#109 |
Hello,
I recently wanted to install the super_drag_and_drop package, but after I updated my rust version (
rustc 1.73.0
) and tried to runflutter run
on my Fedora 38 machine, I got those linker errors:When I ran
flutter run -v
to try to get more information, I just got this:Here's my
flutter doctor -v
:I am building for Linux, Windows and MacOS.
The text was updated successfully, but these errors were encountered: