Skip to content

bazel: test vendored llvm toolchain#24408

Closed
keith wants to merge 3 commits into
envoyproxy:mainfrom
keith:ks/bazel-test-vendored-llvm-toolchain
Closed

bazel: test vendored llvm toolchain#24408
keith wants to merge 3 commits into
envoyproxy:mainfrom
keith:ks/bazel-test-vendored-llvm-toolchain

Conversation

@keith
Copy link
Copy Markdown
Member

@keith keith commented Dec 7, 2022

No description provided.

@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #24408 was opened by keith.

see: more, trace.

@repokitteh-read-only repokitteh-read-only Bot added the deps Approval required for changes to Envoy's external dependencies label Dec 7, 2022
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @phlax

🐱

Caused by: #24408 was opened by keith.

see: more, trace.

@keith keith force-pushed the ks/bazel-test-vendored-llvm-toolchain branch from 73e9b8f to 3596686 Compare December 7, 2022 04:11
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 6, 2023

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions Bot added the stale stalebot believes this issue/PR has not been touched recently label Jan 6, 2023
@phlax phlax removed the stale stalebot believes this issue/PR has not been touched recently label Jan 6, 2023
@phlax
Copy link
Copy Markdown
Member

phlax commented Jan 6, 2023

@keith i think this may still be worth investigating - im aware @lizan mentioned that it is the same statically compiled llvm bins that we currently use in the docker container - but im also wondering whether it would still save a bit of rbe/ci time as only the used bins rather than the whole suite would be getting transferred around.

it also would potentially make the llvm toolchain authoritative here, which i think is also a good idea

@keith
Copy link
Copy Markdown
Member Author

keith commented Jan 6, 2023

Yea I think it would have the major benefit that if folks didn't care about their compiler version there would be 0 setup. I got slightly less motivated to push it when I heard that it sounds like gcc support is required by some, so it wouldn't eliminate as much maintenance as I hoped

@keith keith force-pushed the ks/bazel-test-vendored-llvm-toolchain branch from 5db5fd8 to 929cfba Compare January 6, 2023 19:31
@mattklein123
Copy link
Copy Markdown
Member

Yea I think it would have the major benefit that if folks didn't care about their compiler version there would be 0 setup. I got slightly less motivated to push it when I heard that it sounds like gcc support is required by some, so it wouldn't eliminate as much maintenance as I hoped

I would like to hear why GCC is actually required for anyone if the entire thing could be vendored? IMO we should push this.

@keith
Copy link
Copy Markdown
Member Author

keith commented Jan 6, 2023

maybe @lizan can provide more context, but it sounded like the redhat folks specifically were reliant on gcc

@keith keith force-pushed the ks/bazel-test-vendored-llvm-toolchain branch from 929cfba to 48520e5 Compare January 12, 2023 23:32
@github-actions
Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions Bot added the stale stalebot believes this issue/PR has not been touched recently label Feb 12, 2023
Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
@keith keith force-pushed the ks/bazel-test-vendored-llvm-toolchain branch from 48520e5 to 320968f Compare February 16, 2023 18:42
@github-actions github-actions Bot removed the stale stalebot believes this issue/PR has not been touched recently label Feb 16, 2023
@phlax phlax added the no stalebot Disables stalebot from closing an issue label Feb 21, 2023
@phlax
Copy link
Copy Markdown
Member

phlax commented Feb 21, 2023

another nail in the coffin of our current way of provisioning llvm/clang ...

currently we pull the prebuilt x86_64 binaries from the llvm github project releases, but they have stopped building this from 15+

https://github.com/llvm/llvm-project/releases

https://discourse.llvm.org/t/llvm-15-0-0-release/65099

@phlax
Copy link
Copy Markdown
Member

phlax commented Feb 21, 2023

@keith is there any way we can land this for llvm and not lose gcc ? apologies if this is a naive question

@keith
Copy link
Copy Markdown
Member Author

keith commented Feb 21, 2023

it's a good question, i think we could but I'm not yet sure how, i think we could probably introduce some new flag for forcing gcc and do it that way. or maybe env var. note that this toolchain also uses the llvm binary downloads so if those do go away it wouldn't work for this either. since you posted that comment some appeared to have trickled in. also I have LLVM push access so theoretically i could build and upload the ones we care about at least 😬

@phlax
Copy link
Copy Markdown
Member

phlax commented Feb 21, 2023

great - debian-bullseye-slim please!

@phlax
Copy link
Copy Markdown
Member

phlax commented Feb 21, 2023

re bins - unless im misreading something - the only recent ubuntu ones are for ppcle64

@keith
Copy link
Copy Markdown
Member Author

keith commented Feb 21, 2023

yea, the other one might trickle in but who knows. there's an effort to improve this and automatically release these binaries instead of relying on various folks https://discourse.llvm.org/t/using-github-actions-for-releasing/67666

@phlax
Copy link
Copy Markdown
Member

phlax commented Sep 4, 2023

@keith im circling this again as im trying to trim down the docker build images and would like to shift clang tools into bazel

im wondering if we could add this toolchain without immediately using to compile - just to use the tooling, and then hopefully switch compiler when possible

@phlax
Copy link
Copy Markdown
Member

phlax commented Sep 4, 2023

see #29415 for updated PR

@keith keith closed this Sep 11, 2023
@keith keith deleted the ks/bazel-test-vendored-llvm-toolchain branch September 11, 2023 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deps Approval required for changes to Envoy's external dependencies no stalebot Disables stalebot from closing an issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants