-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
build: bazel build cockroach-short fails on BSD #56013
Comments
Looks like the bazel internal linking scripts seem to use an illegal option.
|
It's very odd because if |
can we just have that remove the |
Probably, but it's not part of our bazel we've yet touched by hand. Would need further investigation (bazel on non-darwin systems generally still do). Mind sharing for posterity the machine/distro you're running it on? Because it's not an issue I'm seeing on my box. |
BSD. BSD |
We'd need to copy this for BSD but remove the And then set a specific option for BSD: https://github.com/bazelbuild/rules_foreign_cc/blob/master/tools/build_defs/shell_toolchain/toolchains/toolchain_mappings.bzl#L33 Once grafted on, this needs to be placed on top of my branch in https://github.com/otan-cockroach/rules_foreign_cc/tree/autoconf and the WORKSPACE will need to change afterwards at https://github.com/cockroachdb/cockroach/blob/master/WORKSPACE#L68. We can submit a review in the main repo in the meantime, but my existing PR there has not been looked at.
|
FWIW docker doesn't work on BSD systems (even macOS has problems). Native builds are a pre |
bazel-contrib/rules_foreign_cc#387 this would fix it. but there's no love from the maintainers :( |
57030: execgen: permit customization of template path r=jordanlewis a=jordanlewis Closes #56982 This commit adds a new argument to execgen, -template, which allows customization of the file path of the input template for a given output file. Here's an example of how to run execgen with cutomized paths: ``` execgen -template path/to/template_tmpl.go path/to/eventual/generated/code.eg.go > path/to/wherever/you/want/to/write/the/file.eg.o ``` The second argument is important because it is used as an argument to `goimports`, which needs to the actual, eventual path that the generated code will live at. Note that it doesn't actually need to *write* to that filepath - just needs to know what the name will be, eventually. Release note: None 57039: bazel: add freebsd support r=irfansharif a=irfansharif Fixes #56013. We're picking up bazel-contrib/rules_foreign_cc/pull/387 (included in our new fork at [cockroachdb/rules_foreign_cc](https://github.com/cockroachdb/rules_foreign_cc/)). We've also picked up Oliver's PR adding autoconf support (bazel-contrib/rules_foreign_cc/pull/432); we were pointing to Oliver's own fork previously to pick up those changes. Release note: None --- @knz, wanna try this branch out and see if it works? If not, I should probably spin up a freebsd AMI next once someone shows me how. Co-authored-by: Jordan Lewis <[email protected]> Co-authored-by: irfan sharif <[email protected]>
Running
produces this failure log
Then:
produces this verbose log
Attached copy of bazel-out/.../libroach/logs/CMake.log
Futher instructions needed?
The text was updated successfully, but these errors were encountered: