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 fails on fedora #48

Closed
mispp opened this issue Jul 9, 2021 · 9 comments
Closed

build fails on fedora #48

mispp opened this issue Jul 9, 2021 · 9 comments

Comments

@mispp
Copy link

mispp commented Jul 9, 2021

Flutter doctor

[mspehar@delicious ft]$ flutter doctor -v
[✓] Flutter (Channel beta, 2.3.0-24.1.pre, on Fedora 34 (Workstation Edition) 5.12.14-300.fc34.x86_64, locale en_US.UTF-8)
    • Flutter version 2.3.0-24.1.pre at /home/mspehar/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 615957513e (2 weeks ago), 2021-06-25 09:24:44 -0700
    • Engine revision 9d517f475b
    • Dart version 2.14.0 (build 2.14.0-188.5.beta)

[✓] Linux toolchain - develop for Linux desktop
    • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    • cmake version 3.10.2
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[✓] VS Code
    • VS Code at /snap/code/current
    • Flutter extension version 3.24.0

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Fedora 34 (Workstation Edition) 5.12.14-300.fc34.x86_64

• No issues found!


[mspehar@delicious ft]$ flutter build linux

💪 Building with sound null safety 💪

CMake Error at /var/lib/snapd/snap/flutter/91/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/mspehar/Projects/ft/build/linux/x64/release/CMakeFiles/CMakeTmp

    Run Build Command:"/usr/bin/ninja-build" "cmTC_06fa2"
    [1/2] Building CXX object CMakeFiles/cmTC_06fa2.dir/testCXXCompiler.cxx.o
    [2/2] Linking CXX executable cmTC_06fa2
    FAILED: cmTC_06fa2 
    : && /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_06fa2.dir/testCXXCompiler.cxx.o  -o cmTC_06fa2   && :
    /snap/flutter/current/usr/bin/ld: warning: /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
    /snap/flutter/current/usr/bin/ld: warning: //lib64/libdl.so.2: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
    //lib64/libdl.so.2: undefined reference to `_dl_catch_error_ptr@GLIBC_PRIVATE'
    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


Verbose log:
https://paste.centos.org/view/d935c01c

Probably continuation of #32

@ademar111190
Copy link

I have the same bug on Open Suse:

snap info flutter
name:      flutter
summary:   Flutter SDK
publisher: Flutter Team✓
store-url: https://snapcraft.io/flutter
contact:   https://github.com/flutter/flutter/issues
license:   unset
description: |
  Flutter is Google’s UI toolkit for building beautiful, natively compiled
  applications for mobile, web, and desktop from a single codebase.
commands:
  - flutter.dart
  - flutter
  - flutter.openurl
snap-id:      YO0Adf4fqgxL7i3SaCn00oxEfd5CNQ63
tracking:     latest/stable
refresh-date: yesterday at 15:36 -03
channels:
  latest/stable:    0+git.e75662a 2021-06-18 (91) 207MB classic
  latest/candidate: ↑
  latest/beta:      ↑
  latest/edge:      0+git.e75662a 2021-06-18 (91) 207MB classic
installed:          0+git.e75662a            (91) 207MB classic
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.1, on Linux, locale en_US.UTF-8)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (1 available)

! Doctor found issues in 3 categories.
flutter run -d linux
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
CMake Error at /snap/flutter/91/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/ademar/Workspace/flutter-method-channel-sample/build/linux/x64/debug/CMakeFiles/CMakeTmp



    Run Build Command:"/snap/flutter/current/usr/bin/ninja" "cmTC_5b368"

    [1/2] Building CXX object CMakeFiles/cmTC_5b368.dir/testCXXCompiler.cxx.o

    [2/2] Linking CXX executable cmTC_5b368

    FAILED: cmTC_5b368

    : && /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_5b368.dir/testCXXCompiler.cxx.o  -o cmTC_5b368   && :

    /snap/flutter/current/usr/bin/ld: cannot find crt1.o: No such file or directory

    /snap/flutter/current/usr/bin/ld: cannot find crti.o: No such file or directory

    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)




Exception: Unable to generate build files
neofetch
                                     ......            ademar@susao
     .,cdxxxoc,.               .:kKMMMNWMMMNk:.        ------------
    cKMMN0OOOKWMMXo. ;        ;0MWk:.      .:OMMk.     OS: openSUSE Tumbleweed x86_64
  ;WMK;.       .lKMMNM,     :NMK,             .OMW;    Host: Inspiron 3421
 cMW;            'WMMMN   ,XMK,                 oMM'   Kernel: 5.13.2-1-default
.MMc               ..;l. xMN:                    KM0   Uptime: 1 day, 2 hours, 42 mins
'MM.                   'NMO                      oMM   Packages: 2303 (rpm), 9 (flatpak), 11 (snap)
.MM,                 .kMMl                       xMN   Shell: zsh 5.8
 KM0               .kMM0. .dl:,..               .WMd   Resolution: 1366x768
 .XM0.           ,OMMK,    OMMMK.              .XMK    DE: Plasma
   oWMO:.    .;xNMMk,       NNNMKl.          .xWMx     WM: KWin
     :ONMMNXMMMKx;          .  ,xNMWKkxllox0NMWk,      Theme: Breeze Dark [Plasma], Breeze [GTK2/3]
         .....                    .:dOOXXKOxl,         Icons: [Plasma], breeze-dark [GTK2/3]
                                                       Terminal: alacritty
                                                       CPU: Intel i3-3227U (4) @ 1.900GHz
                                                       GPU: Intel 3rd Gen Core processor Graphics Controller
                                                       Memory: 3167MiB / 7841MiB





@jpnurmi
Copy link
Contributor

jpnurmi commented Aug 2, 2021

Same on Impish (daily canary 20210801):

/lib/x86_64-linux-gnu/libdl.so.2: undefined reference to `_dl_catch_error_ptr@GLIBC_PRIVATE

snap info flutter
name:      flutter
summary:   Flutter SDK
publisher: Flutter Team\u2713
store-url: https://snapcraft.io/flutter
contact:   https://github.com/flutter/flutter/issues
license:   unset
description: |
  Flutter is Google\u2019s UI toolkit for building beautiful, natively compiled
  applications for mobile, web, and desktop from a single codebase.
commands:
  - flutter.dart
  - flutter
  - flutter.openurl
snap-id:      YO0Adf4fqgxL7i3SaCn00oxEfd5CNQ63
tracking:     latest/stable
refresh-date: today at 07:03 UTC
channels:
  latest/stable:    0+git.e75662a 2021-06-18 (91) 207MB classic
  latest/candidate: \u2191                                   
  latest/beta:      \u2191                                   
  latest/edge:      0+git.e75662a 2021-06-18 (91) 207MB classic
installed:          0+git.e75662a            (91) 207MB classi
flutter doctor -v (the channel doesn't make a difference)
[\u2713] Flutter (Channel master, 2.5.0-2.0.pre.113, on Ubuntu Impish Indri (development branch) 5.11.0-20-generic, locale C.UTF-8)
    \u2022 Flutter version 2.5.0-2.0.pre.113 at /home/jpnurmi/snap/flutter/common/flutter
    \u2022 Upstream repository https://github.com/flutter/flutter.git
    \u2022 Framework revision 0abf02f855 (2 days ago), 2021-07-30 17:44:02 -0700
    \u2022 Engine revision 29f9df723f
    \u2022 Dart version 2.14.0 (build 2.14.0-368.0.dev)

[\u2717] Android toolchain - develop for Android devices
    \u2717 Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[\u2717] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[\u2713] Linux toolchain - develop for Linux desktop
    \u2022 clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    \u2022 cmake version 3.10.2
    \u2022 ninja version 1.8.2
    \u2022 pkg-config version 0.29.1

[!] Android Studio (not installed)
    \u2022 Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[\u2713] Connected device (1 available)
    \u2022 Linux (desktop) \u2022 linux \u2022 linux-x64 \u2022 Ubuntu Impish Indri (development branch) 5.11.0-20-generic

! Doctor found issues in 3 categories.
flutter run -v

[ +15 ms] Building Linux application...
[ +17 ms] <- compile package:ubuntu_desktop_installer/main.dart
[ +1 ms] executing: [build/linux/x64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-x64
/home/jpnurmi/Projects/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/linux
[ +96 ms] -- The CXX compiler identification is Clang 6.0.0
[ +2 ms] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++
[ +67 ms] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++ -- broken
[ +1 ms] CMake Error at /snap/flutter/91/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45 (message):
[ +2 ms] 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/jpnurmi/Projects/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/build/linux/x64/debug/CMakeFiles/CMakeTmp
[ ] Run Build Command:"/snap/flutter/current/usr/bin/ninja" "cmTC_8a69f"
[ ] [1/2] Building CXX object CMakeFiles/cmTC_8a69f.dir/testCXXCompiler.cxx.o
[ ] [2/2] Linking CXX executable cmTC_8a69f
[ ] FAILED: cmTC_8a69f
[ ] : && /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_8a69f.dir/testCXXCompiler.cxx.o -o cmTC_8a69f && :
[ ] /snap/flutter/current/usr/bin/ld: warning: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crt1.o:
unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
[ ] /snap/flutter/current/usr/bin/ld: warning: //lib/x86_64-linux-gnu/libdl.so.2: unsupported GNU_PROPERTY_TYPE (5) type:
0xc0008002
[ ] //lib/x86_64-linux-gnu/libdl.so.2: undefined reference to `_dl_catch_error_ptr@GLIBC_PRIVATE'
[ ] 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)
[ ] -- Configuring incomplete, errors occurred!
[ ] See also
"/home/jpnurmi/Projects/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/build/linux/x64/debug/CMakeFiles/CMakeOutput.log".
[ ] See also
"/home/jpnurmi/Projects/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/build/linux/x64/debug/CMakeFiles/CMakeError.log".
[ +15 ms] Building Linux application... (completed in 200ms)
[+8948 ms] Exception: Unable to generate build files

CMakeOutput.log
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /snap/flutter/current/usr/bin/clang++ 
Build flags: 
Id flags:  

The output was:
0
/snap/flutter/current/usr/bin/ld: warning: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/snap/flutter/current/usr/bin/ld: warning: /lib/x86_64-linux-gnu/libm.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/snap/flutter/current/usr/bin/ld: warning: /lib/x86_64-linux-gnu/libmvec.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/snap/flutter/current/usr/bin/ld: warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is Clang, found in "/home/jpnurmi/Projects/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/build/linux/x64/debug/CMakeFiles/3.10.2/CompilerIdCXX/a.out"
👉 CMakeError.log 👈
Determining if the CXX compiler works failed with the following output:
Change Dir: /home/jpnurmi/Projects/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/build/linux/x64/debug/CMakeFiles/CMakeTmp

Run Build Command:"/snap/flutter/current/usr/bin/ninja" "cmTC_33965"
[1/2] Building CXX object CMakeFiles/cmTC_33965.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_33965
FAILED: cmTC_33965 
: && /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_33965.dir/testCXXCompiler.cxx.o  -o cmTC_33965   && :
/snap/flutter/current/usr/bin/ld: warning: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/snap/flutter/current/usr/bin/ld: warning: //lib/x86_64-linux-gnu/libdl.so.2: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
//lib/x86_64-linux-gnu/libdl.so.2: undefined reference to `_dl_catch_error_ptr@GLIBC_PRIVATE'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
neofetch
            .-/+oossssoo+/-.               jpnurmi@impish 
        `:+ssssssssssssssssss+:`           -------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu Impish Indri (development branch) x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: KVM/QEMU (Standard PC (Q35 + ICH9, 2009) pc-q35-5.2) 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.11.0-20-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 18 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 1845 (dpkg), 9 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.1.8 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1684x1366 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 40.2 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: 11th Gen Intel i7-1185G7 (8) @ 2.995GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: 00:01.0 Red Hat, Inc. QXL paravirtual graphic card 
      -+sssssssssssssssssyyyssss+-         Memory: 923MiB / 3925MiB 
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.                                       

@MarcusTomlinson
Copy link
Contributor

@mispp @ademar111190 @jpnurmi, could you please try the snap from edge and let me know if the issue is now resolved:

snap refresh flutter --edge

@jpnurmi
Copy link
Contributor

jpnurmi commented Aug 12, 2021

@MarcusTomlinson Still no joy but there's clearly progress because the error looks a bit different :)

[   +6 ms] Building Linux application...
[  +18 ms] executing: [build/linux/x64/release/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DFLUTTER_TARGET_PLATFORM=linux-x64 /home/jpnurmi/Temp/hello_world/linux
[  +81 ms] -- The CXX compiler identification is Clang 6.0.0
[        ] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++
[  +61 ms] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++ -- broken
[   +1 ms] CMake Error at /snap/flutter/93/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45 (message):
[   +1 ms]   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/jpnurmi/Temp/hello_world/build/linux/x64/release/CMakeFiles/CMakeTmp
[        ]     Run Build Command:"/snap/flutter/current/usr/bin/ninja" "cmTC_b46b2"
[        ]     [1/2] Building CXX object CMakeFiles/cmTC_b46b2.dir/testCXXCompiler.cxx.o
[        ]     [2/2] Linking CXX executable cmTC_b46b2
[        ]     FAILED: cmTC_b46b2 
[        ]     : && /snap/flutter/current/usr/bin/clang++    -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/lib/x86_64-linux-gnu
-L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -lblkid -lgcrypt -llzma -lpthread -lrt -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8
-L/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -lblkid -lgcrypt -llzma -lpthread -lrt
CMakeFiles/cmTC_b46b2.dir/testCXXCompiler.cxx.o  -o cmTC_b46b2   && :
[   +2 ms]     /snap/flutter/current/usr/bin/ld: warning: /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
[        ]     /snap/flutter/current/usr/bin/ld: warning: /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
[        ]     /snap/flutter/current/usr/bin/ld: warning: //lib/x86_64-linux-gnu/libdl.so.2: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
[        ]     /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: undefined reference to `pthread_sigmask@GLIBC_2.32'
[        ]     /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: undefined reference to `__pthread_attr_setsigmask_internal@GLIBC_PRIVATE'
[        ]     /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: undefined reference to `__futex_abstimed_wait_cancelable64@GLIBC_PRIVATE'
[        ]     /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: undefined reference to `__futex_abstimed_wait64@GLIBC_PRIVATE'
[        ]     //lib/x86_64-linux-gnu/libdl.so.2: undefined reference to `_dl_catch_error_ptr@GLIBC_PRIVATE'
[        ]     /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: undefined reference to `__pthread_attr_copy@GLIBC_PRIVATE'
[        ]     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)
[        ] -- Configuring incomplete, errors occurred!
[        ] See also "/home/jpnurmi/Temp/hello_world/build/linux/x64/release/CMakeFiles/CMakeOutput.log".
[        ] See also "/home/jpnurmi/Temp/hello_world/build/linux/x64/release/CMakeFiles/CMakeError.log".

@jpnurmi
Copy link
Contributor

jpnurmi commented Aug 12, 2021

FWIW, I had already thrown away the image I used previously. This was on a fresh canary 20210811 installation.

@MarcusTomlinson
Copy link
Contributor

@jpnurmi could you try rm -rf build/ && flutter run -v

@jpnurmi
Copy link
Contributor

jpnurmi commented Aug 12, 2021

Here's the full output:

$ rm -rf build/ && flutter run -v
[  +44 ms] executing: uname -m
[  +20 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +5 ms] executing: [/home/jpnurmi/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +6 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 0f465e5b2a3ed2431321b490a614c3d15089854c
[        ] executing: [/home/jpnurmi/snap/flutter/common/flutter/] git tag --points-at 0f465e5b2a3ed2431321b490a614c3d15089854c
[  +10 ms] Exit code 0 from: git tag --points-at 0f465e5b2a3ed2431321b490a614c3d15089854c
[        ] 2.5.0-5.0.pre
[   +9 ms] executing: [/home/jpnurmi/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/dev
[        ] executing: [/home/jpnurmi/snap/flutter/common/flutter/] git ls-remote --get-url origin
[   +3 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +60 ms] Unable to locate an Android SDK.
[   +2 ms] executing: [/home/jpnurmi/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] dev
[  +45 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +55 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +56 ms] Skipping pub get: version match.
[ +115 ms] Initializing file store
[   +6 ms] Skipping target: gen_localizations
[   +3 ms] Skipping target: gen_dart_plugin_registrant
[        ] _composite: Starting due to {}
[        ] _composite: Complete
[   +1 ms] complete
[   +5 ms] Launching lib/main.dart on Linux in debug mode...
[   +6 ms] /home/jpnurmi/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/jpnurmi/snap/flutter/common/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/jpnurmi/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.JPJWSW/flutter_tool.UQYSFI/app.dill --packages
/home/jpnurmi/Temp/hello_world/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme
org-dartlang-root --initialize-from-dill build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[  +29 ms] Building Linux application...
[  +21 ms] <- compile package:hello_world/main.dart
[  +14 ms] executing: [build/linux/x64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-x64 /home/jpnurmi/Temp/hello_world/linux
[  +77 ms] -- The CXX compiler identification is Clang 6.0.0
[   +1 ms] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++
[  +62 ms] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++ -- broken
[   +1 ms] CMake Error at /snap/flutter/93/usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45 (message):
[   +1 ms]   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/jpnurmi/Temp/hello_world/build/linux/x64/debug/CMakeFiles/CMakeTmp
[        ]     Run Build Command:"/snap/flutter/current/usr/bin/ninja" "cmTC_9ff37"
[        ]     [1/2] Building CXX object CMakeFiles/cmTC_9ff37.dir/testCXXCompiler.cxx.o
[        ]     [2/2] Linking CXX executable cmTC_9ff37
[        ]     FAILED: cmTC_9ff37 
[        ]     : && /snap/flutter/current/usr/bin/clang++    -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8 -L/lib/x86_64-linux-gnu
-L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -lblkid -lgcrypt -llzma -lpthread -lrt -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/8
-L/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -lblkid -lgcrypt -llzma -lpthread -lrt
CMakeFiles/cmTC_9ff37.dir/testCXXCompiler.cxx.o  -o cmTC_9ff37   && :
[        ]     /snap/flutter/current/usr/bin/ld: warning: /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
[        ]     /snap/flutter/current/usr/bin/ld: warning: /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
[        ]     /snap/flutter/current/usr/bin/ld: warning: //lib/x86_64-linux-gnu/libdl.so.2: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
[        ]     /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: undefined reference to `pthread_sigmask@GLIBC_2.32'
[        ]     /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: undefined reference to `__pthread_attr_setsigmask_internal@GLIBC_PRIVATE'
[        ]     /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: undefined reference to `__futex_abstimed_wait_cancelable64@GLIBC_PRIVATE'
[        ]     /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: undefined reference to `__futex_abstimed_wait64@GLIBC_PRIVATE'
[        ]     //lib/x86_64-linux-gnu/libdl.so.2: undefined reference to `_dl_catch_error_ptr@GLIBC_PRIVATE'
[        ]     /snap/flutter/current/usr/lib/x86_64-linux-gnu/librt.so: undefined reference to `__pthread_attr_copy@GLIBC_PRIVATE'
[        ]     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)
[        ] -- Configuring incomplete, errors occurred!
[        ] See also "/home/jpnurmi/Temp/hello_world/build/linux/x64/debug/CMakeFiles/CMakeOutput.log".
[        ] See also "/home/jpnurmi/Temp/hello_world/build/linux/x64/debug/CMakeFiles/CMakeError.log".
[   +9 ms] Building Linux application... (completed in 184ms)
[+5140 ms] Exception: Unable to generate build files
[        ] "flutter run" took 5,641ms.
[   +5 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:669:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1125:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:92:3)
           <asynchronous suspension>
           
           
[  +27 ms] ensureAnalyticsSent: 25ms
[        ] Running shutdown hooks
[   +3 ms] Shutdown hooks complete
[        ] exiting with code 1

@kenvandine
Copy link
Collaborator

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.

@kenvandine
Copy link
Collaborator

This should be fixed with revision 101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants