-
Notifications
You must be signed in to change notification settings - Fork 249
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
make segfaults while building LuaJIT for Envoy when using bazel 7.x.y #1338
Comments
I didn't mention macOS platform specifics, but yesterday I was working on an M1 MacBook pro running macOS 15 (Sequoia). Today I've further reproduced the issue on an older intel-based MacBook Pro running macOS 11 (BigSur). |
I've tracked this down to |
In https://github.com/asedeno/luajit-bazel/tree/minus-luajit I've replaced LuaJIT with |
And this is a dupe of #1227, which has experienced radio silence since July. |
We're trying to update Envoy to Bazel 7.4.1 (see envoyproxy/envoy#37578).
One of our blockers is that our MacOS build is failing to build LuaJIT.1
Digging into it, I found that the GNUMake build from rules_foreign_cc was segfaulting on
make -C src
in LuaJIT's top-levelMakefile
. Furthermore, I could reproduce this segfault using the bazel/rules_foreign_cc-builtmake
on a clean checkout of LuaJIT's source, otherwise entirely outside of bazel, both at toplevel viamake -C src
and in src with justmake
. I could not reproduce the segfault with a freshly built copy of GNUMake 4.4.1, which is the same version bazel/rules_foreign_cc had.Here's a repository containing a minimal repro based on the build in Envoy:
This works fine with bazel 6.5.0, and breaks in all bazel 7.x.y that I've tried, including but not limited to 7.0.0 and 7.4.1.
I'm out of ideas on this for the day, but figured capturing this would be useful. Again, I'm seeing this only on MacOS.
Footnotes
https://github.com/envoyproxy/envoy/actions/runs/12265446817/job/34221552445#step:16:956 ↩
The text was updated successfully, but these errors were encountered: