GithubHelp home page GithubHelp logo

Compile failed about amdgpu_top HOT 6 CLOSED

aidyw avatar aidyw commented on June 9, 2024
Compile failed

from amdgpu_top.

Comments (6)

Umio-Yasuno avatar Umio-Yasuno commented on June 9, 2024

std::os::fd has been public since Rust v1.66.0.
https://doc.rust-lang.org/stable/std/os/fd/index.html

Could you try this branch?
https://github.com/Umio-Yasuno/amdgpu_top/tree/into_raw_fd

from amdgpu_top.

aidyw avatar aidyw commented on June 9, 2024

Same problem:

Compiling libamdgpu_top v0.1.7 (/usr/src/amdgpu_top/crates/libamdgpu_top)
error[E0432]: unresolved import std::os::fd::IntoRawFd
--> crates/libamdgpu_top/src/device_path.rs:49:17
|
49 | use std::os::fd::IntoRawFd;
| ^^^^^^^^^^^^^^^^^^^^^^ no IntoRawFd in os::fd

from amdgpu_top.

aidyw avatar aidyw commented on June 9, 2024

rustc 1.65.0

Package support on Ubuntu 22.04.2 LTS. (Ubuntu's latest LTS). Oh dear....lagging, but this will make it troublesome so many people if this is the problem. Just a heads up.

from amdgpu_top.

Umio-Yasuno avatar Umio-Yasuno commented on June 9, 2024

It looks like the branch is still in main or has not been updated.

Same problem:

Compiling libamdgpu_top v0.1.7 (/usr/src/amdgpu_top/crates/libamdgpu_top) error[E0432]: unresolved import std::os::fd::IntoRawFd --> crates/libamdgpu_top/src/device_path.rs:49:17 | 49 | use std::os::fd::IntoRawFd; | ^^^^^^^^^^^^^^^^^^^^^^ no IntoRawFd in os::fd

from amdgpu_top.

aidyw avatar aidyw commented on June 9, 2024

I would love to try your code, but I'm not patching the rust install just to get it to compile. It will be a rabbit hole and as much as it would be great to test. I've moved on to some work.
Thanks anyway, maybe when the maintainers bring the packages up to date I will look again.

from amdgpu_top.

Umio-Yasuno avatar Umio-Yasuno commented on June 9, 2024

I have been able to reproduce and fix the problem in my environment, so I am closing this issue.

from amdgpu_top.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.