Recently "emerge -av --update --deep --newuse world" putted dev-libs/gmp-6.0.0 and dev-libs/mpfr-3.1.3_p4 in and updated to these versions. A short test of gcc (touch test.cc && gcc -fverbose-asm -march=native test.cc -S) and looking into test.s shows the following failures -------------------------------------------------------------------------------- # GNU C++ (Gentoo Hardened 4.9.3 p1.2, pie-0.6.3) version 4.9.3 (x86_64-pc-linux-gnu) # compiled by GNU C version 4.9.3, GMP version 5.1.3, MPFR version 3.1.2-p10, MPC version 1.0.2 # warning: GMP header version 5.1.3 differs from library version 6.0.0. # warning: MPFR header version 3.1.2-p10 differs from library version 3.1.3-p4. -------------------------------------------------------------------------------- I solved the problem by remerging the installed gcc-4.9.3. Therefore I would suggest to put gcc into @preserved-rebuild if at least one of dev-libs/mpfr, dev-libs/gmp was updated. Reproducible: Always
it's merely a warning. the runtime should be fine.