Giter Site home page Giter Site logo

does not build on MIPS about quanta HOT 5 CLOSED

nazar554 avatar nazar554 commented on June 18, 2024
does not build on MIPS

from quanta.

Comments (5)

tobz avatar tobz commented on June 18, 2024

I'll see if I can backport your PR to an 0.3 version of quanta and potentially do a patch release to help ya out.

from quanta.

nazar554 avatar nazar554 commented on June 18, 2024

I have a feature/atomic-shim-0.3.1 branch in my fork, it seems to build already. I addeda #[ctor] hack for static initializtion of AtomicU64

from quanta.

tobz avatar tobz commented on June 18, 2024

Nice. I created a branch, 0.3-lts, based off of the 0.3.1 commit. If you want to submit that feature branch as a PR, based against the LTS branch, we can get that going as well, and hopefully released quickly.

from quanta.

messense avatar messense commented on June 18, 2024

Compilation error when cross compile to MIPS (mipsel-unknown-linux-musl).

   Compiling quanta v0.9.2
error[E0599]: no method named `fetch_add` found for struct `Arc<AtomicCell<u64>>` in the current scope
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/quanta-0.9.2/src/mock.rs:48:21
   |
48 |         self.offset.fetch_add(amount.into_nanos());
   |                     ^^^^^^^^^ method not found in `Arc<AtomicCell<u64>>`

error[E0599]: no method named `fetch_sub` found for struct `Arc<AtomicCell<u64>>` in the current scope
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/quanta-0.9.2/src/mock.rs:53:21
   |
53 |         self.offset.fetch_sub(amount.into_nanos());
   |                     ^^^^^^^^^ method not found in `Arc<AtomicCell<u64>>`

error: aborting due to 2 previous errors

from quanta.

nazar554 avatar nazar554 commented on June 18, 2024

@messense crossbeam disables 64-bit atomics on unsupported platforms (with crossbeam_no_atomic_64 feature)
See crossbeam-rs/crossbeam#731

Can be fixed by not using crossbeam on MIPS & PowerPC, or implementing support for atomic_shim there as well

from quanta.

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.