This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libgomp on 32-bit darwin
- From: FX <fxcoudert at gmail dot com>
- To: Jack Howarth <howarth dot at dot gcc at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 3 May 2016 22:54:20 +0200
- Subject: Re: libgomp on 32-bit darwin
- Authentication-results: sourceware.org; auth=none
- References: <4795FF84-EC6B-448F-991E-AAA8948D5EE4 at gmail dot com> <CAJMcOU-k8ni+y05YH6CaxH3KAmHNjSYkXAqs-NYPWaNztK+Xtw at mail dot gmail dot com>
> No problem here x86_64-apple-darwin15 with a build usingâ
True, I didnât realize libgomp is builtâ but the Fortran module files are not installed in the right place.
$ 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).
So this is apparently not a new bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670), but it probably should be fixed.
FX