Skip to content

Parse and set Mach-O section type and attributes

2783559
Select commit
Loading
Failed to load commit list.
Draft

Parse and set Mach-O section type and attributes #1648

Parse and set Mach-O section type and attributes
2783559
Select commit
Loading
Failed to load commit list.
Cirrus CI / freebsd failed Apr 19, 2026 in 3m 10s

Task Summary

Instruction test failed in 02:09

Details

✅ 00:02 clone
✅ 00:13 setup_rust
✅ 00:14 target
✅ 00:28 prepare
❌ 02:09 test

  Downloaded gimli v0.33.0
  Downloaded libc v0.2.180
  Downloaded cranelift-codegen v0.130.0
   Compiling cranelift-assembler-x64-meta v0.130.0
   Compiling cranelift-bitset v0.130.0
   Compiling cranelift-entity v0.130.0
   Compiling regalloc2 v0.15.0
   Compiling cranelift-assembler-x64 v0.130.0
   Compiling cranelift-codegen-meta v0.130.0
   Compiling cranelift-codegen v0.130.0
   Compiling gimli v0.33.0
   Compiling cranelift-bforest v0.130.0
   Compiling target-lexicon v0.13.4
   Compiling cranelift-module v0.130.0
   Compiling cranelift-native v0.130.0
   Compiling cranelift-jit v0.130.0
   Compiling cranelift-object v0.130.0
   Compiling cranelift-frontend v0.130.0
   Compiling rustc_codegen_cranelift v0.1.0 (/tmp/cirrus-ci-build)
error[E0061]: this method takes 2 arguments but 3 arguments were supplied
   --> src/constant.rs:470:18
    |
470 |             data.set_segment_section(segment_name, section_name, macho_flags);
    |                  ^^^^^^^^^^^^^^^^^^^                             ----------- unexpected argument #3 of type `u32`
    |
note: method defined here
   --> /.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cranelift-module-0.130.0/src/data_context.rs:115:12
    |
115 |     pub fn set_segment_section(&mut self, seg: &str, sec: &str) {
    |            ^^^^^^^^^^^^^^^^^^^
help: remove the extra argument
    |
470 -             data.set_segment_section(segment_name, section_name, macho_flags);
470 +             data.set_segment_section(segment_name, section_name);
    |

error[E0061]: this method takes 2 arguments but 3 arguments were supplied
   --> src/debuginfo/unwind.rs:208:26
    |
208 |                     data.set_segment_section("", ".gcc_except_table", 0);
    |                          ^^^^^^^^^^^^^^^^^^^                          - unexpected argument #3 of type `{integer}`
    |
note: method defined here
   --> /.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cranelift-module-0.130.0/src/data_context.rs:115:12
    |
115 |     pub fn set_segment_section(&mut self, seg: &str, sec: &str) {
    |            ^^^^^^^^^^^^^^^^^^^
help: remove the extra argument
    |
208 -                     data.set_segment_section("", ".gcc_except_table", 0);
208 +                     data.set_segment_section("", ".gcc_except_table");
    |

For more information about this error, try `rustc --explain E0061`.
error: could not compile `rustc_codegen_cranelift` (lib) due to 2 previous errors
env -u RUSTC_WRAPPER CARGO_ENCODED_RUSTDOCFLAGS="" CARGO_ENCODED_RUSTFLAGS="-Zallow-features=rustc_private,f16,f128" RUSTC="/.rustup/toolchains/nightly-2026-04-17-x86_64-unknown-freebsd/bin/rustc" RUSTDOC="/.rustup/toolchains/nightly-2026-04-17-x86_64-unknown-freebsd/bin/rustdoc" "/.rustup/toolchains/nightly-2026-04-17-x86_64-unknown-freebsd/bin/cargo" "build" "--manifest-path" "/tmp/cirrus-ci-build/./Cargo.toml" "--target-dir" "/tmp/cirrus-ci-build/build/cg_clif" "--locked" "--target" "x86_64-unknown-freebsd" "--features" "unstable-features" "--release" "-Zno-embed-metadata" exited with status ExitStatus(unix_wait_status(25856))