Skip to content

build failure on linux & windows with crashpad enabled #1442

@robertosw

Description

@robertosw

Platform

Flutter Desktop Linux

Obfuscation

Enabled

Debug Info

Enabled

Doctor

I have checked out a specific tag in the flutter repo. Thats why the following warnings appear. This has never been a problem.

[!] Flutter (Channel [user-branch], 3.32.5, on openSUSE Leap 16.0 6.12.0-160000.5-default, locale de_DE.UTF-8) [170ms]
    ! Flutter version 3.32.5 on channel [user-branch] at /home/robert/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision fcf2c11572 (vor 4 Monaten), 2025-06-24 11:44:07 -0700
    • Engine revision dd93de6fb1
    • Dart version 3.8.1
    • DevTools version 2.45.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [2,5s]
    • Android SDK at /home/robert/Android/Sdk
    • Platform android-36, build-tools 36.1.0
    • Java binary at: /home/robert/.local/share/JetBrains/Toolbox/apps/android-studio/jbr/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Chrome - develop for the web [91ms]
    • CHROME_EXECUTABLE = /usr/bin/chromium

[✓] Linux toolchain - develop for Linux desktop [279ms]
    • clang version 19.1.7
    • cmake version 3.31.7
    • ninja version 1.12.1
    • pkg-config version 2.2.0
    • OpenGL core renderer: AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 19.1.7, DRM 3.61, 6.12.0-160000.5-default)
    • OpenGL core version: 4.6 (Core Profile) Mesa 24.3.3
    • OpenGL core shading language version: 4.60
    • OpenGL ES renderer: AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 19.1.7, DRM 3.61, 6.12.0-160000.5-default)
    • OpenGL ES version: OpenGL ES 3.2 Mesa 24.3.3
    • OpenGL ES shading language version: OpenGL ES GLSL ES 3.20
    • GL_EXT_framebuffer_blit: yes
    • GL_EXT_texture_format_BGRA8888: yes

[✓] Android Studio (version 2025.2.1) [89ms]
    • Android Studio at /home/robert/.local/share/JetBrains/Toolbox/apps/android-studio
    • 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 21.0.8+-14196175-b1038.72)

[✓] IntelliJ IDEA Ultimate Edition (version 2025.2) [88ms]
    • IntelliJ at /home/robert/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate
    • Flutter plugin version 88.0.0
    • Dart plugin version 252.25557.23

[✓] Connected device (2 available) [104ms]
    • Linux (desktop) • linux  • linux-x64      • openSUSE Leap 16.0 6.12.0-160000.5-default
    • Chrome (web)    • chrome • web-javascript • Chromium 141.0.7390.122 stable

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

Version

9.1.0

Steps to Reproduce

  • Add sentry_flutter as a dependency
  • Use in code (e.g. Sentry.captureException(..))
  • Build Linux Desktop
  • Error about missing JVM, JAVA_HOME, etc.
  • Install open-jdk-21-dev
  • Build Linux Desktop again (previous errors not shown anymore)
  • Unable to build because of mentioned error

Expected Result

Building for linux desktop continues to work

Actual Result

Launching lib/main.dart on Linux in debug mode...
Building Linux application...
/usr/bin/ld: warning: crashpad_info_note.S.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: warning: crashpad_info_note.S.o: missing .note.GNU-stack section implies executable stack
✓ Built build/linux/x64/debug/bundle/client
/home/robert/.../client/build/linux/x64/debug/bundle/client: error while loading shared libraries: libsentry.so: cannot enable executable stack as shared object requires: Permission denied
Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
Error launching application on Linux.

Are you willing to submit a PR?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions