View previous topic :: View next topic |
Author |
Message |
ColinGilbert n00b
Joined: 18 Dec 2024 Posts: 11
|
Posted: Mon Dec 30, 2024 6:04 pm Post subject: Did updating gcc cause issues to you guys too? |
|
|
Hi,
I recently updated gcc and then my system wouldn't compile anything. I had to fix the symlinks to gcc in with the following:
Code: |
ln -s /bin/gcc-14 /bin/gcc
ln -s /bin/g++-14 /bin/g++
rm /bin/x86_64-pc-linux-gnu-cc
ln -s /usr/x86_64-pc-linux-gnu/gcc-bin/14/x86_64-pc-linux-gnu-gcc /bin/x86_64-pc-linux-gnu-cc
ln -s /usr/x86_64-pc-linux-gnu/gcc-bin/14/x86_64-pc-linux-gnu-gcc /bin/x86_64-pc-linux-gnu-gcc
|
Is this something some of you have also experienced?
Does Gentoo maintain a tool to fix such symlinks? |
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2191
|
Posted: Mon Dec 30, 2024 6:08 pm Post subject: |
|
|
Code: | gcc-config -h
Usage: gcc-config [options] [CC Profile]
gcc-config [options] --get-current-profile [CTARGET]
Change the current compiler profile, or give info about profiles.
Options:
-C, --nocolor Disable color output
-O, --use-old Use the old profile if one was selected.
-f, --force Make sure all config files are regenerated.
-c, --get-current-profile Print current used gcc profile.
-l, --list-profiles Print a list of available profiles.
-S, --split-profile Split profiles into their components
-E, --print-environ Print environment that can be used to setup the
current gcc profile, or a specified one.
-B, --get-bin-path Print path where binaries of the given/current
profile are located.
-L, --get-lib-path Print path where libraries of the given/current
profile are located.
Profile names are of the form: <CTARGET>-<version> (like 'i686-pc-linux-gnu-3.2.1')
<version> (like '3.2.1')
<profile-number> (as specified in '--list-profiles')
latest
<CTARGET>-latest (like mmix-latest) |
_________________ Greybeard |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2056
|
Posted: Mon Dec 30, 2024 6:12 pm Post subject: |
|
|
You may need to run`gcc-config latest && binutils-config latest && . /etc/profile` although it's unusual to have to. |
|
Back to top |
|
|
ColinGilbert n00b
Joined: 18 Dec 2024 Posts: 11
|
Posted: Mon Dec 30, 2024 6:28 pm Post subject: |
|
|
Thank you guys. I'm currently testing out sam_'s suggestion.
EDIT: It worked perfectly. |
|
Back to top |
|
|
|