Gentoo Archives: gentoo-user

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