-
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
envoyproxy/envoy-build-centos build is failed #18365
Comments
you shouldnt require the centos build image to build for centos - i would suggest using the ubuntu build image the centos build image is not properly supported (not sure exactly how that relates to the issue you have) i have opened a ticket (here envoyproxy/envoy-build-tools#149) to remove the centos build image altogether for the above reason |
But my target machine where I want to execute envoy is Centos 7. |
I agree that build doesn't take place for zero for centos. But I was able to resolve all problems with build earlier. But for this problem I have no idea. |
i see. im not sure if the envoy repo itself will support a lesser version of GLIBC any more also not sure how that relates to the issue you are facing the one thing i am fairly sure of is that the centos build image is not properly maintained |
I faced this issue today, and found out the bug was in v8, and here is the fix: v8/v8@eac21d5 I would love to contribute with PR updating v8 to version with this patched ( |
@bartsmykla iiuc the problem/resolution, you probs need to start by looking here envoy/bazel/repository_locations.bzl Lines 822 to 835 in 34edbca
|
yes, I know, and am working on a PR, but my question was mostly if the community is ok with me doing so :-) |
Yep, thank you @bartsmykla, but I just rolled back gn to old version(I took 1935) and it seems like envoy will be built. It's in progress while... |
Rollback to older version gn inside docker image solved error and I got build for centos7. I made 3 changes inside docker image locally to build envoy:
I think it is not so many issues to fix docker build image. |
- gn has to be compiled to satisfy centos glibc requirements and to mitigate problems with the version of envoy's wasm/v8 dependency (ref: envoyproxy/envoy#15119) - prependend PATH env var in centos' dockerfile by /usr/local/bin which was missing before and which is path where bazel is present (ref: envoyproxy/envoy/#12535) - added installation of glibc-static and libstdc++-static ref: envoyproxy/envoy#18365 Signed-off-by: Bart Smykla <bartek@smykla.com>
I created a PR with fixes: envoyproxy/envoy-build-tools#154 |
* fix: script and dockerfile for centos - gn has to be compiled to satisfy centos glibc requirements and to mitigate problems with the version of envoy's wasm/v8 dependency (ref: envoyproxy/envoy#15119) - prependend PATH env var in centos' dockerfile by /usr/local/bin which was missing before and which is path where bazel is present (ref: envoyproxy/envoy/#12535) - added installation of glibc-static and libstdc++-static ref: envoyproxy/envoy#18365 Signed-off-by: Bart Smykla <bartek@smykla.com> * boringssl/fips: move gn building down as it expects to have llvm+clang installed to compile Signed-off-by: Bart Smykla <bartek@smykla.com> * remove unnecessary whitespace changes Signed-off-by: Bart Smykla <bartek@smykla.com> * centos: remove unnecessary PATH alteration it's actually unnecessary as it's already included and the problem was not with the order, but with PATH not being preserved, when run `run_envoy_docker.sh` script from envoyproxy/envoy/ci Signed-off-by: Bart Smykla <bartek@smykla.com> * move PATH from container to build_container_centos As the PATH is not preserved from environment in some of the CI scripts, we have to use it like in ubuntu scripts, which means to just move the PATH wrom dockerfile to the script Signed-off-by: Bart Smykla <bartek@smykla.com> * Revert "move PATH from container to build_container_centos" This reverts commit 46d091c. Signed-off-by: Bart Smykla <bartek@smykla.com> * move centos PATH to /etc/profile.d file Signed-off-by: Bart Smykla <bartek@smykla.com> * source profile in build_container_centos.sh As when building container we also need updated PATH, I'm sourcing /etc/profile.d/profile_centos.sh at the beginning of the script Signed-off-by: Bart Smykla <bartek@smykla.com> * modify path in sudoers Signed-off-by: Bart Smykla <bartek@smykla.com> * remove duplication Signed-off-by: Bart Smykla <bartek@smykla.com>
[skip ci] fix: script and dockerfile for centos (#154) * fix: script and dockerfile for centos - gn has to be compiled to satisfy centos glibc requirements and to mitigate problems with the version of envoy's wasm/v8 dependency (ref: envoyproxy/envoy#15119) - prependend PATH env var in centos' dockerfile by /usr/local/bin which was missing before and which is path where bazel is present (ref: envoyproxy/envoy/#12535) - added installation of glibc-static and libstdc++-static ref: envoyproxy/envoy#18365 Signed-off-by: Bart Smykla <bartek@smykla.com> * boringssl/fips: move gn building down as it expects to have llvm+clang installed to compile Signed-off-by: Bart Smykla <bartek@smykla.com> * remove unnecessary whitespace changes Signed-off-by: Bart Smykla <bartek@smykla.com> * centos: remove unnecessary PATH alteration it's actually unnecessary as it's already included and the problem was not with the order, but with PATH not being preserved, when run `run_envoy_docker.sh` script from envoyproxy/envoy/ci Signed-off-by: Bart Smykla <bartek@smykla.com> * move PATH from container to build_container_centos As the PATH is not preserved from environment in some of the CI scripts, we have to use it like in ubuntu scripts, which means to just move the PATH wrom dockerfile to the script Signed-off-by: Bart Smykla <bartek@smykla.com> * Revert "move PATH from container to build_container_centos" This reverts commit 46d091c. Signed-off-by: Bart Smykla <bartek@smykla.com> * move centos PATH to /etc/profile.d file Signed-off-by: Bart Smykla <bartek@smykla.com> * source profile in build_container_centos.sh As when building container we also need updated PATH, I'm sourcing /etc/profile.d/profile_centos.sh at the beginning of the script Signed-off-by: Bart Smykla <bartek@smykla.com> * modify path in sudoers Signed-off-by: Bart Smykla <bartek@smykla.com> * remove duplication Signed-off-by: Bart Smykla <bartek@smykla.com>
[skip ci] Regenerate linux toolchains from 3f6b1b0 [skip ci] fix: script and dockerfile for centos (#154) * fix: script and dockerfile for centos - gn has to be compiled to satisfy centos glibc requirements and to mitigate problems with the version of envoy's wasm/v8 dependency (ref: envoyproxy/envoy#15119) - prependend PATH env var in centos' dockerfile by /usr/local/bin which was missing before and which is path where bazel is present (ref: envoyproxy/envoy/#12535) - added installation of glibc-static and libstdc++-static ref: envoyproxy/envoy#18365 Signed-off-by: Bart Smykla <bartek@smykla.com> * boringssl/fips: move gn building down as it expects to have llvm+clang installed to compile Signed-off-by: Bart Smykla <bartek@smykla.com> * remove unnecessary whitespace changes Signed-off-by: Bart Smykla <bartek@smykla.com> * centos: remove unnecessary PATH alteration it's actually unnecessary as it's already included and the problem was not with the order, but with PATH not being preserved, when run `run_envoy_docker.sh` script from envoyproxy/envoy/ci Signed-off-by: Bart Smykla <bartek@smykla.com> * move PATH from container to build_container_centos As the PATH is not preserved from environment in some of the CI scripts, we have to use it like in ubuntu scripts, which means to just move the PATH wrom dockerfile to the script Signed-off-by: Bart Smykla <bartek@smykla.com> * Revert "move PATH from container to build_container_centos" This reverts commit 46d091c. Signed-off-by: Bart Smykla <bartek@smykla.com> * move centos PATH to /etc/profile.d file Signed-off-by: Bart Smykla <bartek@smykla.com> * source profile in build_container_centos.sh As when building container we also need updated PATH, I'm sourcing /etc/profile.d/profile_centos.sh at the beginning of the script Signed-off-by: Bart Smykla <bartek@smykla.com> * modify path in sudoers Signed-off-by: Bart Smykla <bartek@smykla.com> * remove duplication Signed-off-by: Bart Smykla <bartek@smykla.com>
Some time ago I was successful to build Envoy for centos. I was very happy.
IMAGE_NAME=envoyproxy/envoy-build-centos ./ci/run_envoy_docker.sh './ci/do_ci.sh bazel.release.server_only'
But now I catch follow
Any idea how to fix it? I cannot catch what changes happened.
The text was updated successfully, but these errors were encountered: