The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "News:GCC Update"
Line 33: | Line 33: | ||
}} | }} | ||
Alternatively, rebuilding the packages could be achieved with <code> revdep-rebuild</code>. This steps will perform rebuilding the list of packages that linked against libstdc++.so.6: | Alternatively, rebuilding the packages could be achieved with <code> revdep-rebuild</code>. This steps will perform rebuilding the list of packages that linked against libstdc++.so.6, a new version of standart library from gcc-5: | ||
{{console|body= | {{console|body= | ||
oleg2 # revdep-rebuild --library 'libstdc\+\+.so.6' -- --exclude gcc | oleg2 # revdep-rebuild --library 'libstdc\+\+.so.6' -- --exclude gcc |
Revision as of 16:40, November 25, 2016
GCC Update
- Update to gcc-5.3.0 now available on both current and stable builds. Due to ABI changes [1], introduced with gcc-5.1, users need to perform additional steps with gcc upgrade:
root # emerge --sync root # emerge -u1 gcc
Now, after gcc update and if your box have multiple gcc versions installed, it is needed to switch to newly installed version with gcc-config
. For example, to check installed version:
oleg2 # gcc-config -l [1] x86_64-pc-linux-gnu-4.9.3 * [2] x86_64-pc-linux-gnu-5.3.0 oleg2 #
Switch to new gcc by:
oleg2 # gcc-config 2 oleg2 # . /etc/profile
This step makes gcc-5.3.0 your default compiler. Now, as mentioned before, this version is ABI incompatible with gcc-4.9 and after updating following steps needed:
oleg2 # emerge -e @system --exclude gcc
Alternatively, rebuilding the packages could be achieved with revdep-rebuild
. This steps will perform rebuilding the list of packages that linked against libstdc++.so.6, a new version of standart library from gcc-5:
oleg2 # revdep-rebuild --library 'libstdc\+\+.so.6' -- --exclude gcc
[1] https://gcc.gnu.org/onlinedocs/libstdc%2B%2B/manual/using_dual_abi.html