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

Failing to build the project #123

Open
rodoufu opened this issue Jan 15, 2021 · 2 comments
Open

Failing to build the project #123

rodoufu opened this issue Jan 15, 2021 · 2 comments

Comments

@rodoufu
Copy link

rodoufu commented Jan 15, 2021

$ 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
Copy link
Collaborator

rozbb commented Jun 2, 2021

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

@alfiedotwtf
Copy link
Contributor

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

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

3 participants