https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
                 CC|                            |fxcoudert at gcc dot gnu.org

--- Comment #12 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
The Fortran module files are not installed in the right place, and that leads
to error upon compilation of valid user code (not finding the module files).

$ ls /usr/local/gfortran/lib/**/libgomp.dylib
/usr/local/gfortran/lib/i386/libgomp.dylib
/usr/local/gfortran/lib/libgomp.dylib

$ ls /usr/local/gfortran/lib/**/omp_lib.mod  
/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0/finclude/omp_lib.mod


It’s because the Makefile machinery is wrong. libgomp/Makefile.am has:

    fincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/finclude

while the corresponding libgfortran has:

fincludedir =
$(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR)/finclude

notice the extra $(MULTISUBDIR).

Reply via email to