MixinNetwork / MixinNetwork/flutter-plugins
mixin_logger: ^0.1.2 android compile error
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 512
- Forks
- 292
- Avg merge
- 15h 8m
- Merged PRs (30d)
- 7
Description
"flutterSdkVersion": "3.16.0",
dart 3.3.0
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':mixin_logger:buildCMakeDebug[arm64-v8a]'.
Build command failed.
Error while executing process /Users/Library/Android/sdk/cmake/3.18.1/bin/ninja with arguments {-C /Users/.pub-cache/hosted/pub.flutter-io.cn/mixin_logger-0.1.2/android/.cxx/Debug/3n521f4e/arm64-v8a mixin_logger}
ninja: Entering directory/Users/.pub-cache/hosted/pub.flutter-io.cn/mixin_logger-0.1.2/android/.cxx/Debug/3n521f4e/arm64-v8a' [1/1] Linking CXX shared library /Users/Documents/git_pros/flutter-netease-music/build/mixin_logger/intermediates/cxx/Debug/3n521f4e/obj/arm64-v8a/libmixin_logger.so FAILED: /Users/Documents/git_pros/flutter-netease-music/build/mixin_logger/intermediates/cxx/Debug/3n521f4e/obj/arm64-v8a/libmixin_logger.so : && /Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libmixin_logger.so -o /Users/Documents/git_pros/flutter-netease-music/build/mixin_logger/intermediates/cxx/Debug/3n521f4e/obj/arm64-v8a/libmixin_logger.so CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o -latomic -lm && : CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::exists(std::__ndk1::__fs::filesystem::path const&)':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1615: undefined reference tostd::__ndk1::__fs::filesystem::__status(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::file_size(std::__ndk1::__fs::filesystem::path const&)':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1637: undefined reference tostd::__ndk1::__fs::filesystem::__file_size(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::remove(std::__ndk1::__fs::filesystem::path const&)':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1862: undefined reference tostd::__ndk1::__fs::filesystem::__remove(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::is_directory(std::__ndk1::__fs::filesystem::path const&)':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1686: undefined reference tostd::__ndk1::__fs::filesystem::__status(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::create_directories(std::__ndk1::__fs::filesystem::path const&)':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1546: undefined reference tostd::__ndk1::__fs::filesystem::__create_directories(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functiondirectory_iterator':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:2418: undefined reference tostd::__ndk1::__fs::filesystem::directory_iterator::directory_iterator(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*, std::__ndk1::__fs::filesystem::directory_options)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::directory_iterator::operator*() const':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:2446: undefined reference tostd::__ndk1::__fs::filesystem::directory_iterator::__dereference() const' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::path::filename() const':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1067: undefined reference tostd::__ndk1::__fs::filesystem::path::__filename() const' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::directory_iterator::operator++()':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:2451: undefined reference tostd::__ndk1::__fs::filesystem::directory_iterator::__increment(std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::directory_entry::__get_ft(std::__ndk1::error_code*) const':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:2272: undefined reference tostd::__ndk1::__fs::filesystem::__status(std::__ndk1::__fs::filesystem::path const&, std::__ndk1::error_code*)' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::path::has_filename() const':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1096: undefined reference tostd::__ndk1::__fs::filesystem::path::__filename() const' CMakeFiles/mixin_logger.dir/mixin_logger.cpp.o: In functionstd::__ndk1::__fs::filesystem::path::has_root_directory() const':
/Users/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/filesystem:1084: undefined reference to `std::__ndk1::__fs::filesystem::path::__root_directory() const'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the mixin_logger-0.1.2/android build and the mixin_logger.cpp compilation output, using the reported Flutter SDK, Dart, CMake, and Android NDK versions to reproduce the failure. Inspect the linker command and filesystem-related undefined references; done means the Android arm64-v8a build completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cmake, cpp, dart
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100