Skip to content
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

Build Linux fails on Open Suse Tumbleweed - Fails to link cmTC_698b8 #60

Open
JoshuaNitschke opened this issue Dec 5, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@JoshuaNitschke
Copy link

JoshuaNitschke commented Dec 5, 2021

This is splitting from issue #45 (comment)
Please let me know if you need more info.

~/Desktop/flutter-test 
❯ flutter create testcase

~/Desktop/flutter-test 
❯ cd testcase

Desktop/flutter-test/testcase via 🎯 v2.14.4 
❯ flutter build linux

💪 Building with sound null safety 💪

CMake Error at /snap/flutter/111/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/joshua-admin/Desktop/flutter-test/testcase/build/linux/x64/release/CMakeFiles/CMakeTmp

    Run Build Command:"/snap/flutter/current/usr/bin/ninja" "cmTC_698b8"
    [1/2] Building CXX object CMakeFiles/cmTC_698b8.dir/testCXXCompiler.cxx.o
    [2/2] Linking CXX executable cmTC_698b8
    FAILED: cmTC_698b8 
    : && /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 -ldl -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 -ldl -L/snap/flutter/current/usr/lib/ CMakeFiles/cmTC_698b8.dir/testCXXCompiler.cxx.o  -o cmTC_698b8   && :
    /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
    /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
    /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
    /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
    /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
    /snap/flutter/current/usr/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crti.o: unable to initialize decompress status for section .debug_line
    /snap/flutter/current/usr/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crti.o: unable to initialize decompress status for section .debug_line
    /usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/crti.o: file not recognized: File format not recognized
    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)


Building Linux application...                                           
Unable to generate build files

OS Details:

Desktop/flutter-test/testcase via 🎯 v2.14.4 
❯ cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20211202"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20211202"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20211202"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
Desktop/flutter-test/testcase via 🎯 v2.14.4 
❯ snap version
snap                 2.53.2-1.16
snapd                2.53.2-1.16
series               16
opensuse-tumbleweed  20211202
kernel               5.15.5-1-default
Desktop/flutter-test/testcase via 🎯 v2.14.4 
❯ snap list
Name               Version          Rev    Tracking       Publisher         Notes
flutter            0+git.671983f    111    latest/stable  flutter-team✓     classic
@kenvandine kenvandine self-assigned this Dec 6, 2021
@kenvandine kenvandine added the bug Something isn't working label Dec 6, 2021
@Silfalion
Copy link

This answer solved it for me so far:

https://stackoverflow.com/a/69430293/8568263

@pvutov
Copy link

pvutov commented May 12, 2022

Same problem on ArchLinux with snap-installed flutter.

Flutter 3.0.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ee4e09cce0 (3 days ago) • 2022-05-09 16:45:18 -0700
Engine • revision d1b9a6938a
Tools • Dart 2.17.0 • DevTools 2.12.2

Installing clang on the system fixed it, thanks for the tip @Silfalion . Seems strange to need it with a snap package, but I'll take the win ¯\_ (ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants