Pyo3: Compiling parking_lot v0.10.2 error: cannot find macro `llvm_asm` in this scope

Created on 21 Apr 2020  路  2Comments  路  Source: PyO3/pyo3

馃悰 Bug Reports

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`.

馃實 Environment

  • Your operating system and version: MacOs Mojave 10.14.6
  • Your python version: python = 2.7.16, python3 = 3.7.4
  • How did you install python (e.g. apt or pyenv)? Did you use a virtualenv?: brew install python
  • Your rust version (rustc --version): rustc 1.44.0-nightly (f509b26a7 2020-03-18)
  • Are you using the latest pyo3 version? Have you tried using latest master (replace 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.

馃挜 Reproducing

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.

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.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fcangialosi picture fcangialosi  路  6Comments

rth picture rth  路  5Comments

vorner picture vorner  路  7Comments

konstin picture konstin  路  5Comments

davidhewitt picture davidhewitt  路  6Comments