Skip to content

lint error with cranelift: multiple input filenames provided (first two filenames are x86_64-unknown-linux-gnu and -) #628

@mirsella

Description

@mirsella

CLI or linter version

bevy_cli v0.1.0-dev (https://github.com/TheBevyFlock/bevy_cli#a3c83153):
    bevy
bevy_lint v0.5.0-dev (https://github.com/TheBevyFlock/bevy_cli.git?branch=main#a3c83153):
    bevy_lint
    bevy_lint_driver

[Optional] Relevant system information

rustc 1.92.0-nightly (54a8a1db6 2025-09-26)
Linux laptop 6.16.8-arch3-1 #1 SMP PREEMPT_DYNAMIC Mon, 22 Sep 2025 22:08:35 +0000 x86_64 GNU/Linux

What you did

.cargo/config.toml:

[unstable]
codegen-backend = true

[profile.dev]
codegen-backend = "cranelift"

then
bevy lint -p game_client

What went wrong

❯ bevy lint -p game_client
   Compiling assets_processor v12.0.0 (/home/mirsella/dev/waykeepers/assets_processor)
warning: unsupported x86 llvm intrinsic llvm.x86.vcvtph2ps.128; replacing with trap

warning: unsupported x86 llvm intrinsic llvm.x86.vcvtph2ps.256; replacing with trap

error: multiple input filenames provided (first two filenames are `x86_64-unknown-linux-gnu` and `-`)

error: Failed to assemble `.globl __inline_asm_cfd6pnssq73z751dkscjvsef6_n0
       .type __inline_asm_cfd6pnssq73z751dkscjvsef6_n0,@function
       .section .text.__inline_asm_cfd6pnssq73z751dkscjvsef6_n0,"ax",@progbits
       __inline_asm_cfd6pnssq73z751dkscjvsef6_n0:
       .intel_syntax noprefix
           push rbp
           mov rbp,rsp
           push rbx
           mov rbx,rdi
           mov [rbx+0x0], r12
           mov [rbx+0x8], r13
           mov rax, [rbx+0x10]
           mov rcx, [rbx+0x18]
           mov rdx, [rbx+0x20]
           mov rsi, [rbx+0x30]
           mov rdi, [rbx+0x28]
           mov r12, [rbx+0x38]
           mov r13, [rbx+0x40]

                       2:

                           shl    edi, 1


                           lea    r9d, [edi + 1]


                           cmp    eax, 16777216
                           jae    3f
                           shl    ecx, 8
                           shl    eax, 8


                           mov    r10, rdx
                           cmp    r10, r13
                           cmovg  r10, r13


                           movzx  r11d, byte ptr [r12 + r10]
                           or     ecx, r11d
                           inc    rdx

                       3:


                           shr    eax, 1
                           mov    r8d, ecx
                           sub    ecx, eax


                           cmovs  ecx, r8d
                           cmovns edi, r9d


                           dec    esi
                           jnz    2b

           mov [rbx+0x10], rax
           mov [rbx+0x18], rcx
           mov [rbx+0x20], rdx
           mov [rbx+0x28], rdi
           mov r12, [rbx+0x0]
           mov r13, [rbx+0x8]
           pop rbx
           pop rbp
           ret
       .att_syntax
       .size __inline_asm_cfd6pnssq73z751dkscjvsef6_n0, .-__inline_asm_cfd6pnssq73z751dkscjvsef6_n0
       .text


       `

warning: `assets_processor` (build script) generated 2 warnings
error: could not compile `assets_processor` (build script) due to 1 previous error; 2 warnings emitted
Check failed: exit status: 101.
error: command `bevy_lint --package game_client --profile dev` exited with status code exit status: 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LinterRelated to the linter and custom lintsC-BugA bug in the programS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions