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

note: --version-script=C:\Users\user\AppData\Local\Temp\rustcU0caRt\list"" was unexpected at this time. #449

Open
soupslurpr opened this issue Jun 4, 2023 · 1 comment
Labels
Android Only Android related issues

Comments

@soupslurpr
Copy link

soupslurpr commented Jun 4, 2023

Hi, I am trying to use this, and I am getting the following error when trying to build in release in rust, its preventing me from rebuilding in Android Studio. I am thinking its because of the double quotation marks "" instead of one ".

error: linking with `C:/Users/user/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android21-clang++.cmd` failed: exit code: 255
  |
  = note: "C:/Users/user/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android21-clang++.cmd" "-Wl,--version-script=C:\\Users\\user\\AppData\\Local\\Temp\\rustcU0caRt\\list" "-Wl,--no-undefined-version" "C:\\Users\\user\\AppData\\Local\\Temp\\rustcU0caRt\\symbols.o" "C:\\Users\\user\\projects\\Transcriber\\target\\aarch64-linux-android\\release\\deps\\cargo.cargo.c99ad472-cgu.0.rcgu.o" "C:\\Users\\user\\projects\\Transcriber\\target\\aarch64-linux-android\\release\\deps\\cargo.2ftlk91ghxdbmov2.rcgu.o" "-Wl,--as-needed" "-L" "C:\\Users\\user\\projects\\Transcriber\\target\\aarch64-linux-android\\release\\deps" "-L" "C:\\Users\\user\\projects\\Transcriber\\target\\release\\deps" "-L" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib" "-Wl,-Bstatic" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libstd-f6faf3a96d72d15b.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libpanic_unwind-6fc4a5fb0825f356.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libobject-eb712300f271767f.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libmemchr-95005bc386c5ee6e.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libaddr2line-7528c3b567f5adb6.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libgimli-ed8a6ccf31ed3d55.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\librustc_demangle-371eb706b331bdbd.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libstd_detect-13784e4525a1ca2f.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libhashbrown-567aad54cee9695d.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libminiz_oxide-b734643808c2f9c1.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libadler-be6ada223bc51bd7.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\librustc_std_workspace_alloc-cf157597731a2de8.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libunwind-3e35100294aeb23c.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libcfg_if-9fb4cd641b357ca4.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\liblibc-1a270ed749c6570d.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\liballoc-3f794c734bf57e29.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\librustc_std_workspace_core-c082c8860804395c.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libcore-86ad08cd4c41a813.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib\\libcompiler_builtins-e9996a2f967dd691.rlib" "-Wl,-Bdynamic" "-ldl" "-llog" "-lunwind" "-ldl" "-lm" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\aarch64-linux-android\\lib" "-o" "C:\\Users\\user\\projects\\Transcriber\\target\\aarch64-linux-android\\release\\deps\\libcargo.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
  = note: --version-script=C:\Users\user\AppData\Local\Temp\rustcU0caRt\list"" was unexpected at this time.

Thanks.

@Dushistov Dushistov added the Android Only Android related issues label Jun 6, 2023
@Dushistov
Copy link
Owner

Seems like bug in NDK, similar issue bbqsrc/cargo-ndk#92 .
I'm still using NDK 21.3.6528147 , that's why I haven't seen this bug yet.

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

No branches or pull requests

2 participants