Repository: rust
Issue: Compiler fails to compile to macOS x86_64/arm64 on Linux
Labels: A-linkage,O-macos,A-cross,T-compiler,C-bug,glacier

<!--
Thank you for finding an Internal Compiler Error! 🧊  If possible, try to provide
a minimal verifiable example. You can read "Rust Bug Minimization Patterns" for
how to create smaller examples.

http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/

-->

### Code

```Rust
use std::{fs::File, io::Read, env::args};

fn main() -> ! {
    let args:Vec<String> = args().collect();
    if args.len() < 2 {
        panic!("Not enough arguments!")
    }
    // FIXME: Code makes bad assumption that first arg
    // will always be the file.
    let mut f = File::open(&args[1]).unwrap();
    // String gets written to by .read_to_string()
    let mut file = String::new();
    // TODO: Implement some proper error handling
    f.read_to_string(&mut file).unwrap();
    // Drop file handle. From now on, it's unnecessary.
    drop(f);
    // Make 'file' immutable (There HAS to be a better way of doing this!)
    let file = file;
    println!("{}", file);
    todo!("Do something with file")
}
```


### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.51.0 (2fd73fabe 2021-03-23)
binary: rustc
commit-hash: 2fd73fabe469357a12c2c974c140f67e7cdd76d0
commit-date: 2021-03-23
host: x86_64-unknown-linux-gnu
release: 1.51.0
LLVM version: 11.0.1
```

### Error output
The error output is l a r g e.
```
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-arch" "x86_64" "-L" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.13o73odwr9angwxa.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.13sdupj8p0i45cic.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1638qacwuc815dew.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1ar3mw3qxol89xgp.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1d18xcu3b6glcwlu.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1gr7pb25vws8tsau.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1lbfzh1yv6o2q7ip.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1saeuofksyvjdbrg.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1u2bywb3vodttaap.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1vkwld2uljwyspze.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.21kl6fi6aphbmc40.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.26op96nwj20bxjg0.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2ao05w1hvz5m4urd.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2bxg0ji7uqcsarqd.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2d9vh6ysfqkh06md.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2hb7thrccas5wvrw.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2k8p2slstig56vmc.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2nas00ysa5gnfwu6.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2qp1gtae83umic79.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2xvrg3nagbqsn0w7.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.30mjz5jh4gi0tnoz.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.35kv5g9qo2t3ot5o.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.37xeyfnhxcse0t2w.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.38ifgsvn0mqk6248.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.38ocvzr8kzh59qcq.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.39dnb7e62e3wzn9r.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.39nev6e1bb1pccoj.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.3by19lxlgwnv9d65.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.3hzrwzf96xewusat.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.3kdo0t3vv8wt6eex.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.3lerllynf8tdjblo.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.3w8qbhkrv7n4sl4p.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.40zoa1zppxkwk9v3.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4aryr6wybk6fmw3w.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4fofdatidnjtbt4n.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4fz0bt5ijldnen4h.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4g5har2mgugsfcyd.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4or46e4jai6l7vtm.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4pl3dduusb8ry5u7.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4twx730dhjzvqslv.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4wru04i7o0ot42em.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4wy8ru7v2kb9ssb8.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.50oc54uwpopqrbmo.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.51yrrxaw75gjd9gr.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.52vby9caz4dysbck.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.54kydld3sitx3ki3.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.55ov8uc3nzlgp9i2.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.59650rod2j856x81.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.5d4totdpznce5wou.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.5dsat4ym78y5x2w7.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.5dx9ag5nkh35rvl9.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.6t21ogyzp4tx338.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.a3yikp6ipk4ft1o.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.ap8zik39tfmpf7u.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.r48qg5b3u34s7ue.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.rmxyn379xa6iykw.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.sda1fz2xlposv07.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.ugvxhibipqtogu7.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.vu4owi9oloqg4dx.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.xo0fl3iqm3mjn1e.rcgu.o" "-o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1il8qp15a26van6m.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps" "-L" "/home/torus/Documents/cropscript/target/debug/deps" "-L" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libstd-349f286494d73b18.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-0c9fcc24a503d489.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libobject-70419d92d1ba4b1d.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-65e88774cb68bd46.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libgimli-3849b3781a19a398.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-0dbb03fa66ca6d84.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-65edff8661311c85.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-599e707cd7ee7216.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libunwind-40cb05f6c516791a.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-7a0a923a4d37a048.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/liblibc-7e047938e88325ef.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/liballoc-02542d835be27c0f.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-63712b18a1365082.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcore-1196a2a060497e71.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-10db70d883838cbc.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: cc: error: x86_64: No such file or directory
          cc: error: unrecognized command-line option '-arch'
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary><strong>Backtrace</strong></summary>
<p>
RUST_BACKTRACE with --verbose enabled

