super_native_extensions: Linker error when building on Linux

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 run flutter run on my Fedora 38 machine, I got those linker errors:

Launching lib/main.dart on Linux in debug mode...
error: linking with `cc` failed: exit status: 1
          collect2: error: ld returned 1 exit status
error: could not compile `log` (build script) due to previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit status: 1
          collect2: error: ld returned 1 exit status
error: could not compile `semver` (build script) due to previous error
error: linking with `cc` failed: exit status: 1
          collect2: error: ld returned 1 exit status
error: could not compile `anyhow` (build script) due to previous error
Building Linux application...                                           
Exception: Build process failed

When I ran flutter run -v to try to get more information, I just got this:

[ +210 ms] [1/15] Generating libsuper_native_extensions.so, _phony_
[        ] FAILED: plugins/super_native_extensions/libsuper_native_extensions.so plugins/super_native_extensions/_phony_ 
[  +29 ms] cd /home/theskyblockman/Developement/flutter/explainomia/build/linux/x64/debug/plugins/super_native_extensions && /var/lib/snapd/snap/flutter/141/usr/bin/cmake -E env
CARGOKIT_CMAKE=/var/lib/snapd/snap/flutter/141/usr/bin/cmake CARGOKIT_CONFIGURATION=Debug
CARGOKIT_MANIFEST_DIR=/home/theskyblockman/Developement/flutter/explainomia/linux/flutter/ephemeral/.plugin_symlinks/super_native_extensions/linux/../rust CARGOKIT_LIB_NAME=super_native_extensions
CARGOKIT_BUILD_DIR=/home/theskyblockman/Developement/flutter/explainomia/build/linux/x64/debug/plugins/super_native_extensions/cargokit_build
CARGOKIT_TARGET_DIR=/home/theskyblockman/Developement/flutter/explainomia/build/linux/x64/debug/plugins/super_native_extensions CARGOKIT_TARGET_PLATFORM=linux-x64
CARGOKIT_TOOL_TEMP_DIR=/home/theskyblockman/Developement/flutter/explainomia/build/linux/x64/debug/plugins/super_native_extensions/cargokit_build/tool
/home/theskyblockman/Developement/flutter/explainomia/linux/flutter/ephemeral/.plugin_symlinks/super_native_extensions/cargokit/cmake/../run_rust_tool.sh build_cmake

Here’s my flutter doctor -v:

[✓] Flutter (Channel beta, 3.16.0-0.2.pre, on Fedora Linux 38 (KDE Plasma) 6.5.5-200.fc38.x86_64, locale fr_FR.UTF-8)
    • Flutter version 3.16.0-0.2.pre on channel beta at /home/theskyblockman/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fe6553b689 (il y a 10 jours), 2023-10-11 19:07:11 -0700
    • Engine revision 249cc9b86c
    • Dart version 3.2.0 (build 3.2.0-210.2.beta)
    • DevTools version 2.28.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /home/theskyblockman/Android/Sdk/
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /home/theskyblockman/.local/share/JetBrains/Toolbox/apps/android-studio/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[✓] Android Studio (version 2022.3)
    • Android Studio at /home/theskyblockman/.local/share/JetBrains/Toolbox/apps/android-studio
    • Flutter plugin version 75.1.2
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)
    • IntelliJ at /home/theskyblockman/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate
    • Flutter plugin version 75.1.4
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Community Edition (version 2023.2)
    • IntelliJ at /home/theskyblockman/.local/share/JetBrains/Toolbox/apps/intellij-idea-community-edition
    • Flutter plugin version 75.1.4
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version unknown)
    • VS Code at /snap/code/current
    • Flutter extension version 3.72.0
    ✗ Unable to determine VS Code version.

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Fedora Linux 38 (KDE Plasma) 6.5.5-200.fc38.x86_64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 117.0.5938.149

[✓] Network resources
    • All expected network resources are available.

• No issues found!

I am building for Linux, Windows and MacOS.

About this issue

  • Original URL
  • State: open
  • Created 8 months ago
  • Comments: 22

Most upvoted comments

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.