Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS Z:\Rust> git clone https://github.com/tomaka/android-rs-glue.git
- Cloning into 'android-rs-glue'...
- remote: Enumerating objects: 12, done.
- remote: Counting objects: 100% (12/12), done.
- remote: Compressing objects: 100% (12/12), done.
- remote: Total 1410 (delta 4), reused 4 (delta 0), pack-reused 1398
- Receiving objects: 100% (1410/1410), 359.84 KiB | 2.09 MiB/s, done.
- Resolving deltas: 100% (760/760), done.
- PS Z:\Rust> cd .\android-rs-glue\
- PS Z:\Rust\android-rs-glue> ../vcvars.ps1
- Security warning
- Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
- computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
- message. Do you want to run Z:\Rust\vcvars.ps1?
- [D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): r
- Visual Studio 2017 Command Prompt variables set.
- PS Z:\Rust\android-rs-glue> cd .\cargo-apk\
- PS Z:\Rust\android-rs-glue\cargo-apk> cargo build
- Compiling gcc v0.3.45
- Compiling pkg-config v0.3.9
- Compiling winapi-build v0.1.1
- Compiling unicode-xid v0.0.4
- Compiling matches v0.1.4
- Compiling libc v0.2.21
- Compiling unicode-normalization v0.1.4
- Compiling void v1.0.2
- Compiling winapi v0.2.8
- Compiling quote v0.3.15
- Compiling lazy_static v0.2.8
- Compiling rustc-demangle v0.1.4
- Compiling cfg-if v0.1.0
- Compiling utf8-ranges v1.0.0
- Compiling itoa v0.3.1
- Compiling bitflags v0.7.0
- Compiling serde v1.0.10
- Compiling dtoa v0.4.1
- Compiling num-traits v0.1.40
- Compiling regex-syntax v0.4.1
- Compiling strsim v0.6.0
- Compiling semver-parser v0.7.0
- Compiling log v0.3.7
- Compiling rustc-serialize v0.3.24
- Compiling scoped-tls v0.1.0
- Compiling crossbeam v0.2.10
- Compiling glob v0.2.11
- Compiling shell-escape v0.1.3
- Compiling unicode-bidi v0.2.5
- Compiling unreachable v1.0.0
- Compiling memchr v1.0.1
- Compiling rand v0.3.15
- Compiling filetime v0.1.10
- Compiling num_cpus v1.3.0
- Compiling synom v0.11.3
- Compiling kernel32-sys v0.2.2
- Compiling dbghelp-sys v0.2.0
- Compiling ws2_32-sys v0.2.1
- error: linking with `link.exe` failed: exit code: 1112
- |
- = note: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\dbghelp-sys-4b56dc860e39c07a\build_script_build-4b56dc860e39c07a.build_script_build.bf87cst7-cgu.0.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\dbghelp-sys-4b56dc860e39c07a\build_script_build-4b56dc860e39c07a.build_script_build.bf87cst7-cgu.1.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\dbghelp-sys-4b56dc860e39c07a\build_script_build-4b56dc860e39c07a.build_script_build.bf87cst7-cgu.2.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\dbghelp-sys-4b56dc860e39c07a\build_script_build-4b56dc860e39c07a.build_script_build.bf87cst7-cgu.3.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\dbghelp-sys-4b56dc860e39c07a\build_script_build-4b56dc860e39c07a.build_script_build.bf87cst7-cgu.4.rcgu.o" "/OUT:Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\dbghelp-sys-4b56dc860e39c07a\build_script_build-4b56dc860e39c07a.exe" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\dbghelp-sys-4b56dc860e39c07a\build_script_build-4b56dc860e39c07a.4oo1lt53tc3fwcpa.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\etc\intrinsic.natvis" "/NATVIS:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\etc\liballoc.natvis" "/NATVIS:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\etc\libcore.natvis" "/LIBPATH:Z:\Rust\android-rs-glue\cargo-apk\target\debug\deps" "/LIBPATH:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\deps\libbuild-1bf9918a0d747c07.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libstd-eb2764e7599d44d6.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libpanic_unwind-98771610813f1e7d.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libunwind-568eb07a37e5152e.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liblibc-eab0816c791a8025.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liballoc_system-4aea8bbedc9d7a73.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liballoc-6a477b65ca608a47.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcore-94dbdc896b1fa5c2.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcompiler_builtins-a636ce5b66a7c967.rlib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
- = note: msvcrt.lib(chkstk.obj) : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'
- error: aborting due to previous error
- error: linking with `link.exe` failed: exit code: 1112
- |
- = note: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\kernel32-sys-8b44576a4b2eaf79\build_script_build-8b44576a4b2eaf79.build_script_build.3fexxah5-cgu.0.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\kernel32-sys-8b44576a4b2eaf79\build_script_build-8b44576a4b2eaf79.build_script_build.3fexxah5-cgu.1.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\kernel32-sys-8b44576a4b2eaf79\build_script_build-8b44576a4b2eaf79.build_script_build.3fexxah5-cgu.2.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\kernel32-sys-8b44576a4b2eaf79\build_script_build-8b44576a4b2eaf79.build_script_build.3fexxah5-cgu.3.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\kernel32-sys-8b44576a4b2eaf79\build_script_build-8b44576a4b2eaf79.build_script_build.3fexxah5-cgu.4.rcgu.o" "/OUT:Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\kernel32-sys-8b44576a4b2eaf79\build_script_build-8b44576a4b2eaf79.exe" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\kernel32-sys-8b44576a4b2eaf79\build_script_build-8b44576a4b2eaf79.58volyfkpy7jzocm.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\etc\intrinsic.natvis" "/NATVIS:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\etc\liballoc.natvis" "/NATVIS:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\etc\libcore.natvis" "/LIBPATH:Z:\Rust\android-rs-glue\cargo-apk\target\debug\deps" "/LIBPATH:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\deps\libbuild-1bf9918a0d747c07.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libstd-eb2764e7599d44d6.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libpanic_unwind-98771610813f1e7d.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libunwind-568eb07a37e5152e.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liblibc-eab0816c791a8025.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liballoc_system-4aea8bbedc9d7a73.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liballoc-6a477b65ca608a47.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcore-94dbdc896b1fa5c2.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcompiler_builtins-a636ce5b66a7c967.rlib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
- = note: msvcrt.lib(chkstk.obj) : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'
- error: aborting due to previous error
- error: Could not compile `dbghelp-sys`.
- warning: build failed, waiting for other jobs to finish...
- error: Could not compile `kernel32-sys`.
- warning: build failed, waiting for other jobs to finish...
- error: linking with `link.exe` failed: exit code: 1112
- |
- = note: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\ws2_32-sys-cdd5de2614de755b\build_script_build-cdd5de2614de755b.build_script_build.3ulw8j80-cgu.0.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\ws2_32-sys-cdd5de2614de755b\build_script_build-cdd5de2614de755b.build_script_build.3ulw8j80-cgu.1.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\ws2_32-sys-cdd5de2614de755b\build_script_build-cdd5de2614de755b.build_script_build.3ulw8j80-cgu.2.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\ws2_32-sys-cdd5de2614de755b\build_script_build-cdd5de2614de755b.build_script_build.3ulw8j80-cgu.3.rcgu.o" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\ws2_32-sys-cdd5de2614de755b\build_script_build-cdd5de2614de755b.build_script_build.3ulw8j80-cgu.4.rcgu.o" "/OUT:Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\ws2_32-sys-cdd5de2614de755b\build_script_build-cdd5de2614de755b.exe" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\build\ws2_32-sys-cdd5de2614de755b\build_script_build-cdd5de2614de755b.4bbvhv0xcj823zhj.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\etc\intrinsic.natvis" "/NATVIS:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\etc\liballoc.natvis" "/NATVIS:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\etc\libcore.natvis" "/LIBPATH:Z:\Rust\android-rs-glue\cargo-apk\target\debug\deps" "/LIBPATH:C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "Z:\Rust\android-rs-glue\cargo-apk\target\debug\deps\libbuild-1bf9918a0d747c07.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libstd-eb2764e7599d44d6.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libpanic_unwind-98771610813f1e7d.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libunwind-568eb07a37e5152e.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liblibc-eab0816c791a8025.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liballoc_system-4aea8bbedc9d7a73.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liballoc-6a477b65ca608a47.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcore-94dbdc896b1fa5c2.rlib" "C:\Users\user\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcompiler_builtins-a636ce5b66a7c967.rlib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
- = note: msvcrt.lib(chkstk.obj) : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'
- error: aborting due to previous error
- error: Could not compile `ws2_32-sys`.
- warning: build failed, waiting for other jobs to finish...
- error: build failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement