Skip to content

Build fails with bazel 8.4.2 due to empty glob #21

@rgtarno

Description

@rgtarno

Looks like the glob in toolchain/templates/compiler.BUILD for the library_path file group is wrong and returning no files. Think this will result in an error by default in Bazel 8.

I couldn't push to the repo to make a PR. This is the patch I used that fixed it for me :

From c69ec2791c71f026c531a1ef1a1c72986e37f7db Mon Sep 17 00:00:00 2001
From: Richard Tarnopolski <rtarnopolski@protonmail.com>
Date: Mon, 1 Dec 2025 23:22:01 +0000
Subject: [PATCH] [TOOLCHAIN] Fix glob pattern for library_path filegroup

---
 toolchain/templates/compiler.BUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toolchain/templates/compiler.BUILD b/toolchain/templates/compiler.BUILD
index 30dd95a..b163f89 100644
--- a/toolchain/templates/compiler.BUILD
+++ b/toolchain/templates/compiler.BUILD
@@ -38,7 +38,7 @@ filegroup(
     srcs = [
       PREFIX,
       "{}/lib".format(PREFIX),
-    ] + glob(["lib/gcc/{}/*".format(PREFIX)]),
+    ] + glob(["lib/gcc/{}/**".format(PREFIX)]),
 )
 
 # libraries, headers and executables.
-- 
2.47.3

Thanks for this project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions