Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cargo build failes due to errors #4

Open
@sykacek

Description

@sykacek

First, I had to edit line 7 inavr-atmega328p.json to

"os": "none",

Without the change, build process stops immediately. Butcargo build still produces the following error:

Compiling avr-device v0.2.1warning: target json file contains unused fields: target-env, target-vendorerror: cannot find macro`llvm_asm`in this scope --> /home/mike/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/avr-device-0.2.1/src/asm.rs:6:14|6|     unsafe { llvm_asm!("nop") }|              ^^^^^^^^error: cannot find macro`llvm_asm`in this scope  --> /home/mike/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/avr-device-0.2.1/src/asm.rs:12:14|12|     unsafe { llvm_asm!("sleep") }|              ^^^^^^^^error: cannot find macro`llvm_asm`in this scope  --> /home/mike/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/avr-device-0.2.1/src/asm.rs:18:14|18|     unsafe { llvm_asm!("wdr") }|              ^^^^^^^^error: cannot find macro`llvm_asm`in this scope  --> /home/mike/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/avr-device-0.2.1/src/interrupt.rs:17:9|17|         llvm_asm!(|         ^^^^^^^^error: cannot find macro`llvm_asm`in this scope  --> /home/mike/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/avr-device-0.2.1/src/interrupt.rs:30:5|30|     llvm_asm!(|     ^^^^^^^^error: cannot find macro`llvm_asm`in this scope  --> /home/mike/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/avr-device-0.2.1/src/interrupt.rs:46:9|46|         llvm_asm!(|         ^^^^^^^^error[E0635]: unknown feature`llvm_asm`  --> /home/mike/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/avr-device-0.2.1/src/lib.rs:23:12|23|#![feature(llvm_asm)]|            ^^^^^^^^For more information about this error, try`rustc --explain E0635`.warning:`avr-device` (lib) generated 1 warningerror: could not compile`avr-device` (lib) due to 7 previous errors; 1 warning emitted

Output ofrustup show

Default host: x86_64-unknown-linux-gnurustup home:  /home/mike/.rustupinstalled toolchains--------------------stable-x86_64-unknown-linux-gnunightly-2024-03-22-x86_64-unknown-linux-gnunightly-x86_64-unknown-linux-gnu (default)active toolchain----------------nightly-x86_64-unknown-linux-gnu (default)rustc 1.87.0-nightly (96cfc7558 2025-02-27)

How can I fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp