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 error on Windows #179

Closed
Xerxes004 opened this issue Jul 2, 2024 · 2 comments · Fixed by #180
Closed

Build error on Windows #179

Xerxes004 opened this issue Jul 2, 2024 · 2 comments · Fixed by #180

Comments

@Xerxes004
Copy link

Xerxes004 commented Jul 2, 2024

I am using oci-spec in a roundabout way via intel-mkl-src [0.8.0] -> ocipkg [0.2.9].

Build output

error[E0599]: no variant or associated item named `RlimitNofile` found for enum `PosixRlimitType` in the current scope
   --> C:\Users\Xerxes004\.cargo\registry\src\index.crates.io-6f17d22bba15001f\oci-spec-0.6.6\src\runtime\process.rs:151:39
    |
151 |                 typ: PosixRlimitType::RlimitNofile,
    |                                       ^^^^^^^^^^^^ variant or associated item not found in `PosixRlimitType`
...
191 | pub enum PosixRlimitType {
    | ------------------------ variant or associated item `RlimitNofile` not found for this enum


error[E0599]: no variant or associated item named `RlimitCpu` found for enum `PosixRlimitType` in the current scope
   --> C:\Users\Xerxes004\.cargo\registry\src\index.crates.io-6f17d22bba15001f\oci-spec-0.6.6\src\runtime\process.rs:265:15
    |
191 | pub enum PosixRlimitType {
    | ------------------------ variant or associated item `RlimitCpu` not found for this enum
...
265 |         Self::RlimitCpu
    |               ^^^^^^^^^ variant or associated item not found in `PosixRlimitType`

Cargo tree

├── My library
│   ├── cblas v0.4.0
│   │   ├── cblas-sys v0.1.4
│   │   │   └── libc v0.2.155
│   │   ├── libc v0.2.155
│   │   └── num-complex v0.4.6
│   │       └── num-traits v0.2.19 (*)
│   ├── intel-mkl-src v0.8.0
│   │   [build-dependencies]
│   │   ├── anyhow v1.0.86
│   │   ├── intel-mkl-tool v0.8.1
│   │   │   ├── anyhow v1.0.86
│   │   │   ├── log v0.4.22
│   │   │   └── walkdir v2.5.0
│   │   │       ├── same-file v1.0.6
│   │   │       │   └── winapi-util v0.1.8
│   │   │       │       └── windows-sys v0.52.0
│   │   │       │           └── windows-targets v0.52.5 (*)
│   │   │       └── winapi-util v0.1.8 (*)
│   │   └── ocipkg v0.2.9
│   │       ├── base16ct v0.2.0
│   │       ├── base64 v0.22.1
│   │       ├── chrono v0.4.38
│   │       │   ├── num-traits v0.2.19
│   │       │   │   [build-dependencies]
│   │       │   │   └── autocfg v1.3.0
│   │       │   └── windows-targets v0.52.5 (*)
│   │       ├── directories v5.0.1
│   │       │   └── dirs-sys v0.4.1
│   │       │       ├── option-ext v0.2.0
│   │       │       └── windows-sys v0.48.0
│   │       │           └── windows-targets v0.48.5 (*)
│   │       ├── flate2 v1.0.30
│   │       │   ├── crc32fast v1.4.2
│   │       │   │   └── cfg-if v1.0.0
│   │       │   └── miniz_oxide v0.7.4
│   │       │       └── adler v1.0.2
│   │       ├── lazy_static v1.5.0
│   │       ├── log v0.4.22
│   │       ├── oci-spec v0.6.6



@saschagrunert
Copy link
Contributor

Working on a fix.

@Xerxes004
Copy link
Author

Much appreciated

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

Successfully merging a pull request may close this issue.

2 participants