-
Notifications
You must be signed in to change notification settings - Fork 208
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
Not able to build the executable binary in Ubuntu 20.04 for both gcc and clang #138
Comments
same issue, at first view, looks like something with bazel or sub-targets this repository is exploiting 🤯 . |
dbg config is building almost fine, but failing at linking stage, with bazel "fatal error: cannot execute '/usr/lib/gcc/x86_64-linux-gnu/9/cc1plus': execv: Argument list too long" I'm not a bazel expert... |
@pgeler I was trying to build v1.16.0 and that Quiche build failure was fixed after 1.16.0. So I tried to build from the master and I'm not getting the Quiche build failure but getting the exact same error you mentioned. |
@pgeler Anyway I was able to build successfully with clang. Can help you with that if you are okay with building using clang. |
Envoy, builds successfully in “-c dbg” … I do understand that there are few problems with gcc and opt build … but filter-example does not builds successfully with dbg and failing at linking stage, I will try to do the same with clang tools later today
|
@pgeler okay cool. let me know if you get across the issue |
those are my observations:
I'm not sure what forcing this behavior for clang and gcc... sounds like some bazel stuff ... but need a hint from somebody who knows it well most of my problems with ubuntu 20.04, on top of envoy requirements were solved by ps. all of above applicable to "fastbuild" and I'm sure for "dbg", while "opt" has it's own challenges but those are more to main envoy repository |
@pgeler apt install lld llvm python-ispython3 clang-tools + envoy/bazel/setup_clang.sh from root repository. That also works for me, thanks. |
@yunkai123 thanks. I fixed it some other way. #139 |
@yunkai123 Were you able to generate compile_commands.json for the custom filters you write outside envoy ? |
Hello, I am trying to build the http filter with envoy v1.16.0 . I tried using both gcc and clang but still no luck.
GCC
My specs are as follows.
When I try to build using the following commands,
I get the following error.
Clang
I followed the instructions on bazel/ReadMe to download and configure Clang+llvm.
But I am getting the following error.
Any idea ? I was using envoy v1.14.0 and it works fine. But with v1.16.0, I can't build using both gcc and clang. Tried for few days and still no luck.
The text was updated successfully, but these errors were encountered: