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

Linux Desktop build fails due to linker #362

Open
jogehl opened this issue Feb 6, 2022 · 5 comments
Open

Linux Desktop build fails due to linker #362

jogehl opened this issue Feb 6, 2022 · 5 comments

Comments

@jogehl
Copy link

jogehl commented Feb 6, 2022

Hi, when adding the package to the pubspec.yaml file I get the following error:
/snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtbeginS.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtbeginS.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib/libjsoncpp.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib/libjsoncpp.so: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtendS.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtendS.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crtn.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crtn.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtbegin.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtbegin.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libgcc_s.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtend.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtend.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crtn.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crtn.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: //lib64/libgpg-error.so.0: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: //lib64/libgpg-error.so.0: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: //lib64/libjsoncpp.so.25: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: //lib64/libjsoncpp.so.25: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /snap/flutter/current/usr/bin/ld: warning: //lib64/liblz4.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /snap/flutter/current/usr/bin/ld: warning: //lib64/liblz4.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 clang: error: linker command failed with exit code 1 (use -v to see invocation) Exception: Build process failed

Is there a way to fix this? I am working on manjaro and have installed libsecret and libjsoncpp.
Greetings!

@ThraaxSession
Copy link

ThraaxSession commented Mar 26, 2022

I've got a similar issue (PopOs 21.10)
There is no libjsoncpp1
sudo apt install libsecret-1-0 libsecret-1-dev libjsoncpp-dev

image

/snap/flutter/current/usr/lib/x86_64-linux-gnu/libgio-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgobject-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libglib-2.0.so && :
[        ] /snap/flutter/current/usr/bin/ld: warning: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
[        ] //lib/x86_64-linux-gnu/libjsoncpp.so.24: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
[        ] //lib/x86_64-linux-gnu/libjsoncpp.so.24: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()@GLIBCXX_3.4.26'
[        ] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[        ] ninja: build stopped: subcommand failed.
[   +6 ms] Building Linux application... (completed in 11,4s)
[        ] Exception: Build process failed
[        ] "flutter run" took 11.828ms.
[   +2 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:687:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161: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:281: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:229: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:94:3)
           <asynchronous suspension>

@edeuss
Copy link

edeuss commented Jun 12, 2022

Also running into this issue, added all the required dependencies.

@johanhenselmans
Copy link

Me too. Perhaps the snap libglib is out of date? I noticed the glib of ubuntu 22.04 is libglib-2.0.so.0.7200.1, the one used in the snap is libglib-2.0.so.0.5600.4

@johanhenselmans
Copy link

Please look at #314, has to do with snap install of flutter. Manual install of flutter will work.

@spinus
Copy link

spinus commented May 5, 2023

Not first time I see snap generating this kind of issues. Anyway, seems like this is not library problem, but OS issue to deliver dependencies, IMHO that should be closed and/or added to troubleshooting section.

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