-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I entirely expect this is because I'm not using actual gcc but I hit link-time errors when building at the moment:
WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without.
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/Users/me/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/me/.cargo/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion Tech Preview.app/Contents/Public" VSLANG="1033" "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--gc-sections" "-m16" "-nostdlib" "-march=i386" "-ffreestanding" "-fno-pie" "-Tcom.ld" "/var/folders/db/k7txrdsj4cl_p_bf5_5gz9c00000gn/T/rustceH6GoE/symbols.o" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-094b9fa3f51d414f.dos.49079d62-cgu.0.rcgu.o" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-094b9fa3f51d414f.dos.49079d62-cgu.1.rcgu.o" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-094b9fa3f51d414f.dos.49079d62-cgu.2.rcgu.o" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-094b9fa3f51d414f.dos.49079d62-cgu.3.rcgu.o" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-094b9fa3f51d414f.dos.49079d62-cgu.4.rcgu.o" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-094b9fa3f51d414f.dos.49079d62-cgu.5.rcgu.o" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-094b9fa3f51d414f.dos.49079d62-cgu.6.rcgu.o" "-Wl,--as-needed" "-L" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps" "-L" "/Users/me/Documents/Code/rust/other/rusty-dos/target/release/deps" "-L" "/Users/me/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/dos/lib" "-Wl,-Bstatic" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/libstatic_assertions-7b3a22f385d712a5.rlib" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/libbitflags-df4d6f15de3bffa7.rlib" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/librustc_std_workspace_core-72e6f8c8fd97affe.rlib" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/libcore-9701ff8d25450f25.rlib" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/libcompiler_builtins-1f1e3cf246152175.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/Users/me/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/dos/lib" "-o" "/Users/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-094b9fa3f51d414f.com" "-Wl,--gc-sections" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: ld: warning: directory not found for option '-L/Users/me/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/dos/lib'
ld: warning: directory not found for option '-L/Users/me/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/dos/lib'
ld: unknown option: --as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
warning: `dos` (bin "dos") generated 14 warnings
error: could not compile `dos` (bin "dos") due to previous error; 14 warnings emitted
MyMachin:rusty-dos me$ cc --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels