It never ends… it never ends!!
In other news I've found a very interesting bug in the zig cmake scripts :(
Oh cripes it just installs under the executable name clang-22
@mcc do they at least make ‘clang’ a symlink so you could theoretically change it? Or is this some kind of “some clangs are more default than others” type situation?
Okay so it appears the debian equivalent of xcode-select is `update-alternatives`
This is…
This is not user friendly.
I do not know which key to set to change my clang. I don't know how to get it to list all keys. I can tell it to run with --all, and then it has me re-assign every executable on the computer, beginning with `animate`. This is scary and I bailed.
I have filed an issue / support request on zig at https://codeberg.org/ziglang/zig/issues/37729 . Hopefully they don't mind support requests in the issues
@mcc I think in this case the Debian equivalent of xcode-select is update-alternatives, if /usr/bin/clang is a symlink to the actual /usr/bin/clang-nn executable then update-alternatives is how you would update it to point to the version you want.
@mcc does Debian still use /etc/alternatives and update-alternatives ?
@mcc This is exactly the problem that is solved with containerized development environments. Unless you really don't like containerization. Then it doesn't help at all.
@mcc I think you set `CC=clang-22` and something similar for CXX in your environment variables.
@mcc
I am mad at CMake, too, but not over LLVM.
It isn't finding OpenGL/glx when I build gogglesmm, but it does when I build the fox gui toolkit for gogglesmm 😭
Yours sounds much harder
@mcc I’m just curious, why build from source and not just download the Linux binary release and put it in your PATH?
Are you wanting to modify/hack on the compiler itself? Or are there other motivations I don’t understand?
@SilbinaryWolf The download instructions say "there may be a package for your Linux distribution". There is not. In my experience, generic binary packages for Linux which are not targeted to a particular distribution and not using "container" formats such as docker or flatpak are flaky. By contrast, the build looked like a straightforward cmake build and I did not anticipate problems.
Additionally, at some later date I may hack on the compiler.
@SilbinaryWolf Wait, hold on. I thought you were responding to a later post in the thread. Are you talking about LLVM or Zig?
@mcc Oh I meant Zig itself, but I mean I get what you’re saying I think.
After 1.5 years of using Linux, Im shocked when non package managed binary or AppImage works and doesn’t fall over due to a glibc incompatibility or missing shared object
Hey question. Debian has a clang-18, a clang-19, and a clang-22 package in apt. If I run sudo apt-install clang-22, then open a new shell, then type clang --version, it's a clang 19. How can I get a shell with clang-22, and/or is there a way to tell cmake "I've got a clang-19 and a clang-22, use the clang-22"? How do I xcode-select in Linux