Skip to content

error[E0425]: cannot find function f128_support_lib in module libc_fns when building under Windows 10 #54

Open
@1Tiphereth

Description

@1Tiphereth

Upon trying to build --all under Windows 10 22H2 via cargo +nightly build --all the build process encounters the error error[E0425]: cannot find function "f128_support_lib" in module "libc_fns"

PS C:\Users\gab\rustc_codegen_clr> cargo +nightly build --all
warning: C:\Users\gab\rustc_codegen_clr\Cargo.toml: unused manifest key: profile.dev.oom
warning: C:\Users\gab\rustc_codegen_clr\Cargo.toml: unused manifest key: profile.release.oom
warning: unused import: `std::path::PathBuf`
 --> cilly\src\libc_fns.rs:1:5
  |
1 | use std::path::PathBuf;
  |     ^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused variable: `tpe`
   --> cilly\src\v2\cilroot.rs:151:40
    |
151 |             CILRoot::CpObj { src, dst, tpe } => [src, dst].into(),
    |                                        ^^^ help: try ignoring the field: `tpe: _`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: variable does not need to be mutable
   --> cilly\src\v2\il_exporter\mod.rs:186:21
    |
186 |                 let mut is_in_multiblock_handler = false;
    |                     ----^^^^^^^^^^^^^^^^^^^^^^^^
    |                     |
    |                     help: remove this `mut`
    |
    = note: `#[warn(unused_mut)]` on by default

warning: unused variable: `tpe`
  --> cilly\src\v2\iter.rs:92:62
   |
92 |                 CILIterElem::Root(CILRoot::CpObj { src, dst, tpe }) => match idx {
   |                                                              ^^^ help: try ignoring the field: `tpe: _`

warning: `cilly` (lib) generated 4 warnings (run `cargo fix --lib -p cilly` to apply 2 suggestions)
   Compiling cilly v0.1.1 (C:\Users\gab\rustc_codegen_clr\cilly)
warning: type `SystemThreadingTasks_TaskDebugView` should have an upper camel case name
    --> mycorrhiza\src\bindings.rs:6773:22
     |
6773 |             pub type SystemThreadingTasks_TaskDebugView =
     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `SystemThreadingTasksTaskDebugView`
     |
     = note: `#[warn(non_camel_case_types)]` on by default

warning: unused import: `std::ptr::null`
 --> mycorrhiza\src\intrinsics.rs:1:5
  |
1 | use std::ptr::null;
  |     ^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: `mycorrhiza` (lib) generated 2 warnings (run `cargo fix --lib -p mycorrhiza` to apply 1 suggestion)
warning: unused import: `core::f16`
 --> src\constant.rs:1:5
  |
1 | use core::f16;
  |     ^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `call`
 --> src\constant.rs:6:5
  |
6 |     call,
  |     ^^^^

warning: unused import: `sub`
 --> src\terminator\intrinsics\utilis.rs:5:5
  |
5 |     sub,
  |     ^^^

warning: `rustc_codegen_clr` (lib) generated 3 warnings (run `cargo fix --lib -p rustc_codegen_clr` to apply 3 suggestions)
error[E0425]: cannot find function `f128_support_lib` in module `libc_fns`
   --> cilly\src\bin\linker\main.rs:191:43
    |
191 |     if let Some(f128_support) = libc_fns::f128_support_lib() {
    |                                           ^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `f128_support`
    |
   ::: C:\Users\gab\rustc_codegen_clr\cilly\src\libc_fns.rs:701:1
    |
701 | pub fn f128_support() -> Option<String> {
    | --------------------------------------- similarly named function `f128_support` defined here
    |
note: found an item that was configured out
   --> C:\Users\gab\rustc_codegen_clr\cilly\src\libc_fns.rs:683:8
    |
683 | pub fn f128_support_lib() -> Option<PathBuf> {
    |        ^^^^^^^^^^^^^^^^
note: the item is gated here
   --> C:\Users\gab\rustc_codegen_clr\cilly\src\libc_fns.rs:681:1
    |
681 | #[cfg(all(target_os = "linux", target_env = "gnu"))]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused variable: `file_path`
   --> cilly\src\bin\linker\native_passtrough.rs:127:19
    |
127 | pub fn add_shared(file_path: &str, native_pastrough: &mut NativePastroughInfo) {
    |                   ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `native_pastrough`
   --> cilly\src\bin\linker\native_passtrough.rs:127:36
    |
127 | pub fn add_shared(file_path: &str, native_pastrough: &mut NativePastroughInfo) {
    |                                    ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_native_pastrough`

For more information about this error, try `rustc --explain E0425`.
warning: `cilly` (bin "linker") generated 2 warnings
error: could not compile `cilly` (bin "linker") due to 1 previous error; 2 warnings emitted
PS C:\Users\gab\rustc_codegen_clr> dotnet --info
.NET SDK:
 Version:           8.0.202
 Commit:            25674bb2f4
 Workload version:  8.0.200-manifests.8cf8de6d

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19045
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\8.0.202\

.NET workloads installed:
There are no installed workloads to display.

Host:
  Version:      8.0.3
  Architecture: x64
  Commit:       9f4b1f5d66

.NET SDKs installed:
  8.0.202 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 6.0.28 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions