Skip to content

building sometimes fails with missing asm_offset.c.s #1227

Description

@michaelolbrich

Describe the bug
When building with -DUSE_GAS=OFF it sometimes fails because asm_offset.c.s is missing:

1/20] Building C object loader/CMakeFiles/asm_offset.dir/asm_offset.c.o
[2/20] Linking C executable loader/asm_offset
FAILED: loader/asm_offset loader/gen_defines.asm
.../vulkan-loader-1.3.250.0-build/loader/gen_defines.asm
: && gcc -O3 -DNDEBUG loader/CMakeFiles/asm_offset.dir/asm_offset.c.o -o loader/asm_offset /usr/lib/libxcb.so && cd .../vulkan-loader-1.3.250.0-build/loader && /usr/bin/python3 .../vulkan-loader-1.3.250.0/scripts/parse_asm_values.py .../vulkan-loader-1.3.250.0-build/loader/gen_defines.asm .../vulkan-loader-1.3.250.0-build/loader/CMakeFiles/asm_offset.dir/ asm_offset.c.s GAS GNU x86_64
Could not open assembler file:
.../build-target/vulkan-loader-1.3.250.0-build/loader/CMakeFiles/asm_offset.dir/asm_offset.c.s
ninja: build stopped: subcommand failed.

Environment (please complete the following information):

  • OS: Debian

To Reproduce
Steps to reproduce the behavior:

  1. Nothing special, just try a clean build many times. It seems racy. I thinks it's a missing dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions