Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Did updating gcc cause issues to you guys too?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ColinGilbert
n00b
n00b


Joined: 18 Dec 2024
Posts: 11

PostPosted: Mon Dec 30, 2024 6:04 pm    Post subject: Did updating gcc cause issues to you guys too? Reply with quote

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
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2191

PostPosted: Mon Dec 30, 2024 6:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2056

PostPosted: Mon Dec 30, 2024 6:12 pm    Post subject: Reply with quote

You may need to run`gcc-config latest && binutils-config latest && . /etc/profile` although it's unusual to have to.
Back to top
View user's profile Send private message
ColinGilbert
n00b
n00b


Joined: 18 Dec 2024
Posts: 11

PostPosted: Mon Dec 30, 2024 6:28 pm    Post subject: Reply with quote

Thank you guys. I'm currently testing out sam_'s suggestion.

EDIT: It worked perfectly. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum