Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in label: label() got unexpected keyword argument 'single_file' with bazel 7.1.1 #17

Open
JordanPhilipSmith opened this issue May 7, 2024 · 1 comment

Comments

@JordanPhilipSmith
Copy link

I am using bazel 7.1.1. I am trying to use an external repo for GMP (GNU multiprecision) with bazel. I cloned this repo:

cd ~/dev
git clone https://github.com/robin-thomas/bazelify-gmp.git

When I try to compile it, I get an error with M4:

cd ~/dev/bazelify-gmp; bazel test //gmp_6_1_2/... --sandbox_debug --verbose_failures
Computing main repo mapping:
ERROR: Traceback (most recent call last):
File "/private/var/tmp/_bazel_jordansmith/dc88ff116f8da0e038742f8fca8fbbf9/external/io_bazel_rules_m4/m4.bzl", line 82, column 31, in
"template": attr.label(
Error in label: label() got unexpected keyword argument 'single_file'
ERROR: Error computing the main repository mapping: initialization of module 'm4.bzl' failed

Thank you for your help,
Jordan

@jmillikin
Copy link
Owner

That repo is depending on an extremely old (and untagged) version of rules_m4. From https://github.com/robin-thomas/bazelify-gmp/blob/master/WORKSPACE:

git_repository(
    name = "io_bazel_rules_m4",
    remote = "https://github.com/jmillikin/rules_m4",
    commit = "2bf69df77dfb6b3ba6b7fc95c304b0dc279375bc",
)

Please try updating the dependency to one of the released versions of rules_m4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants