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

multiple definition of __aeabi_ul2d #353

Open
lights0123 opened this issue May 5, 2020 · 16 comments
Open

multiple definition of __aeabi_ul2d #353

lights0123 opened this issue May 5, 2020 · 16 comments

Comments

@lights0123
Copy link

Trying to compile a sample app for a custom ARM target, I get the following linker error:

  = note: arm-none-eabi-ld: /home/benschattinger/.src/Ndless/ndless-sdk/toolchain/install/lib/gcc/arm-none-eabi/9.2.0/libgcc.a(_arm_addsubdf3.o): in function `__floatundidf':
          /home/benschattinger/.src/Ndless/ndless-sdk/toolchain/build/arm-none-eabi/libgcc/../../../gcc-9.2.0/libgcc/config/arm/ieee754-df.S:541: multiple definition of `__aeabi_ul2d'; /home/benschattinger/Documents/Projects/Calculator/example-nspire/target/sysroot/lib/rustlib/armv5te-nspire-eabi/lib/libcompiler_builtins-d5dfaf2d732197c9.rlib(compiler_builtins-d5dfaf2d732197c9.compiler_builtins.79ijdt9a-cgu.25.rcgu.o):compiler_builtins.79ijdt9a-cgu.25:(.text.__aeabi_ul2d+0x0): first defined here
          collect2: error: ld returned 1 exit status

This issue was introduced with rustc 1.44.0-nightly (42abbd887 2020-04-07) (rustup toolchain install nightly-2020-04-08-x86_64-unknown-linux-gnu). Builds on previous versions succeed. Here's the diff between the two builds.

# This compiler works
❱ rustc +nightly-2020-04-07-x86_64-unknown-linux-gnu --version --verbose
rustc 1.44.0-nightly (6dee5f112 2020-04-06)
binary: rustc
commit-hash: 6dee5f1126dfd5c9314ee5ae9d9eb010e35ef257
commit-date: 2020-04-06
host: x86_64-unknown-linux-gnu
release: 1.44.0-nightly
LLVM version: 9.0
# This one doesn't
❱ rustc +nightly-2020-04-08-x86_64-unknown-linux-gnu --version --verbose
rustc 1.44.0-nightly (42abbd887 2020-04-07)
binary: rustc
commit-hash: 42abbd8878d3b67238f3611b0587c704ba94f39c
commit-date: 2020-04-07
host: x86_64-unknown-linux-gnu
release: 1.44.0-nightly
LLVM version: 9.0
@bjorn3
Copy link
Member

bjorn3 commented May 6, 2020

This may be caused by rust-lang/rust#70846.

@tmiasko
Copy link
Contributor

tmiasko commented May 10, 2020

This could be addressed by using similar organization of builtins as one in
libgcc, as suggested before. The only challenging aspect of that work is that
partitioning is controlled through modules, which are also used to realize
other technical details in compiler builtins (mostly to generate additional
unique identifiers; that would have to be changed).

Another possibility is to treat it as a regression, reverting the changes to rustc.

The situation with builtins is somewhat unfortunate, since rustc doesn't have
control of over library calls emitted in LLVM lowering, nor is it there a clear
separation between targets that will use libgcc (where compiler-builtins could
be limited to rustc or LLVM extensions) and those that don't.

@alexcrichton
Copy link
Member

I originally found it odd that splitting into more object files would cause regressions, but I'm assuming what's happening here is that C code linked after Rust code pulls in intrinsics from libgcc where the object files in libgcc happen to duplicate intrinsics pulled in by Rust originally from compiler-builtins, causing a link error. This presumably didn't happen before because when an object was pulled in from Rust it defined multiple symbols and prevented those from being loaded from libgcc.

I think the best solution for this issue, if any, is to link libcompiler-builtins last in the linker. That way it's only used for leftovers in terms of whatever's remaining as undefined symbols. That way if libgcc defines a duplicate symbol with compiler-builtins it will be preferred. It should be the case that all duplicate symbols have the same ABI and same semantics, I believe.

@TheVova
Copy link

TheVova commented Sep 7, 2020

is there any update on this? im getting the same error for multiple builtins while linking rust libs to C code,

 /home/vlad/arm-gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /home/vlad/arm-gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7e-m+fp/hard/libgcc.a(_arm_addsubdf3.o): in function `__extendsfdf2':
 (.text+0x2c8): multiple definition of `__aeabi_f2d'; _install/lib/c55/libember.a(compiler_builtins-deca8aa381edbbfe.compiler_builtins.677rlml8-cgu.180.rcgu.o):/rustc/73dc675b9437c2a51a975a9f58cc66f05463c351/library/core/src/ops/bit.rs:137: first defined here
 /home/vlad/arm-gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /home/vlad/arm-gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7e-m+fp/hard/libgcc.a(_arm_addsubsf3.o): in function `__floatundisf':
 (.text+0x190): multiple definition of `__aeabi_ul2f'; _install/lib/c55/libconfigpb_rs.a(compiler_builtins-deca8aa381edbbfe.compiler_builtins.677rlml8-cgu.105.rcgu.o):/cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.35/src/macros.rs:225: first defined here
 collect2: error: ld returned 1 exit status

works with nightlies before the mentioned one. rather sad to be stuck with rust 1.44 forever...
is there anything i can do to help?

@lights0123
Copy link
Author

lights0123 commented Sep 7, 2020

@TheVova Test like this if you're not using a custom target and then put it here, or this if you are.

@lattice0
Copy link

I'm having a similar problem: https://stackoverflow.com/questions/63950040/multiple-definition-of-aeabi-ul2f-on-android-ndk-libgcc-real-a but since my code is a mix of C++ and Rust I'm not sure what to do.

I don't know much about linking, LLVM, libgcc_real.a, but what I think I understood is that this problem is happening because my Rust code (which is inside libsmoltcp_cpp_interface_rust.a), defines __aeabi_ul2f. Then, somehow, the linker complains about this being defined also in libgcc_real.a. I don't know why, since it uses -Wl,--exclude-libs,libgcc_real.a in the linking process, so libgcc_real.a shouldn't be called at all. Well, some .a files that are being linked together with libsmoltcp_cpp_interface_rust.a indeed depend on __aeabi_ul2f, so maybe this is why libgcc_real.a is being invoked.

@ryankurte
Copy link

@TheVova Test like this if you're not using a custom target and then put it here, or this if you are.

reddit would seem to be down at the moment, any chance you could add your suggestions to this issue?

@alexcrichton thanks for the hint!

compiling arm code linked against libsodium, swapping from #[link(name = "c", kind = "static")] extern {} in main.rs to "-C", "link-arg=-lc", as the very last argument in the linker args worked for me. My cursed linker args in full in case they're useful to anyone else:

[target.thumbv7em-none-eabihf]

rustflags = [
   "-C", "linker=arm-none-eabi-gcc",
   "-C", "link-arg=-Wl,-Tlink.x",
   "-C", "link-arg=-nostartfiles",
   "-C", "link-arg=-L/usr/lib/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard/",
#   "-C", "link-arg=--specs=nosys.specs",
#   "-C", "link-arg=--specs=nano.specs",
   "-C", "link-arg=-lc",
#   "-C", "link-arg=-lnosys",
]

@lights0123
Copy link
Author

Copy/pasting from the Reddit thread I linked:

Me

Thanks so much—RUSTFLAGS="-Clink-arg=-Wl,--allow-multiple-definition" works! Is there any problem with leaving that there all the time (I'd integrate it into the target.json)? Which definition would it pick to include?

u/VadimVP

Which definition would it pick to include?

Whichever was encountered first during linking.
Definitions in libgcc and compiler-builtins are supposed to be interchangeable, so in this particular case it should be ok.

Is there any problem with leaving that there all the time (I'd integrate it into the target.json)?

--allow-multiple-definition is not enabled by default because it usually catches legitimate errors.

I'd recommend to check whether the problem reproduces on the latest nightly. compiler-builtins recently had a change that was supposed to fix linking errors like this.

pkgw added a commit to pkgw/tectonic-ci-support that referenced this issue Jan 14, 2021
Upgrading to reqwest 0.11 seems to have caused us to start hitting
rust-lang/compiler-builtins#353 for some
reason. `-lgcc` is already at the end of our link lines, which is
supposed to prevent the error, so I guess we have to force the issue
with the hacky `--allow-multiple-definition` linker flag.
@kleisauke
Copy link
Contributor

Hopefully this should be fixed by #452 which will be included in rust-lang/rust#93696. Please try it in the next nightly once that is merged.
Originally posted by @Amanieu in #412 (comment)

I think this comment is also relevant here. This would avoid having to specify the slightly dangerous --allow-multiple-definition linker flag.

keith added a commit to envoyproxy/envoy-mobile that referenced this issue Apr 13, 2022
When working on rust support we hit this issue
rust-lang/compiler-builtins#353 which seems to
still be persistent even in the case you have the nightly version
mentioned there. I haven't been able to reproduce the issue in a
separate project, but the core seems to be that both libgcc and rust's
compiler builtins module vendor some float math symbols and both are
included. This change is as scoped as possible so that no real issues
could sneak in with this disabled, which should mostly be covered by
only passing this for the single arch.

Signed-off-by: Keith Smiley <[email protected]>
keith added a commit to envoyproxy/envoy-mobile that referenced this issue Apr 13, 2022
When working on rust support we hit this issue
rust-lang/compiler-builtins#353 which seems to
still be persistent even in the case you have the nightly version
mentioned there. I haven't been able to reproduce the issue in a
separate project, but the core seems to be that both libgcc and rust's
compiler builtins module vendor some float math symbols and both are
included. This change is as scoped as possible so that no real issues
could sneak in with this disabled, which should mostly be covered by
only passing this for the single arch.

Signed-off-by: Keith Smiley <[email protected]>
@fzyzcjy
Copy link

fzyzcjy commented May 24, 2022

Is there any updates? I face similar problems in rust 1.61.0

@fzyzcjy
Copy link

fzyzcjy commented May 24, 2022

I think the best solution for this issue, if any, is to link libcompiler-builtins last in the linker.

@alexcrichton May I know how to do this? Currently I use cargo build so no way to modify orders. Thanks!

I am targeting normal android devices

@Amanieu
Copy link
Member

Amanieu commented May 24, 2022

It should already be last in the link order. Can you share the full linker command-line that is failing?

@fzyzcjy
Copy link

fzyzcjy commented May 24, 2022

@Amanieu Sure. Thanks for the reply!

In my case, I have opencv-rust as well as my rust code.

[11:23:19]:    Compiling vision_utils_rs v0.1.0 (/Users/tom/QAPMain/Development/frontend/vision_utils/rust)
[11:23:19]:      Running `CARGO=/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/bin/cargo CARGO_CRATE_NAME=vision_utils_rs CARGO_MANIFEST_DIR=/Users/tom/QAPMain/Development/frontend/vision_utils/rust CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=vision_utils_rs CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 DYLD_FALLBACK_LIBRARY_PATH='/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps:/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib:/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/' rustc --crate-name vision_utils_rs --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 -C metadata=0a2efe69b7a348d1 --out-dir /Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps --target armv7-linux-androideabi -C linker=/Users/tom/Library/Android/sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi21-clang -L dependency=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps -L dependency=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps --extern align_data=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libalign_data-6e66b35717b50078.rlib --extern android_logger=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libandroid_logger-34f48130e3688de1.rlib --extern anyhow=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libanyhow-acc01353310e6cc7.rlib --extern approx=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libapprox-8fd758de6ca00ad3.rlib --extern argh=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libargh-a5a4310762a523b6.rlib --extern backtrace=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbacktrace-fb7e7988f5aec414.rlib --extern byte_slice_cast=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbyte_slice_cast-32c09a66cef5745f.rlib --extern bytemuck=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbytemuck-e9328aa2ffcb6cc8.rlib --extern byteorder=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbyteorder-59668ffc28496452.rlib --extern bytes=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbytes-ecde241d4a06b579.rlib --extern colorous=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcolorous-45d6598c61a95bf5.rlib --extern const_fn_assert=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libconst_fn_assert-c5cd512f514fea51.rlib --extern const_format=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libconst_format-25822933b9e33a65.rlib --extern crossbeam=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcrossbeam-32c514f296449615.rlib --extern delaunator=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libdelaunator-5d1ead931c943dd2.rlib --extern easy_ext=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps/libeasy_ext-0bff8b5edc5e879b.dylib --extern findshlibs=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfindshlibs-6dc14fc8c6ec80e4.rlib --extern flutter_rust_bridge=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libflutter_rust_bridge-cfbc008b1a7e287a.rlib --extern glob=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libglob-c70392c5394ca1df.rlib --extern image=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libimage-f766a301f7b007ec.rlib --extern indicatif=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libindicatif-8e7cefeb437126fd.rlib --extern itertools=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libitertools-04a6886b16be3eda.rlib --extern lazy_static=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/liblazy_static-4941c1ff0eba1e88.rlib --extern log=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/liblog-da114c2e6621a108.rlib --extern material_color=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libmaterial_color-24d368cee001925a.rlib --extern ndarray=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray-a8e0532c5e8753a3.rlib --extern ndarray_rand=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray_rand-c6ef96e9d1865bd4.rlib --extern ndarray_stats=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray_stats-1c32ef651632a5a8.rlib --extern ndarray_ext=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray_ext-2c3aaf8638215983.rlib --extern noisy_float=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnoisy_float-b463a5c9f1a5d157.rlib --extern num=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum-3b3a6b1c7984e139.rlib --extern num_derive=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps/libnum_derive-394041e199c7b8e7.dylib --extern num_traits=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum_traits-73cfdc22baa4f69c.rlib --extern opencv=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libopencv-a773e18185e6d2e1.rlib --extern ordered_float=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libordered_float-4cc020064a55ea08.rlib --extern parking_lot=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libparking_lot-668d6f606cffa15f.rlib --extern pathdiff=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpathdiff-4b8d12b49d6bd201.rlib --extern pathfinding=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpathfinding-f3483e3d5a820d7e.rlib --extern png=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpng-36af188485640d73.rlib --extern protobuf=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libprotobuf-ebef6a5ff443215d.rlib --extern rand=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librand-18941cf239381edc.rlib --extern rayon=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librayon-4db99b8d0a114459.rlib --extern rgb=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librgb-31fec7ed056b20ce.rlib --extern sentry=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry-c253da447f7fd01b.rlib --extern sentry_anyhow=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry_anyhow-37be59055b0ea9b2.rlib --extern simplelog=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsimplelog-af952d590d17d8c1.rlib --extern static_assertions=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libstatic_assertions-0446ab9e8d6f7e30.rlib --extern strum_macros=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps/libstrum_macros-41b9a05ac9616191.dylib --extern tflite_rust=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtflite_rust-560503da2f28507a.rlib --extern thiserror=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libthiserror-0bddf79543650109.rlib --extern threadpool=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libthreadpool-72888d8339f5805d.rlib --extern unroll=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps/libunroll-426ab1b2f5aaa928.dylib -C link-arg=-Wl,--build-id -C target-feature=+neon -L native=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/build/opencv-06100e2a5bb626b2/out -L /Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/armeabi-v7a -L framework=/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/armeabi-v7a -L /Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/armeabi-v7a -L framework=/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/armeabi-v7a -L /Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/arm64-v8a -L framework=/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/arm64-v8a -L /Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/arm64-v8a -L framework=/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/arm64-v8a -L native=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/build/ring-ab79772bcd863fe9/out -L native=/Users/tom/QAPMain/Development/frontend/tflite_rust/built_artifacts/android/tflite_rust/src/main/jniLibs/armeabi-v7a`
[11:24:02]: error: linking with `/Users/tom/Library/Android/sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi21-clang` failed: exit status: 1
[11:24:02]:   |
[11:24:02]:   = note: "/Users/tom/Library/Android/sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi21-clang" "-Wl,--version-script=/var/folders/pd/mpc7mwfj36ndyr9xbnnzk_s80000gn/T/rustcGvJ8sC/list" "-march=armv7-a" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.0.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.1.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.10.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.11.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.12.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.13.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.14.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.15.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.2.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.3.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.4.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.5.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.6.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.7.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.8.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.vision_utils_rs.fb023e31-cgu.9.rcgu.o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/vision_utils_rs.1uvluclsw4odk75.rcgu.o" "-Wl,--as-needed" "-L" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps" "-L" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps" "-L" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/build/opencv-06100e2a5bb626b2/out" "-L" "/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/armeabi-v7a" "-F" "/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/armeabi-v7a" "-L" "/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/armeabi-v7a" "-F" "/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/armeabi-v7a" "-L" "/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/arm64-v8a" "-F" "/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/arm64-v8a" "-L" "/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/arm64-v8a" "-F" "/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/arm64-v8a" "-L" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/build/ring-ab79772bcd863fe9/out" "-L" "/Users/tom/QAPMain/Development/frontend/tflite_rust/built_artifacts/android/tflite_rust/src/main/jniLibs/armeabi-v7a" "-L" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib" "-Wl,-Bstatic" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libandroid_logger-34f48130e3688de1.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libenv_logger-36290fa9a1b37e98.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libandroid_log_sys-2e17bbf268bdef96.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpng-36af188485640d73.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libencoding-0902743d7e106ea3.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libencoding_index_tradchinese-21e413c371f8f2a0.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libencoding_index_simpchinese-8f92fb63ba7ace98.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libencoding_index_japanese-77681552ee698fee.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libencoding_index_korean-c0001907d210a2b2.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libencoding_index_singlebyte-2773e4302d60c1b7.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libdeflate-41168a89b3d797b9.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcolorous-45d6598c61a95bf5.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libdelaunator-5d1ead931c943dd2.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtflite_rust-560503da2f28507a.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbyte_slice_cast-32c09a66cef5745f.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsimplelog-af952d590d17d8c1.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtermcolor-964e8528e12ec649.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libparking_lot-668d6f606cffa15f.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libparking_lot_core-f3ffc0124e0b059b.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libinstant-178fc3ac4c894d38.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libimage-f766a301f7b007ec.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcolor_quant-74c7567198df286d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpng-cb6d909227a1fd65.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libminiz_oxide-e8ff76c3221f5c52.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcrc32fast-9e4908fa5e432942.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libdeflate-2317a68e45fd25e0.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libadler32-dab15be2cebb3f29.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbitflags-afcfc36e0f1dd421.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libjpeg_decoder-5613cd57cdb3328e.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry-c253da447f7fd01b.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry_panic-076e0ec68912300a.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry_log-85e01d796437bd75.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry_debug_images-825f00d9ddf929a2.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfindshlibs-6dc14fc8c6ec80e4.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry_contexts-7a683fb58d4d3639.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libhostname-fdf7d59070162ea7.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libmatch_cfg-9b0b72cfd532bbc9.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libuname-70be433d2af3f960.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry_anyhow-60d4ad15bc0dbe4a.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry_backtrace-3a730da3951b06b3.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libregex-d538c80b7f90f79d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libaho_corasick-87ab8e3e1534d4b3.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libregex_syntax-8a1b38d800f32436.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libreqwest-077aa3c99ffd138c.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libhyper_rustls-78e518b0f1a56db0.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libwebpki_roots-07039bd9bde3e8b2.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libipnet-fa1ae17172866c48.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtokio_rustls-250e64ba1469b0b1.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librustls-67485a27c64472d7.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsct-eb1bcfcb67d17ea1.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libwebpki-9b3f86692ac70898.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libring-d5fb621c352f4467.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libspin-ed1d58b7237fb307.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libuntrusted-4f92f7197d991147.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libonce_cell-2e60c847f88fa7c0.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libserde_urlencoded-aad9982a6ef6c40d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libmime-548c1cf9398826bd.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libencoding_rs-9c84ff10d9b2dc52.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbase64-c511457801671282.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libhyper-19ca59eb36244c24.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libwant-0d63ca2403b3bbdb.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtry_lock-a5095c7ba0876579.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsocket2-5e2dd265318a87a7.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libhttparse-fe5d9b4128befefe.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libh2-d9e7d7accbc37a57.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtokio_util-72e601d2b43bd8c5.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfutures_sink-f24a66b0ee95d089.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtower_service-edb7192d38136745.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtracing-b1012d237b40119c.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtracing_core-2830356c92ad267c.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfutures_channel-f8c6f61196f73247.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtokio-ab95449cd73623b2.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libmio-6e14e1778bcd8829.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libhttp_body-87e58b4a24b7516d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfutures_util-cedaf1d1bf41a8ff.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfutures_io-ad44cabda0e1739c.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libslab-01a9a95866464d1c.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpin_project_lite-15554b73da5fce02.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfutures_task-a68223cca6f5cfe5.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpin_utils-d54d4bdc9ca2df7f.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfutures_core-e39a9508d5ed7e9e.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libhttp-9048c936eee6a8e0.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfnv-ec6383d888191720.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libhttpdate-a4dd44b68387e075.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry_core-77cc93f93f1e385b.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry_types-a40479a471abdb18.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libhex-34b4f6b3c036116c.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libserde_json-f60227915858bf8b.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libryu-e278ca4d3d2497e0.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libitoa-25788cda8857d820.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libdebugid-28660fb442ab984d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libuuid-ae4bcda67c31ec4b.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/liburl-7235acd40a5f8092.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libidna-4a92988717212029.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libunicode_normalization-1872adfff2430a76.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtinyvec-3476449059b3bc0a.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtinyvec_macros-fa36611ef9198dbc.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libunicode_bidi-7e94168574d4f38d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libform_urlencoded-8ad690a6fbf8fd72.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpercent_encoding-22a1a37dd5eeca10.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libmatches-116e0414237b1a73.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libthiserror-0bddf79543650109.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libchrono-80a37d4cf3607318.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libserde-d23208613ad19820.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtime-ec2609006f84ba41.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbyteorder-59668ffc28496452.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libalign_data-6e66b35717b50078.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpathfinding-f3483e3d5a820d7e.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libinteger_sqrt-b53c14ff5675bb2c.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfixedbitset-590bf4f64ba6ea1b.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librustc_hash-3437f9ac7d5d73a0.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libmaterial_color-24d368cee001925a.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray_stats-1c32ef651632a5a8.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librand-18941cf239381edc.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librand_chacha-dcc647f7c4678ece.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libppv_lite86-8d0364e4fbcb693d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librand_core-7c66631f8dce8f82.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libgetrandom-057d58cf2ce34106.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libindexmap-5fe5b2fd77bb7e02.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libhashbrown-23e3cd8306f39760.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnoisy_float-b463a5c9f1a5d157.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libitertools-04a6886b16be3eda.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libprotobuf-ebef6a5ff443215d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbytes-ecde241d4a06b579.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libflutter_rust_bridge-cfbc008b1a7e287a.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libthreadpool-72888d8339f5805d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libparking_lot-d6ef2b3ac6de76d0.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libparking_lot_core-b8fd02db82d28272.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsmallvec-fb9ca9107bc3e813.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/liblock_api-d32feb2bb549a7b4.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/liballo_isolate-93c5273ef793ace1.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libatomic-7633d4a8a38dbf98.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libconst_fn_assert-c5cd512f514fea51.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libordered_float-4cc020064a55ea08.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray_ext-2c3aaf8638215983.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum-3b3a6b1c7984e139.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum_iter-e7681f53ac012c66.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum_rational-9bdf2bb260362fa6.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum_bigint-bcc64d99cba0d36b.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libopencv-a773e18185e6d2e1.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librgb-31fec7ed056b20ce.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbytemuck-e9328aa2ffcb6cc8.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray-a8e0532c5e8753a3.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libmatrixmultiply-429dc0651238f2b5.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libapprox-0f756118b8436bf5.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum_complex-e37724364ab3d5b5.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum_integer-e5749b2bc6340a0c.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum_traits-73cfdc22baa4f69c.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librawpointer-ef88c2cdd71d1a9e.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librayon-4db99b8d0a114459.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librayon_core-47e481927ba3bc0e.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum_cpus-908505f7597f61fc.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcrossbeam_deque-83d9e3256c7a7a3d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcrossbeam_epoch-12163f573aad82dd.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libmemoffset-135bb2c8e48c5c61.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libscopeguard-89593d565b1388f8.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcrossbeam_channel-b039af5769eacd81.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcrossbeam_utils-e8d86ac84be5f43a.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libeither-584e8a857f9b7a01.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/liblog-da114c2e6621a108.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libvalue_bag-837ce61f275a4096.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/liblazy_static-4941c1ff0eba1e88.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libanyhow-acc01353310e6cc7.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbacktrace-fb7e7988f5aec414.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libminiz_oxide-bf5ca0bdcb54eaad.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libadler-c9fed782c01eec46.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libobject-84df178c06061ce3.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libmemchr-b0d5b4b3c05cea5e.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/liblibc-a3935dc35681511c.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libaddr2line-7da6fa1a9627a0bf.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libgimli-4eac3242a0e5c33d.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcfg_if-be38bdc1eb0797af.rlib" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librustc_demangle-319dc3bf1951412a.rlib" "-Wl,--start-group" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libstd-edc128a915f93267.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libpanic_unwind-79d680e370d9af20.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libobject-a51f2055bb169577.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libmemchr-1d004bd0c605f1be.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libaddr2line-213c8968f1b852ff.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libgimli-4cf284be4c73e391.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/librustc_demangle-3db973a607b00fc6.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libstd_detect-3760dd4d0f2cf534.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libhashbrown-d68a18f8ab03de48.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libminiz_oxide-67daadf56f186edb.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libadler-100af38402a322b9.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/librustc_std_workspace_alloc-078aa12d8bf8b81b.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libunwind-061d5bfed3f72f4e.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libcfg_if-470b573a3548d97b.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/liblibc-308e3ceb5915552d.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/liballoc-e3d010e949b423b1.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/librustc_std_workspace_core-a5763ec5c2b40eaf.rlib" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libcore-fbb0d1f514992202.rlib" "-Wl,--end-group" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libcompiler_builtins-b42ca57cdc6f0026.rlib" "-Wl,-Bdynamic" "-llog" "-ltensorflowlite_c" "-lc++_shared" "-lopencv_imgcodecs" "-lopencv_imgproc" "-lopencv_core" "-ltbb" "-lcpufeatures" "-littnotify" "-ltegra_hal" "-lIlmImf" "-llibpng" "-llibtiff" "-llibwebp" "-llibopenjp2" "-llibjpeg-turbo" "-lz" "-ldl" "-llog" "-lgcc" "-ldl" "-lc" "-lm" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib" "-o" "/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libvision_utils_rs.so" "-Wl,--gc-sections" "-shared" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs" "-Wl,--build-id"
[11:24:02]:   = note: clang: warning: argument unused during compilation: '-F/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/armeabi-v7a' [-Wunused-command-line-argument]
[11:24:02]:           clang: warning: argument unused during compilation: '-F/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/armeabi-v7a' [-Wunused-command-line-argument]
[11:24:02]:           clang: warning: argument unused during compilation: '-F/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/arm64-v8a' [-Wunused-command-line-argument]
[11:24:02]:           clang: warning: argument unused during compilation: '-F/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/arm64-v8a' [-Wunused-command-line-argument]
[11:24:02]:           /Users/tom/Library/Android/sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: /Users/tom/Library/Android/sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/armv7-a/libgcc_real.a(_arm_addsubsf3.o): multiple definition of '__aeabi_ul2f'
[11:24:02]:           /Users/tom/Library/Android/sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: /Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/armv7-linux-androideabi/lib/libcompiler_builtins-b42ca57cdc6f0026.rlib(compiler_builtins-b42ca57cdc6f0026.compiler_builtins.da16e296-cgu.120.rcgu.o): previous definition here
[11:24:02]:           clang: error: linker command failed with exit code 1 (use -v to see invocation)
[11:24:02]:           
[11:24:02]: 
[11:24:02]: error: could not compile `vision_utils_rs` due to previous error
[11:24:02]: 
[11:24:02]: Caused by:
[11:24:02]:   process didn't exit successfully: `CARGO=/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/bin/cargo CARGO_CRATE_NAME=vision_utils_rs CARGO_MANIFEST_DIR=/Users/tom/QAPMain/Development/frontend/vision_utils/rust CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=vision_utils_rs CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 DYLD_FALLBACK_LIBRARY_PATH='/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps:/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib:/Users/tom/.rustup/toolchains/stable-x86_64-apple-darwin/lib:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/' rustc --crate-name vision_utils_rs --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=2 -C metadata=0a2efe69b7a348d1 --out-dir /Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps --target armv7-linux-androideabi -C linker=/Users/tom/Library/Android/sdk/ndk/21.2.6472646/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi21-clang -L dependency=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps -L dependency=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps --extern align_data=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libalign_data-6e66b35717b50078.rlib --extern android_logger=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libandroid_logger-34f48130e3688de1.rlib --extern anyhow=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libanyhow-acc01353310e6cc7.rlib --extern approx=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libapprox-8fd758de6ca00ad3.rlib --extern argh=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libargh-a5a4310762a523b6.rlib --extern backtrace=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbacktrace-fb7e7988f5aec414.rlib --extern byte_slice_cast=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbyte_slice_cast-32c09a66cef5745f.rlib --extern bytemuck=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbytemuck-e9328aa2ffcb6cc8.rlib --extern byteorder=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbyteorder-59668ffc28496452.rlib --extern bytes=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libbytes-ecde241d4a06b579.rlib --extern colorous=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcolorous-45d6598c61a95bf5.rlib --extern const_fn_assert=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libconst_fn_assert-c5cd512f514fea51.rlib --extern const_format=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libconst_format-25822933b9e33a65.rlib --extern crossbeam=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libcrossbeam-32c514f296449615.rlib --extern delaunator=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libdelaunator-5d1ead931c943dd2.rlib --extern easy_ext=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps/libeasy_ext-0bff8b5edc5e879b.dylib --extern findshlibs=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libfindshlibs-6dc14fc8c6ec80e4.rlib --extern flutter_rust_bridge=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libflutter_rust_bridge-cfbc008b1a7e287a.rlib --extern glob=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libglob-c70392c5394ca1df.rlib --extern image=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libimage-f766a301f7b007ec.rlib --extern indicatif=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libindicatif-8e7cefeb437126fd.rlib --extern itertools=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libitertools-04a6886b16be3eda.rlib --extern lazy_static=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/liblazy_static-4941c1ff0eba1e88.rlib --extern log=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/liblog-da114c2e6621a108.rlib --extern material_color=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libmaterial_color-24d368cee001925a.rlib --extern ndarray=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray-a8e0532c5e8753a3.rlib --extern ndarray_rand=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray_rand-c6ef96e9d1865bd4.rlib --extern ndarray_stats=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray_stats-1c32ef651632a5a8.rlib --extern ndarray_ext=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libndarray_ext-2c3aaf8638215983.rlib --extern noisy_float=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnoisy_float-b463a5c9f1a5d157.rlib --extern num=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum-3b3a6b1c7984e139.rlib --extern num_derive=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps/libnum_derive-394041e199c7b8e7.dylib --extern num_traits=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libnum_traits-73cfdc22baa4f69c.rlib --extern opencv=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libopencv-a773e18185e6d2e1.rlib --extern ordered_float=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libordered_float-4cc020064a55ea08.rlib --extern parking_lot=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libparking_lot-668d6f606cffa15f.rlib --extern pathdiff=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpathdiff-4b8d12b49d6bd201.rlib --extern pathfinding=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpathfinding-f3483e3d5a820d7e.rlib --extern png=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libpng-36af188485640d73.rlib --extern protobuf=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libprotobuf-ebef6a5ff443215d.rlib --extern rand=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librand-18941cf239381edc.rlib --extern rayon=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librayon-4db99b8d0a114459.rlib --extern rgb=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/librgb-31fec7ed056b20ce.rlib --extern sentry=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry-c253da447f7fd01b.rlib --extern sentry_anyhow=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsentry_anyhow-37be59055b0ea9b2.rlib --extern simplelog=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libsimplelog-af952d590d17d8c1.rlib --extern static_assertions=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libstatic_assertions-0446ab9e8d6f7e30.rlib --extern strum_macros=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps/libstrum_macros-41b9a05ac9616191.dylib --extern tflite_rust=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libtflite_rust-560503da2f28507a.rlib --extern thiserror=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libthiserror-0bddf79543650109.rlib --extern threadpool=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/deps/libthreadpool-72888d8339f5805d.rlib --extern unroll=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/release/deps/libunroll-426ab1b2f5aaa928.dylib -C link-arg=-Wl,--build-id -C target-feature=+neon -L native=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/build/opencv-06100e2a5bb626b2/out -L /Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/armeabi-v7a -L framework=/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/armeabi-v7a -L /Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/armeabi-v7a -L framework=/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/armeabi-v7a -L /Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/arm64-v8a -L framework=/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/staticlibs/arm64-v8a -L /Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/arm64-v8a -L framework=/Users/tom/QAPMain/Development/frontend/vision_utils/vision_utils_flutter_wrapper/android/OpenCV-android-sdk/sdk/native/3rdparty/libs/arm64-v8a -L native=/Users/tom/QAPMain/Development/frontend/vision_utils/rust/target/armv7-linux-androideabi/release/build/ring-ab79772bcd863fe9/out -L native=/Users/tom/QAPMain/Development/frontend/tflite_rust/built_artifacts/android/tflite_rust/src/main/jniLibs/armeabi-v7a` (exit status: 1)

@Amanieu
Copy link
Member

Amanieu commented May 24, 2022

It seems that libgcc is bundling multiple functions in the same object file, which somewhat defeats the point of our workaround. Perhaps we should just switch to making all compiler-builtins functions weak?

@fzyzcjy
Copy link

fzyzcjy commented May 24, 2022

@Amanieu Sounds reasonable! So what can I do?

@Amanieu
Copy link
Member

Amanieu commented May 25, 2022

I think it should just be a matter of marking all our intrinsics with #[linkage = "weak"] like what was done in #385. The hard part is testing this on all platforms to ensure that we didn't accidentally break anything.

jpsim pushed a commit to envoyproxy/envoy that referenced this issue Nov 29, 2022
When working on rust support we hit this issue
rust-lang/compiler-builtins#353 which seems to
still be persistent even in the case you have the nightly version
mentioned there. I haven't been able to reproduce the issue in a
separate project, but the core seems to be that both libgcc and rust's
compiler builtins module vendor some float math symbols and both are
included. This change is as scoped as possible so that no real issues
could sneak in with this disabled, which should mostly be covered by
only passing this for the single arch.

Signed-off-by: Keith Smiley <[email protected]>
Signed-off-by: JP Simard <[email protected]>
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

10 participants