How to downgrade gcc (from v 8 to v 7)
I'm running gcc version 8 and I want to downgrade it to version 7 (because I want to try to compile kernel with gcc 7 to see if it still compile-errors!).
How to do that?
I'm assuming that I have to use dnf
. I'm on Fedora 28 (sort of)
$ gcc --version
gcc (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
On an unrelated note(since I mentioned this in the parenthesis of the question body): I just figured out how to fix my kernel compilation error (that pesky
'get_identifier_with_length'
error) with gcc 8, it needed the kernel patches from commits: b86729109c5fd0a480300f40608aac68764b5adf and 80d172431696482d9acd8d2c4ea78fed8956e2a1 full info