-
Notifications
You must be signed in to change notification settings - Fork 4.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
tcmalloc build failure when buiding envoy 1.31.5 #38230
Comments
This should be fixable locally if you use the exact build change we do in CI, but it looks like that issue was fixed in tcmalloc a few years ago and we're not using the latest version. cc @phlax any reason to not bump our tcmalloc dep to make Envoy a little easier to build here? |
I will try to upgrade tcmalloc to see what happens. |
It looks like it might not be an easy update, as new tcmalloc fails bazel analysis. |
yeah - @krinkinmu has been looking at updating tcmalloc recently as part of the llvm update - i forget the exact issue but there was some blocker using recent versions - its possible we could update to something in between - or as @yanavlasov is trying above - patch it up-to-date |
Is it possible patch for tcmalloc is lost when fetching dependencies for istio-proxy build? In any case I have #38235 which should remove the need for patching this part of code. |
Thanks @phlax for cc-ing me. Yes, that's the same issue I hit, I ended up working around it with #38120. The issue was fixed upstream as well, but updating tcmalloc caused some other problems, so I decided to patch for now and return to it once we finish with the toolchain update. I think #38235 is hitting one of those problems now. Basically the story is that newer tcmalloc version relies on some relatively new version of assembly directive that was not supported by version we have in our CI image. I'm pretty sure that the issue can be fixed by either the updating binutils or replacing the binutils version of assembly with an llvm one. Probably there are simpler ways to deal with the issue, but I didn't spend much time figuring out what to do with that yet. |
FWIW, the issue does not happen on the llvm-14 that is currently used by Envoy CI image, so if it's possible, the easiest fix is to use clang-14 instead of clang-18 to build Envoy. |
k - so probably its llvm version related i guess the question is whether we want to backport the patch |
I'm happy to backport the patch to the supported Envoy release branches if it helps. Though, if we are talking about builds on clang-18, I think we might need to backport a few more changes besides that one. |
yeah was thinking similar |
Thanks @krinkinmu , it builds with clang-14, although not with simple 'apt install clang' |
Title: tcmalloc build failure
Description:
We were building envoy 1.31.5 release, for using with istio 1.23, but hit this build failure for it's tcmalloc dependency ->
Is there any easy way to fix this failure?
The text was updated successfully, but these errors were encountered: