Skip to content

aarch64/macOS: error: invalid asm template string: expected }, found . + unsupported architectural extension: dit #1586

@Nicceboy

Description

@Nicceboy

There are couple issues when compiling crate rustls-graviola, which utilises a lot of inline assembly.

Compiled on aarch64/macOS with latest Nightly/cranelift.

   Compiling graviola v0.2.1
error: invalid asm template string: expected `}`, found `.`
   Compiling rustls-graviola v0.2.1
    --> <anon>:5041:15
     |
5041 |        st1 {q0.16b}, [x0]
     |            -  ^ expected `}` in asm template string
     |            |
     |            because of this opening brace
     |
     = note: if you intended to print `{`, you can escape it using `{{`

error: aborting due to 1 previous error

error: unsupported architectural extension: dit
  |
note: instantiated into assembly here
 --> <inline asm>:8:17
  |
8 | .arch_extension dit
  |                 ^

error: unsupported architectural extension: dit
   |
note: instantiated into assembly here
  --> <inline asm>:10:17
   |
10 | .arch_extension nodit

See minimal example here to reproduce: https://github.com/Nicceboy/cranelift-graviola/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-armTarget: ARM processors (arm, thumb and AArch64 targets)S-blockedStatus: marked as blocked ❌ on something else such as an RFC or other implementation work.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions