CosmWasm/wasmvm

Migrate to Rust 1.74.0+ in cross compiler

webmaster128 opened this issue · 0 comments

In the Rust upgrade 1.73.0 -> 1.74.0 (rust-lang/rust#104385) the min version of macOS was increased from 10.10 to 10.12. This inteferes with out SDK and OSX_VERSION_MIN=10.10 in
https://github.com/CosmWasm/wasmvm/blob/401557bdc05944b75f252d79d0afe94056f23858/builders/Dockerfile.cross.

Example errors we get:

  = note: ld: warning: object file (/tmp/rustcLcodww/symbols.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.1o32py0aligiv2p5.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.1hronymk1fxbh39e.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.1ompccj1wgi658ci.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.1sm45uuq7shepwo0.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.1smt1osp2fzzze8.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.1sztivar8efnqws3.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.23ai6tufk7zt1nci.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.2dgnoqk3z96x22go.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.39rag98xugl0yng.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.4bdcrp16q8apmznc.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.578khrzp4xyp53h1.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.bo7eeikdwsidfke.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.gr0jzey3t6uaw1d.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: warning: object file (/code/target/x86_64-apple-darwin/release/deps/wasmvm.ijvblgtcyx12489.rcgu.o) was built for newer macOS version (10.12) than being linked (10.10)
          ld: can't open file, errno=2 file '/code/target/x86_64-apple-darwin/release/deps/wasmvm.6rsmafctacchex6.rcgu.o'
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

But there have also been other cases of

ld: can't open file, errno=2 file '[...]/wasmvm.[...].rcgu.o'

with no such explanations.