Aatch / ramp

RAMP - Rust Arithmetic in Multiple Precision
Apache License 2.0
263 stars 38 forks source link

Failing to build the project #123

Open rodoufu opened 3 years ago

rodoufu commented 3 years ago
$ cargo +nightly build
   Compiling ramp v0.5.9 (/home/rodolfo/git/ramp)
error: expected one of `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `"adc {1}, {bh}"`
   --> src/ll/limb.rs:559:21
    |
558 |                     "add {0}, {bl}", // adds bl to al and stores in low
    |                                     - expected one of 8 possible tokens
559 |                     "adc {1}, {bh}", // adds bh to ah with carry and stores in high
    |                     ^^^^^^^^^^^^^^^ unexpected token

error: expected one of `const`, `in`, `inlateout`, `inout`, `lateout`, `options`, `out`, or `sym`, found `"sbb {1}, {bh}"`
   --> src/ll/limb.rs:608:21
    |
607 |                     "sub {0}, {bl}", // subtracts bl from al and stores in low
    |                                     - expected one of 8 possible tokens
608 |                     "sbb {1}, {bh}", // subtracts bh from ah with carry and stores in high
    |                     ^^^^^^^^^^^^^^^ unexpected token

error: aborting due to 2 previous errors

error: could not compile `ramp`.

To learn more, run the command again with --verbose.
rozbb commented 3 years ago

What compiler version are you on? The crate builds on my machine and on Travis CI

alfiedotwtf commented 2 years ago

Hi @rozbb.

Are you able to try building it on non-Travis? Mine (0.6.0 with cargo 1.59.0-nightly (fcef61230 2021-12-17)) is failing with:

error: cannot find macro `asm` in this scope
   --> /root/.cargo/registry/src/github.com-1ecc6299
db9ec823/ramp-0.6.0/src/ll/limb.rs:467:17
    |
467 |                 asm!(
    |                 ^^^
    |
    = note: consider importing this macro:
            std::arch::asm