imaon2
imaon2 copied to clipboard
Errors when attempting to compile build_run_untable and fmt-macho the trait `Swap` is not implemented for `macho_bind::fat_arch` when compiling fmt-macho
Attempting to compile build_run_untable errors with:
error: failed to run custom build command for
build_run_untable v0.0.0 (/Users/realkgb/imaon2/src/build-run_untable)`
Caused by:
process didn't exit successfully: /Users/realkgb/imaon2/src/build-run_untable/target/debug/build/build_run_untable-1da9a34996963566/build-script-build
(exit status: 101)
--- stderr
thread 'main' panicked at 'need LLVM_SRC environment variable', /Users/realkgb/imaon2/src/build-help/help.rs:143:48
stack backtrace:
0: 0x1022677e2 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h9515a3bdbd0baca0
1: 0x10227678a - core::fmt::write::hfb97b04d44bdb4d8
2: 0x10224e89c - std::io::Write::write_fmt::h686d9784d8415cb9
3: 0x10225139f - std::panicking::default_hook::{{closure}}::ha298777f08731ac8
4: 0x10225102f - std::panicking::default_hook::hb5f65353eb4f3d66
5: 0x102251ab2 - std::panicking::rust_panic_with_hook::he911070515b336d8
6: 0x102267b33 - std::panicking::begin_panic_handler::{{closure}}::h752456daaf48f28e
7: 0x102267938 - std::sys_common::backtrace::__rust_end_short_backtrace::hc10b12502582d9b6
8: 0x1022515cd - _rust_begin_unwind
9: 0x10227b963 - core::panicking::panic_fmt::hc606b9962be5fb74
10: 0x102274cab - core::panicking::panic_display::h0e3da8917e76b83a
11: 0x102274c5c - core::panicking::panic_str::h7969729f8e5cea52
12: 0x10227b7f9 - core::option::expect_failed::h6b6f0584324e64e9
13: 0x1022259cd - core::option::Option<T>::expect::hf6c57fc7ec49b027
at /private/tmp/rust-20221125-7336-14k64x3/rustc-1.65.0-src/library/core/src/option.rs:738:21
14: 0x102224e15 - build_help::get_llvm_src::hb4ef9e3af8feb8bd
at /Users/realkgb/imaon2/src/build-help/help.rs:143:19
15: 0x1022202bb - build_script_build::main::hd1a2715106099c4f
at /Users/realkgb/imaon2/src/build-run_untable/build.rs:6:5
16: 0x102222aae - core::ops::function::FnOnce::call_once::h1bf645e6dae22b50
at /private/tmp/rust-20221125-7336-14k64x3/rustc-1.65.0-src/library/core/src/ops/function.rs:248:5
17: 0x102220d41 - std::sys_common::backtrace::__rust_begin_short_backtrace::h166ae8b46d0c7aa8
at /private/tmp/rust-20221125-7336-14k64x3/rustc-1.65.0-src/library/std/src/sys_common/backtrace.rs:122:18
18: 0x1022201b4 - std::rt::lang_start::{{closure}}::h2e28e31f4f182d64
at /private/tmp/rust-20221125-7336-14k64x3/rustc-1.65.0-src/library/std/src/rt.rs:166:18
19: 0x10224e0b8 - std::rt::lang_start_internal::h7de129d052efa930
20: 0x102220187 - std::rt::lang_start::h9e6fa2ab69c83a43
at /private/tmp/rust-20221125-7336-14k64x3/rustc-1.65.0-src/library/std/src/rt.rs:165:17
21: 0x1022206bb - _main
22: 0x7ff8180c8310 -
Attempting to compile fmt-macho errors with 26 errors, an is:
error[E0277]: the trait bound 'macho_bind::fat_arch: Swap' is not satisfied --> macho.rs:1803:32 | 1803 | let fa: fat_arch = util::copy_from_slice(&buf[off..off + size_of::<fat_arch>()], util::BigEndian); | ^^^^^^^^^^^^^^^^^^^^^ the trait
Swap is not implemented for 'macho_bind::fat_arch'
All 26 errors are some form of the trait 'Swap' is not implemented for 'macho_bind::*namehere*'
.
I've tried with both this and the shinzou fork, both have the same errors. I'm on macOS 13.1 with homebrew. I was able to solve build-npm_update by installing llvm - I most likely have some other missing package but I'm not sure what. Any advice is appreciated