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

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

Open
yurivict opened this issue Jun 21, 2024 · 1 comment

Comments

@yurivict
Copy link

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

@sarah-quinones
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants