hermit-os / uhyve

A specialized hypervisor for Hermit.
Apache License 2.0
254 stars 29 forks source link

Install fails with `error: cannot find macro llvm_asm in this scope` #344

Closed joshhansen closed 2 years ago

joshhansen commented 2 years ago
$ cargo +nightly install uhyve --locked
    Updating crates.io index
  Installing uhyve v0.0.28
warning: package `aligned_alloc v0.1.3` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `crossbeam-deque v0.8.0` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `crossbeam-epoch v0.9.1` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `crossbeam-utils v0.8.1` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
   Compiling libc v0.2.94
   Compiling bitflags v1.2.1
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling cfg-if v1.0.0
   Compiling syn v1.0.54
   Compiling memchr v2.3.4
   Compiling winapi-build v0.1.1
   Compiling log v0.4.14
   Compiling lazy_static v1.4.0
   Compiling cc v1.0.66
   Compiling unicode-segmentation v1.7.1
   Compiling unicode-width v0.1.8
   Compiling regex-syntax v0.6.21
   Compiling winapi v0.2.8
   Compiling mac_address v1.1.1
   Compiling x86 v0.37.0
   Compiling bit_field v0.10.1
   Compiling ansi_term v0.11.0
   Compiling strsim v0.8.0
   Compiling termcolor v1.1.2
   Compiling plain v0.2.3
   Compiling humantime v2.0.1
   Compiling vec_map v0.8.2
   Compiling byteorder v1.4.3
   Compiling virtio-bindings v0.1.0
   Compiling rustc-serialize v0.3.24
   Compiling burst v0.0.2
   Compiling strum v0.20.0
   Compiling kernel32-sys v0.2.2
   Compiling thread_local v1.0.1
   Compiling textwrap v0.11.0
   Compiling heck v0.3.1
   Compiling tun-tap v0.1.2
   Compiling aho-corasick v0.7.15
   Compiling gdb-protocol v0.1.0
   Compiling raw-cpuid v9.0.0
   Compiling quote v1.0.7
   Compiling regex v1.4.2
error: cannot find macro `llvm_asm` in this scope
 --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/task.rs:9:14
  |
9 |     unsafe { llvm_asm!("str $0" : "=r" (segment) ) };
  |              ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:620:14
    |
620 |     unsafe { llvm_asm!("mov %gs, $0" : "=r" (segment) ) };
    |              ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:613:14
    |
613 |     unsafe { llvm_asm!("mov %fs, $0" : "=r" (segment) ) };
    |              ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:606:14
    |
606 |     unsafe { llvm_asm!("mov %ds, $0" : "=r" (segment) ) };
    |              ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:599:14
    |
599 |     unsafe { llvm_asm!("mov %ss, $0" : "=r" (segment) ) };
    |              ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:592:14
    |
592 |     unsafe { llvm_asm!("mov %es, $0" : "=r" (segment) ) };
    |              ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:585:14
    |
585 |     unsafe { llvm_asm!("mov %cs, $0" : "=r" (segment) ) };
    |              ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/lib.rs:118:5
    |
118 |     llvm_asm!("rdpid $0" : "=r"(pid));
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/lib.rs:91:5
   |
91 |     llvm_asm!("hlt" :::: "volatile");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
 --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/tlb.rs:9:5
  |
9 |     llvm_asm!("invlpg ($0)" :: "r" (addr) : "memory");
  |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/task.rs:15:5
   |
15 |     llvm_asm!("ltr $0" :: "r" (sel.bits()));
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:577:5
    |
577 |     llvm_asm!("movw $0, %gs " :: "r" (sel.bits()) : "memory");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:572:5
    |
572 |     llvm_asm!("movw $0, %fs " :: "r" (sel.bits()) : "memory");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:567:5
    |
567 |     llvm_asm!("movw $0, %es " :: "r" (sel.bits()) : "memory");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:562:5
    |
562 |     llvm_asm!("movw $0, %ds " :: "r" (sel.bits()) : "memory");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/segmentation.rs:557:5
    |
557 |     llvm_asm!("movw $0, %ss " :: "r" (sel.bits()) : "memory");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/msr.rs:14:5
   |
14 |     llvm_asm!("rdmsr" : "={eax}" (low), "={edx}" (high) : "{ecx}" (msr) : "memory" : "volatile");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
 --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/msr.rs:7:5
  |
7 |     llvm_asm!("wrmsr" :: "{ecx}" (msr), "{eax}" (low), "{edx}" (high) : "memory" : "volatile" );
  |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/irq.rs:363:5
    |
363 |     llvm_asm!("cli");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/irq.rs:355:5
    |
355 |     llvm_asm!("sti");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/io.rs:41:5
   |
41 |     llvm_asm!("inl %dx, %eax" : "={ax}"(ret) : "{dx}"(port) :: "volatile");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/io.rs:34:5
   |
34 |     llvm_asm!("outl %eax, %dx" :: "{dx}"(port), "{al}"(val));
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/io.rs:27:5
   |
27 |     llvm_asm!("inw %dx, %ax" : "={ax}"(ret) : "{dx}"(port) :: "volatile");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/io.rs:20:5
   |
20 |     llvm_asm!("outw %ax, %dx" :: "{dx}"(port), "{al}"(val));
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/io.rs:13:5
   |
13 |     llvm_asm!("inb %dx, %al" : "={ax}"(ret) : "{dx}"(port) :: "volatile");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
 --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/io.rs:6:5
  |
6 |     llvm_asm!("outb %al, %dx" :: "{dx}"(port), "{al}"(val));
  |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/dtables.rs:95:5
   |
95 |     llvm_asm!("sidt ($0)" : "=r" (idt as *mut DescriptorTablePointer<T>) :: "memory");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/dtables.rs:90:5
   |
90 |     llvm_asm!("lidt ($0)" :: "r" (idt) : "memory");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/dtables.rs:84:5
   |
84 |     llvm_asm!("sldt $0" : "=r"(selector));
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/dtables.rs:75:5
   |
75 |     llvm_asm!("lldt $0" :: "r" (selector.bits()) : "memory");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/dtables.rs:64:5
   |
64 |     llvm_asm!("sgdt ($0)" : "=r" (idt as *mut DescriptorTablePointer<T>) :: "memory");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/dtables.rs:59:5
   |
59 |     llvm_asm!("lgdt ($0)" :: "r" (gdt) : "memory");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/controlregs.rs:145:5
    |
145 |     llvm_asm!("mov $0, %cr4" :: "r" (val.bits) : "memory");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/controlregs.rs:129:5
    |
129 |     llvm_asm!("mov %cr4, $0" : "=r" (ret));
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/controlregs.rs:123:5
    |
123 |     llvm_asm!("mov $0, %cr3" :: "r" (val) : "memory");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/controlregs.rs:117:5
    |
117 |     llvm_asm!("mov %cr3, $0" : "=r" (ret));
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/controlregs.rs:111:5
    |
111 |     llvm_asm!("mov $0, %cr2" :: "r" (val) : "memory");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/controlregs.rs:105:5
    |
105 |     llvm_asm!("mov %cr2, $0" : "=r" (ret));
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/controlregs.rs:99:5
   |
99 |     llvm_asm!("mov $0, %cr0" :: "r" (val.bits) : "memory");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/controlregs.rs:93:5
   |
93 |     llvm_asm!("mov %cr0, $0" : "=r" (ret));
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/apic/x2apic.rs:110:13
    |
110 |             llvm_asm!("mfence" ::: "memory");
    |             ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/vmx.rs:89:5
   |
89 |     llvm_asm!("vmresume");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/vmx.rs:82:5
   |
82 |     llvm_asm!("vmlaunch");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/vmx.rs:75:5
   |
75 |     llvm_asm!("vmwrite $1, $0" : /* no outputs */ : "r"(field), "r"(value));
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/vmx.rs:68:5
   |
68 |     llvm_asm!("vmread $1, $0" : "=r"(value) : "r"(field));
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/vmx.rs:60:5
   |
60 |     llvm_asm!("vmptrst ($0)" : /* no outputs */ : "r"(&value) : "memory");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/vmx.rs:53:5
   |
53 |     llvm_asm!("vmptrld $0" : /* no outputs */ : "m"(addr));
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/vmx.rs:45:5
   |
45 |     llvm_asm!("vmclear $0" : /* no outputs */ : "m"(addr));
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/vmx.rs:36:5
   |
36 |     llvm_asm!("vmxoff");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/vmx.rs:30:5
   |
30 |     llvm_asm!("vmxon $0" : /* no outputs */ : "m"(addr));
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/syscall.rs:166:5
    |
166 |     llvm_asm!("syscall" : "={rax}" (ret)
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/syscall.rs:146:5
    |
146 |     llvm_asm!("syscall" : "={rax}" (ret)
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/syscall.rs:135:5
    |
135 |     llvm_asm!("syscall" : "={rax}" (ret)
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/syscall.rs:125:5
    |
125 |     llvm_asm!("syscall" : "={rax}" (ret) : "{rax}" (arg0), "{rdi}" (arg1), "{rsi}" (arg2), "{rdx}" (arg3)
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/syscall.rs:115:5
    |
115 |     llvm_asm!("syscall" : "={rax}" (ret) : "{rax}" (arg0), "{rdi}" (arg1), "{rsi}" (arg2)
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/syscall.rs:105:5
    |
105 |     llvm_asm!("syscall" : "={rax}" (ret) : "{rax}" (arg0), "{rdi}" (arg1)
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/syscall.rs:96:5
   |
96 |     llvm_asm!("syscall" : "={rax}" (ret) : "{rax}" (arg0) : "rcx", "r11", "memory" : "volatile");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/sgx.rs:252:5
    |
252 |     llvm_asm!("enclu" : "={eax}" (eax), "={rcx}" (out_rcx)
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/sgx.rs:243:5
    |
243 |     llvm_asm!("enclu" : "={eax}" (eax), "={rcx}" (out_rcx)
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/sgx.rs:43:5
   |
43 |     llvm_asm!("encls" : "={eax}" (eax), "={rbx}" (out_rbx)
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/sgx.rs:34:5
   |
34 |     llvm_asm!("encls" : "={eax}" (eax), "={rbx}" (out_rbx)
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/sgx.rs:25:5
   |
25 |     llvm_asm!("encls" : "={eax}" (eax), "={rbx}" (out_rbx)
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/segmentation.rs:206:5
    |
206 |     llvm_asm!("swapgs" ::: "gs");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/segmentation.rs:191:5
    |
191 |     llvm_asm!("movq %gs:0x0, $0" : "=r" (gs) );
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/segmentation.rs:183:5
    |
183 |     llvm_asm!("movq %fs:0x0, $0" : "=r" (fs) );
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/segmentation.rs:175:5
    |
175 |     llvm_asm!("rdfsbase $0" : "=r" (fs_base) );
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/segmentation.rs:166:5
    |
166 |     llvm_asm!("rdgsbase $0" : "=r" (gs_base) );
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/segmentation.rs:158:5
    |
158 |     llvm_asm!("wrfsbase $0" :: "r" (base) : "memory");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/segmentation.rs:151:5
    |
151 |     llvm_asm!("wrgsbase $0" :: "r" (base) : "memory");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/segmentation.rs:140:5
    |
140 |     llvm_asm!("pushq $0; \
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/rflags.rs:89:5
   |
89 |     llvm_asm!("pushq $0; popfq" :: "r"(val.bits()) : "memory" "flags");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/rflags.rs:82:5
   |
82 |     llvm_asm!("pushfq; popq $0" : "=r"(r) :: "memory");
   |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/registers.rs:26:9
   |
26 |         llvm_asm!("mov %rbp, $0" : "=r" (rbp) ::);
   |         ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/registers.rs:16:9
   |
16 |         llvm_asm!("mov %rsp, $0" : "=r" (rsp) ::);
   |         ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
 --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits64/registers.rs:6:9
  |
6 |         llvm_asm!("leaq 0(%rip), $0" : "=r" (rip) ::);
  |         ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits32/eflags.rs:110:5
    |
110 |     llvm_asm!("stac" ::: "memory" "flags" : "volatile");
    |     ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
  --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/bits32/eflags.rs:95:5
   |
95 |     llvm_asm!("clac" ::: "memory" "flags" : "volatile");
   |     ^^^^^^^^

error[E0635]: unknown feature `llvm_asm`
 --> /home/josh/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.37.0/src/lib.rs:3:12
  |
3 | #![feature(llvm_asm, core_intrinsics)]
  |            ^^^^^^^^

   Compiling atty v0.2.14
For more information about this error, try `rustc --explain E0635`.
error: could not compile `x86` due to 78 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `uhyve v0.0.28`, intermediate artifacts can be found at `/tmp/cargo-installT3QtOF`
$ cargo +nightly --version
cargo 1.64.0-nightly (dbff32b27 2022-06-24)

Fedora 36 x86_64

stlankes commented 2 years ago

We are waiting for some pull requests. Without these pull requests we are not able to update the version crates.io.

Please use following command:

cargo install --git https://github.com/hermitcore/uhyve.git --locked

Does it help?

joshhansen commented 2 years ago

The command you suggested gives this:

$ cargo install --git https://github.com/hermitcore/uhyve.git --locked
    Updating git repository `https://github.com/hermitcore/uhyve.git`
error: multiple packages with binaries found: uhyve, uhyve-test-kernels. When installing a git repository, cargo will always search the entire repo for any Cargo.toml. Please specify which to install.

I directly cloned the Git repo and then ran the build, and that worked, even without +nightly :+1: