Skip to content

Could not compile codspeed with cranelift #1601

@chirizxc

Description

@chirizxc

OS: Windows 10
rustc version: nightly-x86_64-pc-windows-msvc | rustc 1.92.0-nightly (9725c4baa 2025-10-09)

cargo.toml:

[package]
name = "untitled"
version = "0.1.0"
edition = "2024"

[dependencies]
codspeed = "4.0.4"

C:\Users\chiri\.cargo\config.toml

[unstable]
codegen-backend = true
profile-rustflags = true

[build]
incremental = true
rustc-wrapper = "C:/Users/chiri/scoop/shims/sccache"

[profile.dev]
opt-level = 1
strip = "debuginfo"
codegen-backend = "cranelift"

[profile.dev.package."*"]
opt-level = 3
❯ rustup override set nightly                                                                                                                         
info: override toolchain for 'C:\Users\chiri\Desktop\untitled' set to 'nightly-x86_64-pc-windows-msvc'        

❯ cargo build
   Compiling codspeed v4.0.4                                                                                                                          
error: unknown token in expression                                                                                                                   
   |
note: instantiated into assembly here
  --> <inline asm>:12:10
   |
12 | rol rdi, $$3
   |          ^

error: unknown token in expression
   |
note: instantiated into assembly here
  --> <inline asm>:13:10
   |
13 | rol rdi, $$13
   |          ^

error: unknown token in expression
   |
note: instantiated into assembly here
  --> <inline asm>:14:10
   |
14 | rol rdi, $$61
   |          ^

error: unknown token in expression
   |
note: instantiated into assembly here
  --> <inline asm>:15:10
   |
15 | rol rdi, $$51
   |          ^

error: unknown token in expression
   |
note: instantiated into assembly here
  --> <inline asm>:33:10
   |
33 | rol rdi, $$3
   |          ^

error: unknown token in expression
   |
note: instantiated into assembly here
  --> <inline asm>:34:10
   |
34 | rol rdi, $$13
   |          ^

error: unknown token in expression
   |
note: instantiated into assembly here
  --> <inline asm>:35:10
   |
35 | rol rdi, $$61
   |          ^

error: unknown token in expression
   |
note: instantiated into assembly here
  --> <inline asm>:36:10
   |
36 | rol rdi, $$51
   |          ^

error: aborting due to 8 previous errors

error: Failed to assemble `.globl __inline_asm_codspeed__737a3f072d152e79_cgu__07_n0
       __inline_asm_codspeed__737a3f072d152e79_cgu__07_n0:
       .intel_syntax noprefix
           push rbp
           mov rbp,rsp
           push rbx
           mov rbx,rdi
           mov rax, [rbx+0x8]
           mov rdx, [rbx+0x0]
       rol rdi, $$3
       rol rdi, $$13
       rol rdi, $$61
       rol rdi, $$51
       xchg rbx, rbx
           mov [rbx+0x0], rdx
           pop rbx
           pop rbp
           ret
       .att_syntax
       
       
       .globl __inline_asm_codspeed__737a3f072d152e79_cgu__07_n1
       __inline_asm_codspeed__737a3f072d152e79_cgu__07_n1:
       .intel_syntax noprefix
           push rbp
           mov rbp,rsp
           push rbx
           mov rbx,rdi
           mov rax, [rbx+0x8]
           mov rdx, [rbx+0x0]
       rol rdi, $$3
       rol rdi, $$13
       rol rdi, $$61
       rol rdi, $$51
       xchg rbx, rbx
           mov [rbx+0x0], rdx
           pop rbx
           pop rbp
           ret
       .att_syntax
       
       
       `

error: could not compile `codspeed` (lib) due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions