I'm trying to build the example found on crates.io. However, during compilation, I get the following error
Compiling parking_lot v0.10.2
error: cannot find macro `llvm_asm` in this scope ] 30/51: syn, regex, regex-syntax, parking_lot
--> /Users/maximetremblay/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot-0.10.2/src/elision.rs:77:13
|
77 | llvm_asm!("xacquire; lock; cmpxchgq $2, $1"
| ^^^^^^^^
error: cannot find macro `llvm_asm` in this scope
--> /Users/maximetremblay/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot-0.10.2/src/elision.rs:108:13
|
108 | llvm_asm!("xrelease; lock; xaddq $2, $1"
| ^^^^^^^^
error: aborting due to 2 previous errors======> ] 30/51: syn, regex, regex-syntax, parking_lot
error: could not compile `parking_lot`.
brew install pythonrustc --version): rustc 1.44.0-nightly (f509b26a7 2020-03-18)version = "0.x.y" with git = "https://github.com/PyO3/pyo3")? I'm using 0.9.2 and it is not working. However, I just tried using git instead of version and it worked.I tried to build to project by using cargo build --release and maturin build and both failed for the same reason. I created a git repo with the code.
Hi @matrem94 you're correct; this problem is known and we've fixed it already the git master. We will release this fix with pyo3 0.10.0 if you're happy to use the git version for now.
Hi @davidhewitt. This if fine for me. After I notice the quick fix, I kept my report just in case you didn't know. Thanks for the answer.
Most helpful comment
Hi @davidhewitt. This if fine for me. After I notice the quick fix, I kept my report just in case you didn't know. Thanks for the answer.