You are not logged in.

#1 2025-05-24 16:53:55

spnk
Member
Registered: 2025-05-24
Posts: 6

temporary gcc version downgrade

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

#2 2025-05-25 19:33:54

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,792

Re: temporary gcc version downgrade

https://wiki.archlinux.org/title/Arch_package_guidelines wrote:

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

#3 2025-05-25 20:17:06

seth
Member
Registered: 2012-09-03
Posts: 64,524

Re: temporary gcc version downgrade

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

#4 2025-05-26 08:42:10

spnk
Member
Registered: 2025-05-24
Posts: 6

Re: temporary gcc version downgrade

Offline

#5 2025-05-26 08:44:12

spnk
Member
Registered: 2025-05-24
Posts: 6

Re: temporary gcc version downgrade

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

#6 2025-05-26 08:56:46

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,792

Re: temporary gcc version downgrade

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

#7 2025-05-26 09:36:42

spnk
Member
Registered: 2025-05-24
Posts: 6

Re: temporary gcc version downgrade

i have a gt 710(gk 208b) so i think cuda 11 will work for me

Offline

#8 2025-05-26 15:01:15

seth
Member
Registered: 2012-09-03
Posts: 64,524

Re: temporary gcc version downgrade

https://aur.archlinux.org/packages/cuda11.1 will still require gcc10, but that, like gcc9 doesn't install into /usr/local/bin

Offline

#9 2025-05-26 16:39:58

spnk
Member
Registered: 2025-05-24
Posts: 6

Re: temporary gcc version downgrade

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

#10 2025-05-26 17:22:54

seth
Member
Registered: 2012-09-03
Posts: 64,524

Re: temporary gcc version downgrade

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

#11 2025-05-26 17:30:29

spnk
Member
Registered: 2025-05-24
Posts: 6

Re: temporary gcc version downgrade

nvm i give up for now

Offline

#12 2025-05-27 12:09:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,792

Re: temporary gcc version downgrade

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

Board footer

Powered by FluxBB