sarah-quinones/gemm

Build fails on i386: no function or associated item named `new` found for struct `CpuId` in the current scope

Opened this issue · 1 comments

While building the https://github.com/oxfordcontrol/Clarabel.rs project on i386, this error occurred:

   Compiling gemm-common v0.18.0
error[E0599]: no function or associated item named `new` found for struct `CpuId` in the current scope
   --> /wrkdirs/usr/ports/math/py-clarabel/work-py311/Clarabel.rs-0.9.0/cargo-crates/gemm-common-0.18.0/src/cache.rs:301:32
    |
301 |             let cpuid = CpuId::new();
    |                                ^^^ function or associated item not found in `CpuId`
    |
note: if you're trying to build a new `CpuId`, consider using `CpuId::with_cpuid_fn` which returns `CpuId`
   --> /wrkdirs/usr/ports/math/py-clarabel/work-py311/Clarabel.rs-0.9.0/cargo-crates/raw-cpuid-10.7.0/src/lib.rs:350:5
    |
350 |     pub fn with_cpuid_fn(cpuid_fn: fn(u32, u32) -> CpuIdResult) -> Self {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0599`.
error: could not compile `gemm-common` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
💥 maturin failed
  Caused by: Failed to build a native library through cargo
  Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.11-64bit" PYO3_PYTHON="/usr/local/bin/python3.11" PYTHON_SYS_EXECUTABLE="/usr/local/bin/python3.11" "cargo" "rustc" "--features" "python" "--message-format" "json-render-diagnostics" "--manifest-path" "/wrkdirs/usr/ports/math/py-clarabel/work-py311/Clarabel.rs-0.9.0/Cargo.toml" "--release" "--lib" "--crate-type" "cdylib"`
Error: command ['maturin-3.11', 'pep517', 'build-wheel', '-i', '/usr/local/bin/python3.11', '--compatibility', 'off'] returned non-zero exit status 1

rust-1.79.0
FreeBSD 14.1

looks like i have to disable cpuid checking for sgx. thanks for reporting this