When gcc-4.7.3-r1 is installed with the fortran USE flag set the gfortran info file (gfortran.info.bz2) is not installed together with the other info files (for example, gcc.info.bz2) in /usr/share/gcc-data/i686-pc-linux-gnu/4.7.3/info. The reason seems to be that the following fragment of toolchain_src_install in /usr/portage/eclass/toolchain.eclass considers only info files in gcc/doc while gfortran.info is located in gcc/fortran: # Copy over the info pages. We disabled their generation # earlier, but the build system only expects to install out # of the build dir, not the source. #464008 mkdir -p gcc/doc local x= for x in "${S}"/gcc/doc/*.info* ; do if [[ -f ${x} ]] ; then cp "${x}" gcc/doc/ || die fi done As a local workaround, I'm using the following function in /etc/portage/env/sys-devel/gcc: src_prepare() { toolchain_src_prepare if use fortran; then cp gcc/fortran/*.info gcc/doc fi }
Also worth considering other docs: gcc-9.2.0/libitm/libitm.info gcc-9.2.0/gcc/fortran/gfortran.info gcc-9.2.0/gcc/doc/gccinstall.info gcc-9.2.0/gcc/doc/gccint.info gcc-9.2.0/gcc/doc/gcc.info gcc-9.2.0/gcc/doc/cppinternals.info gcc-9.2.0/gcc/doc/cpp.info gcc-9.2.0/libgomp/libgomp.info gcc-9.2.0/libquadmath/libquadmath.info
It looks like Fortran is the only thing which isn't actually being installed. # ls /usr/share/gcc-data/x86_64-pc-linux-gnu/9.5.0/info cpp.info cppinternals.info gcc.info gccinstall.info gccint.info libgomp.info libitm.info libquadmath.info