Gentoo Archives: gentoo-user

From: gevisz <gevisz@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Upgrading gcc from 6.4 to 7.3
Date: Wed, 20 Jun 2018 12:01:39
Message-Id: CA+t6X7fsXFW7+-CXZGYP1_-Pr7gVAc0H75UC7zxODKDbvMmzUA@mail.gmail.com
In Reply to: Re: [gentoo-user] Upgrading gcc from 6.4 to 7.3 by Mick
1 2018-06-20 14:16 GMT+03:00 Mick <michaelkintzios@×××××.com>:
2 > On Wednesday, 20 June 2018 11:43:32 BST gevisz wrote:
3 >> After updating portage tree today, portage
4 >> suggested to upgrade gcc from 6.4 to 7.3
5 >> version what I have done just now.
6 >>
7 >> Nevertheless,
8 >> # gcc-config --list-profiles
9 >> [1] x86_64-pc-linux-gnu-6.4.0 *
10 >> [2] x86_64-pc-linux-gnu-7.3.0
11 >> shows that I still have version 6.4 as a default.
12 >
13 > I'm on gcc-7.3.0-r3 and have not noticed any problems on 3 boxen so far.
14 >
15 >
16 >> As https://wiki.gentoo.org/wiki/Upgrading_GCC
17 >> still do not have any specific instructions on
18 >> switching to gcc version 7.3, I am still afread
19 >> of switching to gcc version 7.3 and would like
20 >> to ask if anybody encountered some problem
21 >> after switching to gcc version 7.3 and which
22 >> packages should be rebuild after such switching.
23 >>
24 >> Thank you in advance for your help.
25 >
26 > I didn't have to rebuild anything, but if you have reasons to fear breakage
27 > you can rebuild your toolchain:
28 >
29 > 1. Use gcc-config to select x86_64-pc-linux-gnu-7.3.0
30 > 2. Re-source /etc/profile by running in your current console/terminal:
31 > . /etc/profile
32 > 3. Re-emerge libtool:
33 > emerge -1 sys-devel/libtool
34 > 4. Re-emerge the following packages in this order:
35 > emerge -1 sys-devel/gcc-7.3.0-r3
36 > emerge -1 sys-devel/binutils
37 > emerge -1 sys-libs/glibc
38 > 5. You could if you want re-emerge your entire system, 'emerge -e @world' or
39 > if you would rather conserve electricity wait as different packages come up
40 > for an update over time.
41 >
42 > If my experience to date holds true and for a general purpose desktop none of
43 > the above rebuilds are necessary, other than switching your gcc to 7.3.0.
44
45 Thank you for your reply. I do not want to rebuild gcc-7.3 for the second time
46 today (as far as the temperature in my room is already +30°C). So, I will stick
47 to your last advice: I will just switch the default gcc version to 7.3
48 and wait for
49 problems to appear. :)

Replies

Subject Author
Re: [gentoo-user] Upgrading gcc from 6.4 to 7.3 gevisz <gevisz@×××××.com>