```
Compiling cropscript v0.1.0 (/home/torus/Documents/cropscript)
     Running `rustc --crate-name cropscript --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=996dfd9f22faf6a3 --out-dir /home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps --target x86_64-apple-darwin -C incremental=/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/incremental -L dependency=/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps -L dependency=/home/torus/Documents/cropscript/target/debug/deps`
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-arch" "x86_64" "-L" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.13o73odwr9angwxa.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.13sdupj8p0i45cic.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1638qacwuc815dew.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1ar3mw3qxol89xgp.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1d18xcu3b6glcwlu.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1gr7pb25vws8tsau.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1lbfzh1yv6o2q7ip.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1saeuofksyvjdbrg.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1u2bywb3vodttaap.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1vkwld2uljwyspze.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.21kl6fi6aphbmc40.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.26op96nwj20bxjg0.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2ao05w1hvz5m4urd.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2bxg0ji7uqcsarqd.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2d9vh6ysfqkh06md.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2hb7thrccas5wvrw.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2k8p2slstig56vmc.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2nas00ysa5gnfwu6.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2qp1gtae83umic79.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.2xvrg3nagbqsn0w7.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.30mjz5jh4gi0tnoz.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.35kv5g9qo2t3ot5o.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.37xeyfnhxcse0t2w.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.38ifgsvn0mqk6248.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.38ocvzr8kzh59qcq.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.39dnb7e62e3wzn9r.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.39nev6e1bb1pccoj.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.3by19lxlgwnv9d65.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.3hzrwzf96xewusat.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.3kdo0t3vv8wt6eex.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.3lerllynf8tdjblo.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.3w8qbhkrv7n4sl4p.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.40zoa1zppxkwk9v3.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4aryr6wybk6fmw3w.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4fofdatidnjtbt4n.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4fz0bt5ijldnen4h.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4g5har2mgugsfcyd.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4or46e4jai6l7vtm.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4pl3dduusb8ry5u7.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4twx730dhjzvqslv.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4wru04i7o0ot42em.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.4wy8ru7v2kb9ssb8.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.50oc54uwpopqrbmo.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.51yrrxaw75gjd9gr.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.52vby9caz4dysbck.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.54kydld3sitx3ki3.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.55ov8uc3nzlgp9i2.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.59650rod2j856x81.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.5d4totdpznce5wou.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.5dsat4ym78y5x2w7.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.5dx9ag5nkh35rvl9.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.6t21ogyzp4tx338.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.a3yikp6ipk4ft1o.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.ap8zik39tfmpf7u.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.r48qg5b3u34s7ue.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.rmxyn379xa6iykw.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.sda1fz2xlposv07.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.ugvxhibipqtogu7.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.vu4owi9oloqg4dx.rcgu.o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.xo0fl3iqm3mjn1e.rcgu.o" "-o" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps/cropscript.1il8qp15a26van6m.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps" "-L" "/home/torus/Documents/cropscript/target/debug/deps" "-L" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libstd-349f286494d73b18.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-0c9fcc24a503d489.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libobject-70419d92d1ba4b1d.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-65e88774cb68bd46.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libgimli-3849b3781a19a398.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-0dbb03fa66ca6d84.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-65edff8661311c85.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-599e707cd7ee7216.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libunwind-40cb05f6c516791a.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-7a0a923a4d37a048.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/liblibc-7e047938e88325ef.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/liballoc-02542d835be27c0f.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-63712b18a1365082.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcore-1196a2a060497e71.rlib" "/home/torus/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-10db70d883838cbc.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: cc: error: x86_64: No such file or directory
          cc: error: unrecognized command-line option '-arch'
          

error: aborting due to previous error

error: could not compile `cropscript`

Caused by:
  process didn't exit successfully: `rustc --crate-name cropscript --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=996dfd9f22faf6a3 --out-dir /home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps --target x86_64-apple-darwin -C incremental=/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/incremental -L dependency=/home/torus/Documents/cropscript/target/x86_64-apple-darwin/debug/deps -L dependency=/home/torus/Documents/cropscript/target/debug/deps` (exit code: 1)
```

</p>
</details>