Add llvm from kernel.org/pub/tools/llvm#2
Conversation
The product page for the version of Ubuntu used in the manifest says: Reached end of standard support on 31 May 2025, maybe we could use a newer version, like the latest 26.04, and then we can use LLVM 22 directly from the repo?
That would be interesting, but do we have any storage persistence right now? (no harm in adding it now in any case) |
Did the runtime update in #3 but 25.10 doesn't have a new enough LLVM. If somebody can figure out what the |
Looks like installing |
|
As noted in bluez/action-ci#4 this will likely need Clang 23 in the future, so it's probably better to just go download the version we want instead of sticking with distro packages |
There's no caching infrastructure but iirc the incremental build rebuilds in same instance |
|
I cannot merge this one it seems, anyway we probably need to transfer this to bluez org if it is still a dependency. |
|
I see, we are still using this in Dockerfile: Dockerfile:FROM blueztestbot/bluez-build:latest Let us move it over to bluez/docker or something like that. |
| cd /smatch && make | ||
|
|
||
| # Install clang | ||
| COPY download-llvm.sh / |
There was a problem hiding this comment.
Is there a way to just import a LLVM docker file instead of creating a custom script to download it?
There was a problem hiding this comment.
As @hadess suggests above, the base github ubuntu should contain Clang 22.
But you can copy files between images, https://docs.docker.com/build/building/multi-stage/
If CONTEXT_ANALYSIS starts to require Clang 23 with it probably will https://lore.kernel.org/all/CANpmjNN4O=W70sAc5gaVkTAFdrGGOW+XBMyuehfz3_QMiT=uCw@mail.gmail.com/ I'm thinking unreleased build has to be downloaded from somewhere, unless this is just postponed until Clang 23 is out.
Note the download is done only when building the image, so once when this is triggered manually, not on every CI job.
There was a problem hiding this comment.
I think @pv's work is fine here, there's a good reason to not use the distribution's version.
Download newer LLVM version from kernel.org
Also add ccache (can be useful for incremental build)