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: Tue, 24 Jul 2018 19:02:33
Message-Id: CA+t6X7eAE=maTGsygp_pcrYFYS+CsxZcs7FNhsJQuTj4gRr_xg@mail.gmail.com
In Reply to: Re: [gentoo-user] Upgrading gcc from 6.4 to 7.3 by gevisz
1 2018-07-24 22:00 GMT+03:00 gevisz <gevisz@×××××.com>:
2 > 2018-06-20 14:16 GMT+03:00 Mick <michaelkintzios@×××××.com>:
3 >> On Wednesday, 20 June 2018 11:43:32 BST gevisz wrote:
4 >>> After updating portage tree today, portage
5 >>> suggested to upgrade gcc from 6.4 to 7.3
6 >>> version what I have done just now.
7 >>>
8 >>> Nevertheless,
9 >>> # gcc-config --list-profiles
10 >>> [1] x86_64-pc-linux-gnu-6.4.0 *
11 >>> [2] x86_64-pc-linux-gnu-7.3.0
12 >>> shows that I still have version 6.4 as a default.
13 >>
14 >> I'm on gcc-7.3.0-r3 and have not noticed any problems on 3 boxen so far.
15 >>
16 >>
17 >>> As https://wiki.gentoo.org/wiki/Upgrading_GCC
18 >>> still do not have any specific instructions on
19 >>> switching to gcc version 7.3, I am still afread
20 >>> of switching to gcc version 7.3 and would like
21 >>> to ask if anybody encountered some problem
22 >>> after switching to gcc version 7.3 and which
23 >>> packages should be rebuild after such switching.
24 >>>
25 >>> Thank you in advance for your help.
26 >>
27 >> I didn't have to rebuild anything, but if you have reasons to fear breakage
28 >> you can rebuild your toolchain:
29 >>
30 >> 1. Use gcc-config to select x86_64-pc-linux-gnu-7.3.0
31 >> 2. Re-source /etc/profile by running in your current console/terminal:
32 >> . /etc/profile
33 >> 3. Re-emerge libtool:
34 >> emerge -1 sys-devel/libtool
35 >> 4. Re-emerge the following packages in this order:
36 >> emerge -1 sys-devel/gcc-7.3.0-r3
37 >> emerge -1 sys-devel/binutils
38 >> emerge -1 sys-libs/glibc
39 >> 5. You could if you want re-emerge your entire system, 'emerge -e @world' or
40 >> if you would rather conserve electricity wait as different packages come up
41 >> for an update over time.
42 >>
43 >> If my experience to date holds true and for a general purpose desktop none of
44 >> the above rebuilds are necessary, other than switching your gcc to 7.3.0.
45 >
46 > You forgot the 6th item:
47 >
48 > 6. Recompile the kernel.
49 >
50 > Just today, virtualbox-modules refused to compile because of this.
51 > Thanks to Michael Orlitzky for the tip how to interpret portage messages.
52
53 By the way, this recommendation is absent from Gentoo wiki on updating gcc.

Replies

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