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

linker command failed due to signal #331

Open
Splint3r7 opened this issue Feb 22, 2025 · 0 comments
Open

linker command failed due to signal #331

Splint3r7 opened this issue Feb 22, 2025 · 0 comments

Comments

@Splint3r7
Copy link

Just ran the command to build:

docker run -it -v "$(pwd):/t" -e HASH_PATCH=f956f595844a2f845a55707faaaa51e4 -e COMMIT=cb4b5fff73850b2e42bd4de7cb9a4310a78ac40d reflutter

Error:

ninja: Entering directory `src/out/android_release_arm64'
[40/6288] ACTION //flutter/shell/platform/android:flutter_shell_java(//build/toolchain/android:clang_arm64)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[6273/6288] SOLINK ./libflutter.so
FAILED: libflutter.so libflutter.so.TOC lib.stripped/libflutter.so 
../../flutter/buildtools/linux-x64/clang/bin/clang++ -shared -Wl,--version-script=../../flutter/shell/platform/android/android_exports.lst -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--undefined-version -Wl,--no-undefined -Wl,--exclude-libs,ALL -Wl,--icf=all -Wl,-z,max-page-size=65536 --target=aarch64-linux-android22 -nostdlib++ -nostdlib -Wl,--warn-shared-textrel -L../../flutter/third_party/android_tools/ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/22 -Wl,-O2 -Wl,--gc-sections -Wl,--as-needed -flto -L../../flutter/third_party/android_tools/ndk/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/17/lib/linux  -o ./libflutter.so -Wl,--build-id=sha1 -Wl,-soname=libflutter.so @./libflutter.so.rsp && { ../../flutter/buildtools/linux-x64/clang/bin/llvm-readelf -d ./libflutter.so | grep SONAME ; ../../flutter/buildtools/linux-x64/clang/bin/llvm-nm -gD -f posix ./libflutter.so | cut -f1-2 -d' '; } > ./libflutter.so.tmp && if ! cmp -s ./libflutter.so.tmp ./libflutter.so.TOC; then mv ./libflutter.so.tmp ./libflutter.so.TOC; fi && ../../flutter/buildtools/linux-x64/clang/bin/llvm-strip --strip-unneeded -o lib.stripped/libflutter.so.tmp ./libflutter.so && if ! cmp -s lib.stripped/libflutter.so.tmp lib.stripped/libflutter.so; then mv lib.stripped/libflutter.so.tmp lib.stripped/libflutter.so; fi
clang++: error: unable to execute command: Killed
clang++: error: linker command failed due to signal (use -v to see invocation)
[6274/6288] SOLINK ./libimpeller.so
ninja: build stopped: subcommand failed.

Machine Specs:

Linux 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC x86_64 x86_64 x86_64 GNU/Linux
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

1 participant