rusty-dos
rusty-dos copied to clipboard
Compilation error on Ubuntu 22.10 (gcc 12.2.0)
Hmm. Not much luck at all today. GCC on Ubuntu 22.10 may have dropped support for 16bit binaries:
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/me/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/bin:/home/me/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" VSLANG="1033" "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--gc-sections" "-m16" "-nostdlib" "-march=i386" "-ffreestanding" "-fno-pie" "-Tcom.ld" "/tmp/rustclAL3QR/symbols.o" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-455e65f67464e693.dos.5a5b3b06-cgu.0.rcgu.o" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-455e65f67464e693.dos.5a5b3b06-cgu.1.rcgu.o" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-455e65f67464e693.dos.5a5b3b06-cgu.2.rcgu.o" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-455e65f67464e693.dos.5a5b3b06-cgu.3.rcgu.o" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-455e65f67464e693.dos.5a5b3b06-cgu.4.rcgu.o" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-455e65f67464e693.dos.5a5b3b06-cgu.5.rcgu.o" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-455e65f67464e693.dos.5a5b3b06-cgu.6.rcgu.o" "-Wl,--as-needed" "-L" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps" "-L" "/home/me/Documents/Code/rust/other/rusty-dos/target/release/deps" "-L" "/home/me/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/dos/lib" "-Wl,-Bstatic" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/libstatic_assertions-609e5ed2fb2e7024.rlib" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/libbitflags-c5fa9dcb2204815e.rlib" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/librustc_std_workspace_core-39ea25ee3b450edd.rlib" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/libcore-e6792bc159198733.rlib" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/libcompiler_builtins-01f05df35140a5a9.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/me/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/dos/lib" "-o" "/home/me/Documents/Code/rust/other/rusty-dos/target/dos/release/deps/dos-455e65f67464e693.com" "-Wl,--gc-sections" "-no-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: cc: error: unrecognized command-line option '-m16'
$ cc --version
cc (Ubuntu 12.2.0-3ubuntu1) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I'm not sure it'll matter but this is an ARM64-based VM.
$ uname -a
Linux ubuntu-arm 5.19.0-38-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 17:36:31 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux