RWTH-OS / eduOS-rs

A teaching operating system written in Rust
https://rwth-os.github.io/eduOS-rs/
Apache License 2.0
412 stars 26 forks source link

install ehyve error #11

Closed gongbo2018 closed 3 years ago

gongbo2018 commented 4 years ago

➜ eduOS-rs git:(master) rustup toolchain list stable-x86_64-apple-darwin (default) nightly-2020-02-20-x86_64-apple-darwin nightly-x86_64-apple-darwin

➜  eduOS-rs git:(master) rustup override set nightly
info: using existing install for 'nightly-x86_64-apple-darwin'
info: override toolchain for '/Users/wangguocheng/osSpace/eduOS-rs' set to 'nightly-x86_64-apple-darwin'

  nightly-x86_64-apple-darwin unchanged - rustc 1.45.0-nightly (74e804683 2020-05-30)
➜  eduOS-rs git:(master) cargo install --git https://github.com/RWTH-OS/ehyve.git
    Updating git repository `https://github.com/RWTH-OS/ehyve.git`
    Updating git submodule `https://github.com/RWTH-OS/libwhp.git`
  Installing ehyve v0.0.10 (https://github.com/RWTH-OS/ehyve.git#5991b98c)
    Updating crates.io index
  Downloaded lazy_static v1.4.0
  Downloaded thread_local v1.0.1
  Downloaded env_logger v0.7.1
  Downloaded semver-parser v0.7.0
  Downloaded rustc_version v0.2.3
  Downloaded cc v1.0.54
  Downloaded quick-error v1.2.3
  Downloaded humantime v1.3.0
  Downloaded elf v0.0.10
  Downloaded regex v1.3.9
  Downloaded memchr v2.3.3
  Downloaded memmap v0.7.0
  Downloaded regex-syntax v0.6.18
  Downloaded termcolor v1.1.0
  Downloaded aho-corasick v0.7.10
  Downloaded raw-cpuid v7.0.3
  Downloaded semver v0.9.0
  Downloaded byteorder v0.5.3
  Downloaded aligned_alloc v0.1.3
  Downloaded xhypervisor v0.0.12
  Downloaded bit_field v0.10.0
  Downloaded x86 v0.28.0
  Downloaded 22 crates (2.9 MB) in 12.62s (largest was `x86` at 2.0 MB)
   Compiling libc v0.2.71
   Compiling semver-parser v0.7.0
   Compiling bitflags v1.2.1
   Compiling memchr v2.3.3
   Compiling winapi-build v0.1.1
   Compiling cc v1.0.54
   Compiling lazy_static v1.4.0
   Compiling log v0.4.8
   Compiling cfg-if v0.1.10
   Compiling quick-error v1.2.3
   Compiling xhypervisor v0.0.12
   Compiling regex-syntax v0.6.18
   Compiling x86 v0.28.0
   Compiling unicode-width v0.1.7
   Compiling winapi v0.2.8
   Compiling byteorder v0.5.3
   Compiling ansi_term v0.11.0
   Compiling vec_map v0.8.2
   Compiling bit_field v0.10.0
   Compiling strsim v0.8.0
   Compiling termcolor v1.1.0
   Compiling thread_local v1.0.1
   Compiling semver v0.9.0
   Compiling humantime v1.3.0
   Compiling kernel32-sys v0.2.2
   Compiling textwrap v0.11.0
   Compiling elf v0.0.10
   Compiling rustc_version v0.2.3
   Compiling aho-corasick v0.7.10
   Compiling atty v0.2.14
   Compiling aligned_alloc v0.1.3
   Compiling memmap v0.7.0
   Compiling clap v2.33.1
   Compiling regex v1.3.9
   Compiling env_logger v0.7.1
   Compiling raw-cpuid v7.0.3
error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits32/eflags.rs:95:5
   |
95 |     asm!("clac" ::: "memory" "flags" : "volatile");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits32/eflags.rs:110:5
    |
110 |     asm!("stac" ::: "memory" "flags" : "volatile");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
 --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits32/mod.rs:9:5
  |
9 |     asm!("mov esp, $0; jmp $1" :: "rg"(stack), "r"(ip) :: "volatile", "intel");
  |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |     |
  |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
 --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/registers.rs:6:9
  |
6 |         asm!("leaq 0(%rip), $0" : "=r" (rip) ::);
  |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |         |
  |         help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/registers.rs:16:9
   |
16 |         asm!("mov %rsp, $0" : "=r" (rsp) ::);
   |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |         |
   |         help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/registers.rs:26:9
   |
26 |         asm!("mov %rbp, $0" : "=r" (rbp) ::);
   |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |         |
   |         help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/rflags.rs:82:5
   |
82 |     asm!("pushfq; popq $0" : "=r"(r) :: "memory");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/rflags.rs:89:5
   |
89 |     asm!("pushq $0; popfq" :: "r"(val.bits()) : "memory" "flags");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/segmentation.rs:140:5
    |
140 |       asm!("pushq $0; \
    |       ^---
    |       |
    |  _____help: replace with: `llvm_asm!`
    | |
141 | |           leaq  1f(%rip), %rax; \
142 | |           pushq %rax; \
143 | |           lretq; \
144 | |           1:" :: "ri" (sel.bits() as usize) : "rax" "memory");
    | |______________________________________________________________^

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/segmentation.rs:151:5
    |
151 |     asm!("wrgsbase $0" :: "r" (base) : "memory");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/segmentation.rs:158:5
    |
158 |     asm!("wrfsbase $0" :: "r" (base) : "memory");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/segmentation.rs:166:5
    |
166 |     asm!("rdgsbase $0" : "=r" (gs_base) );
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/segmentation.rs:175:5
    |
175 |     asm!("rdfsbase $0" : "=r" (fs_base) );
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/segmentation.rs:190:5
    |
190 |     asm!("swapgs" ::: "gs");
    |     ----^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/sgx.rs:25:5
   |
25 |       asm!("encls" : "={eax}" (eax), "={rbx}" (out_rbx)
   |       ^---
   |       |
   |  _____help: replace with: `llvm_asm!`
   | |
26 | |                  : "{rax}" (rax), "{rbx}" (rbx));
   | |_________________________________________________^

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/sgx.rs:34:5
   |
34 |       asm!("encls" : "={eax}" (eax), "={rbx}" (out_rbx)
   |       ^---
   |       |
   |  _____help: replace with: `llvm_asm!`
   | |
35 | |                  : "{rax}" (rax), "{rbx}" (rbx), "{rcx}" (rcx));
   | |________________________________________________________________^

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/sgx.rs:43:5
   |
43 |       asm!("encls" : "={eax}" (eax), "={rbx}" (out_rbx)
   |       ^---
   |       |
   |  _____help: replace with: `llvm_asm!`
   | |
44 | |                  : "{rax}" (rax), "{rbx}" (rbx), "{rcx}" (rcx), "{rdx}" (rdx));
   | |_______________________________________________________________________________^

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/sgx.rs:255:5
    |
255 |       asm!("enclu" : "={eax}" (eax), "={rcx}" (out_rcx)
    |       ^---
    |       |
    |  _____help: replace with: `llvm_asm!`
    | |
256 | |                  : "{rax}" (rax), "{rbx}" (rbx), "{rcx}" (rcx));
    | |________________________________________________________________^

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/sgx.rs:264:5
    |
264 |       asm!("enclu" : "={eax}" (eax), "={rcx}" (out_rcx)
    |       ^---
    |       |
    |  _____help: replace with: `llvm_asm!`
    | |
265 | |                  : "{rax}" (rax), "{rbx}" (rbx), "{rcx}" (rcx), "{rdx}" (rdx));
    | |_______________________________________________________________________________^

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/syscall.rs:96:5
   |
96 |     asm!("syscall" : "={rax}" (ret) : "{rax}" (arg0) : "rcx", "r11", "memory" : "volatile");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/syscall.rs:104:5
    |
104 |       asm!("syscall" : "={rax}" (ret) : "{rax}" (arg0), "{rdi}" (arg1)
    |       ^---
    |       |
    |  _____help: replace with: `llvm_asm!`
    | |
105 | |                    : "rcx", "r11", "memory" : "volatile");
    | |__________________________________________________________^

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/syscall.rs:113:5
    |
113 |       asm!("syscall" : "={rax}" (ret) : "{rax}" (arg0), "{rdi}" (arg1), "{rsi}" (arg2)
    |       ^---
    |       |
    |  _____help: replace with: `llvm_asm!`
    | |
114 | |                    : "rcx", "r11", "memory" : "volatile");
    | |__________________________________________________________^

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/syscall.rs:122:5
    |
122 |       asm!("syscall" : "={rax}" (ret) : "{rax}" (arg0), "{rdi}" (arg1), "{rsi}" (arg2), "{rdx}" (arg3)
    |       ^---
    |       |
    |  _____help: replace with: `llvm_asm!`
    | |
123 | |                    : "rcx", "r11", "memory" : "volatile");
    | |__________________________________________________________^

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/syscall.rs:131:5
    |
131 |       asm!("syscall" : "={rax}" (ret)
    |       ^---
    |       |
    |  _____help: replace with: `llvm_asm!`
    | |
132 | |                    : "{rax}"  (arg0), "{rdi}"  (arg1), "{rsi}"  (arg2), "{rdx}"  (arg3), "{r10}"  (arg4)
133 | |                    : "rcx", "r11", "memory" : "volatile");
    | |__________________________________________________________^

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/syscall.rs:141:5
    |
141 |       asm!("syscall" : "={rax}" (ret)
    |       ^---
    |       |
    |  _____help: replace with: `llvm_asm!`
    | |
142 | |                    : "{rax}" (arg0), "{rdi}" (arg1), "{rsi}" (arg2), "{rdx}" (arg3), "{r10}" (arg4), "{r8}" (arg5)
143 | |                    : "rcx", "r11", "memory"
144 | |                    : "volatile");
    | |_________________________________^

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/syscall.rs:160:5
    |
160 |       asm!("syscall" : "={rax}" (ret)
    |       ^---
    |       |
    |  _____help: replace with: `llvm_asm!`
    | |
161 | |                    : "{rax}" (arg0), "{rdi}" (arg1), "{rsi}" (arg2), "{rdx}" (arg3),
162 | |                      "{r10}" (arg4), "{r8}" (arg5), "{r9}" (arg6)
163 | |                    : "rcx", "r11", "memory"
164 | |                    : "volatile");
    | |_________________________________^

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/vmx.rs:30:5
   |
30 |     asm!("vmxon $0" : /* no outputs */ : "m"(addr));
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/vmx.rs:45:5
   |
45 |     asm!("vmclear $0" : /* no outputs */ : "m"(addr));
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/vmx.rs:53:5
   |
53 |     asm!("vmptrld $0" : /* no outputs */ : "m"(addr));
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/vmx.rs:60:5
   |
60 |     asm!("vmptrst ($0)" : /* no outputs */ : "r"(&value) : "memory");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/vmx.rs:68:5
   |
68 |     asm!("vmread $1, $0" : "=r"(value) : "r"(field));
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/bits64/vmx.rs:75:5
   |
75 |     asm!("vmwrite $1, $0" : /* no outputs */ : "r"(field), "r"(value));
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/controlregs.rs:93:5
   |
93 |     asm!("mov %cr0, $0" : "=r" (ret));
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/controlregs.rs:99:5
   |
99 |     asm!("mov $0, %cr0" :: "r" (val.bits) : "memory");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/controlregs.rs:105:5
    |
105 |     asm!("mov %cr2, $0" : "=r" (ret));
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/controlregs.rs:111:5
    |
111 |     asm!("mov $0, %cr2" :: "r" (val) : "memory");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/controlregs.rs:117:5
    |
117 |     asm!("mov %cr3, $0" : "=r" (ret));
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/controlregs.rs:123:5
    |
123 |     asm!("mov $0, %cr3" :: "r" (val) : "memory");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/controlregs.rs:129:5
    |
129 |     asm!("mov %cr4, $0" : "=r" (ret));
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/controlregs.rs:145:5
    |
145 |     asm!("mov $0, %cr4" :: "r" (val.bits) : "memory");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/dtables.rs:59:5
   |
59 |     asm!("lgdt ($0)" :: "r" (gdt) : "memory");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/dtables.rs:64:5
   |
64 |     asm!("sgdt ($0)" : "=r" (idt as *mut DescriptorTablePointer<T>) :: "memory");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/dtables.rs:75:5
   |
75 |     asm!("lldt $0" :: "r" (selector.bits()) : "memory");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/dtables.rs:84:5
   |
84 |     asm!("sldt $0" : "=r"(selector));
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/dtables.rs:90:5
   |
90 |     asm!("lidt ($0)" :: "r" (idt) : "memory");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/dtables.rs:95:5
   |
95 |     asm!("sidt ($0)" : "=r" (idt as *mut DescriptorTablePointer<T>) :: "memory");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
 --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/io.rs:6:5
  |
6 |     asm!("outb %al, %dx" :: "{dx}"(port), "{al}"(val));
  |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |     |
  |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/io.rs:13:5
   |
13 |     asm!("inb %dx, %al" : "={ax}"(ret) : "{dx}"(port) :: "volatile");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/io.rs:20:5
   |
20 |     asm!("outw %ax, %dx" :: "{dx}"(port), "{al}"(val));
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/io.rs:27:5
   |
27 |     asm!("inw %dx, %ax" : "={ax}"(ret) : "{dx}"(port) :: "volatile");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/io.rs:34:5
   |
34 |     asm!("outl %eax, %dx" :: "{dx}"(port), "{al}"(val));
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/io.rs:41:5
   |
41 |     asm!("inl %dx, %eax" : "={ax}"(ret) : "{dx}"(port) :: "volatile");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
 --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/msr.rs:7:5
  |
7 |     asm!("wrmsr" :: "{ecx}" (msr), "{eax}" (low), "{edx}" (high) : "memory" : "volatile" );
  |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |     |
  |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/msr.rs:14:5
   |
14 |     asm!("rdmsr" : "={eax}" (low), "={edx}" (high) : "{ecx}" (msr) : "memory" : "volatile");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:557:5
    |
557 |     asm!("movw $0, %ss " :: "r" (sel.bits()) : "memory");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:562:5
    |
562 |     asm!("movw $0, %ds " :: "r" (sel.bits()) : "memory");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:567:5
    |
567 |     asm!("movw $0, %es " :: "r" (sel.bits()) : "memory");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:572:5
    |
572 |     asm!("movw $0, %fs " :: "r" (sel.bits()) : "memory");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:577:5
    |
577 |     asm!("movw $0, %gs " :: "r" (sel.bits()) : "memory");
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:585:14
    |
585 |     unsafe { asm!("mov %cs, $0" : "=r" (segment) ) };
    |              ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |              |
    |              help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:592:14
    |
592 |     unsafe { asm!("mov %es, $0" : "=r" (segment) ) };
    |              ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |              |
    |              help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:599:14
    |
599 |     unsafe { asm!("mov %ss, $0" : "=r" (segment) ) };
    |              ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |              |
    |              help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:606:14
    |
606 |     unsafe { asm!("mov %ds, $0" : "=r" (segment) ) };
    |              ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |              |
    |              help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:613:14
    |
613 |     unsafe { asm!("mov %fs, $0" : "=r" (segment) ) };
    |              ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |              |
    |              help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/segmentation.rs:620:14
    |
620 |     unsafe { asm!("mov %gs, $0" : "=r" (segment) ) };
    |              ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |              |
    |              help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
 --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/task.rs:9:14
  |
9 |     unsafe { asm!("str $0" : "=r" (segment) ) };
  |              ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |              |
  |              help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/task.rs:15:5
   |
15 |     asm!("ltr $0" :: "r" (sel.bits()));
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
 --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/tlb.rs:9:5
  |
9 |     asm!("invlpg ($0)" :: "r" (addr) : "memory");
  |     ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |     |
  |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
  --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/lib.rs:91:5
   |
91 |     asm!("hlt" :::: "volatile");
   |     ----^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: replace with: `llvm_asm!`

error: legacy asm! syntax is no longer supported
   --> /Users/wangguocheng/.cargo/registry/src/github.com-1ecc6299db9ec823/x86-0.28.0/src/lib.rs:118:5
    |
118 |     asm!("rdpid $0" : "=r"(pid));
    |     ----^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     help: replace with: `llvm_asm!`

error: aborting due to 70 previous errors

error: could not compile `x86`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `ehyve v0.0.10 (https://github.com/RWTH-OS/ehyve.git#5991b98c)`, intermediate artifacts can be found at `/var/folders/6w/y98wch9x1wz2pxtxdfft4v8m0000gn/T/cargo-installCkeMkj`

Caused by:
  build failed
stlankes commented 4 years ago

Yes, the latest nightly compiler changed the handling of inline assembly. I have to replace asm by llvm_asm. Also all crates have to be updated, which use the old interface.

I will do it.

stlankes commented 4 years ago

I fixed it. Please check if it works on your system.