Skip to content

Missing absolute include paths with Remote Execution #547

@ffortier

Description

@ffortier

This is a new issue with toolchains_llvm v1.5.0. I have created this project to reproduce it: https://github.com/ffortier/issue-llvm-rbe

When using a remote executor (buildbuddy in this example), I get the following error:

ERROR: /home/runner/work/issue-llvm-rbe/issue-llvm-rbe/v1.5.0/app/BUILD.bazel:3:10: Compiling app/main.c failed: absolute path inclusion(s) found in rule '//app:app':
the source file 'app/main.c' includes the following non-builtin files with absolute paths (if these are builtin files, make sure these paths are in your toolchain):
  '/buildbuddy-execroot/external/toolchains_llvm++llvm+llvm_toolchain_llvm/lib/clang/20/include/stddef.h'
  '/buildbuddy-execroot/external/toolchains_llvm++llvm+llvm_toolchain_llvm/lib/clang/20/include/__stddef_size_t.h'
  '/buildbuddy-execroot/external/toolchains_llvm++llvm+llvm_toolchain_llvm/lib/clang/20/include/__stddef_null.h'
  '/buildbuddy-execroot/external/toolchains_llvm++llvm+llvm_toolchain_llvm/lib/clang/20/include/stdarg.h'
  '/buildbuddy-execroot/external/toolchains_llvm++llvm+llvm_toolchain_llvm/lib/clang/20/include/__stdarg___gnuc_va_list.h'
Target //app:app failed to build

This use to work fine with v1.4.0. This is a screenshot of the workflows:

Image

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