Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP raw_dylib: write the import .lib manually. #1414

Closed
wants to merge 11 commits into from

Add basic raw_dylib test

cc26ee1
Select commit
Loading
Failed to load commit list.
Closed

WIP raw_dylib: write the import .lib manually. #1414

Add basic raw_dylib test
cc26ee1
Select commit
Loading
Failed to load commit list.
Cirrus CI / freebsd failed Nov 27, 2023 in 3m 18s

Task Summary

Instruction test failed in 02:03

Details

✅ 00:01 clone
✅ 00:22 setup_rust
✅ 00:00 target
✅ 00:48 prepare
❌ 02:03 test

   Compiling smallvec v1.11.0
   Compiling rustc-hash v1.1.0
   Compiling slice-group-by v0.3.1
   Compiling cranelift-entity v0.101.2
   Compiling cranelift-bforest v0.101.2
   Compiling cranelift-control v0.101.2
   Compiling regalloc2 v0.9.2
   Compiling gimli v0.28.0
   Compiling bumpalo v3.14.0
   Compiling crc32fast v1.3.2
   Compiling libc v0.2.148
   Compiling anyhow v1.0.75
   Compiling memchr v2.6.3
   Compiling object v0.32.0
   Compiling bitflags v1.3.2
   Compiling region v2.2.0
   Compiling cranelift-module v0.101.2
   Compiling cranelift-native v0.101.2
   Compiling wasmtime-jit-icache-coherence v14.0.2
   Compiling cranelift-jit v0.101.2
   Compiling cranelift-object v0.101.2
   Compiling cranelift-frontend v0.101.2
   Compiling ar_archive_writer v0.1.5
   Compiling libloading v0.7.4
   Compiling rustc_codegen_cranelift v0.1.0 (/tmp/cirrus-ci-build)
error: struct `UnsupportedTargetForRawDyLib` is never constructed
 --> src/archive.rs:9:8
  |
9 | struct UnsupportedTargetForRawDyLib;
  |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `-D dead-code` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(dead_code)]`

error: variant `NameExportAs` is never constructed
   --> src/dll_import_lib/coff.rs:117:5
    |
107 | pub(crate) enum ImportNameType {
    |                 -------------- variant in this enum
...
117 |     NameExportAs { export_name: String },
    |     ^^^^^^^^^^^^

error: variants `Data` and `Const` are never constructed
   --> src/dll_import_lib/coff.rs:138:5
    |
136 | pub(crate) enum ImportType {
    |                 ---------- variants in this enum
137 |     Code,
138 |     Data,
    |     ^^^^
139 |     Const,
    |     ^^^^^

error: could not compile `rustc_codegen_cranelift` (lib) due to 3 previous errors
CARGO_BUILD_INCREMENTAL="false" CARGO_ENCODED_RUSTDOCFLAGS="" CARGO_ENCODED_RUSTFLAGS="-Zallow-features=rustc_private\u{1f}-Dwarnings" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="true" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="true" RUSTC="/.rustup/toolchains/nightly-2023-10-29-x86_64-unknown-freebsd/bin/rustc" RUSTDOC="/.rustup/toolchains/nightly-2023-10-29-x86_64-unknown-freebsd/bin/rustdoc" "/.rustup/toolchains/nightly-2023-10-29-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" exited with status ExitStatus(unix_wait_status(25856))