Post #2008833
2026-04-22 09:41 UTC
@april but yeah so like, in linux, you just... install gcc right? and run gcc. it is not like that on bsd systems. there are like 20 different versions and you pick one. "gcc" in PATH, in openbsd, is a really really old one in the base system.
if you're using stuff like gnu toolchains in ports, you run e.g. gcc-15, gcc-14, and so on.
so you h ave to adjust PATH and/or adjust e.g. CC, and so on, in the environment. often you have to patch upstream projects if they assume e.g. gcc in PATH.
Replies (2)
-
@april@donotsta.re 2026-04-22 09:46
@libreleah thats not new to me in the regard that its the same in linux if u install multiple gcc / clang versions, at least in some distros! so this should be the default imo
-
@libreleah@mas.to 2026-04-22 09:47
@april i already have partial handling of this in libreboot, because at one point i was build-testing libreboot on debian sid and the proper gcc version wasn't available at gcc in PATH. but i had e.g. gcc-15, and then gnat-13 and gnat-14. and gcc-13. and i had to make lbmk match them up in terms of version. i can just extend that logic to the entire system toolchain, for each component e.g. autoconf, autogen, and other tools. some tools are unversioned. e.g. iasl is just iasl, in openbsd.