You are not logged in.
Hi, as in the title, i wanted to downgrade my gcc version to compile older cuda files. my system currently has gcc 15 installed and i need gcc 9.x. i have managed to install that from aur but it is currently in /usr/local/bin. i have seen that creating symlinks is not recommended so what shoud i do
Offline
1. Package etiquette
Packages should never be installed to /usr/local/.
What aur package did you install ?
Moderator Note
moving to AUR Issues, Discussion & PKGBUILD Requests
Last edited by Lone_Wolf (2025-05-25 19:36:39)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Not https://aur.archlinux.org/cgit/aur.git/ … ILD?h=gcc9 it would seem.
@spnk, depends on the build system, but typically setting CC and CXX to the desired compiler binaries will work.
If you're running gcc manually, just run gcc9 instead.
Offline
i used this package : https://aur.archlinux.org/packages/gcc9
Offline
im trying to compile nvidia cuda toolkit so that cuda works on my system. i am installing it by running the .run file from the nvidia website. trying to compile it with --override results in error when i try to run something that uses nvcc
Last edited by spnk (2025-05-26 08:44:40)
Offline
i am installing it by running the .run file from the nvidia website
That doesn't work on archlinux.
You will have to build the version of cuda you need from source.
AUR has packages for cuda 8, 9, 10 , 11 and 12 (below 12.8) last 2 .
Which cuda version do you need ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
i have a gt 710(gk 208b) so i think cuda 11 will work for me
Offline
https://aur.archlinux.org/packages/cuda11.1 will still require gcc10, but that, like gcc9 doesn't install into /usr/local/bin
Offline
i tried both cuda 11.1 and cuda 11.7 from the aur by git cloning them first and then using makepkg -Si. both just go in a loop with pretty much endless gcc compilation errors
Offline
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Post the actual build log, Please use [code][/code] tags or a pastebin service (1st link below)
Offline
nvm i give up for now
Offline
Please prepend [Gave Up] or [Abandoned] to the thread title (edit first post)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline