Open Daijobou opened 5 years ago
I'm not sure cygwin supplies a cross compiler. I've successfully cross-compiled from Windows to Linux using the cross musl toolchain from https://win.musl.cc/.
Did you try using clang instead of GCC? Then it might work.
For anyone coming to this issue, I managed to cross-compile ring with a custom clang toolchain this way:
In .cargo/config.toml:
[target.x86_64-pc-windows-gnu]
linker = "x86_64-w64-mingw32-clang++"
env = { TARGET_CC="x86_64-w64-mingw32-clang", TARGET_AR="llvm-ar" }
rustflags = [ "-L", "/usr/lib/gcc/x86_64-w64-mingw32/10-win32" ]
and then building as
$ cargo build --target x86_64-pc-windows-gnu
I'm not sure if the linker path above is strictly needed for ring
itself, since I was building my own application that depends on ring, so it might not be necessary for others.
I use windows 10 and compiling my rust app as target windows is successful. Now I tried to compile it for linux but its failed. I installed cygwin on windows 10 to get a linux compiler.
.cargo/config:
created a bat-file for compiling:
Its compiling about 190 modules successul but stops always for "ring v0.13.5". Last lines of failed build:
Is here a solution? Make I a mistake in settings?
Dependencies: "rocket_http" "cookie" "ring"
UPDATE: I have forced rocket to use master which use cookie v12 instead v11 with now ring v14. But this still fails with the same errors.