This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] Fix PR 54033, problems with -I, with test cases
- From: Tobias Burnus <burnus at net-b dot de>
- To: Richard Guenther <richard dot guenther at gmail dot com>
- Cc: Thomas Koenig <tkoenig at netcologne dot de>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 02 Aug 2012 11:40:34 +0200
- Subject: Re: [patch, fortran] Fix PR 54033, problems with -I, with test cases
- References: <50117B5D.8030304@netcologne.de> <50118A67.2040702@mentor.com> <5012F4AF.7050807@netcologne.de> <50130F9B.1010300@mentor.com> <5015015F.6070303@netcologne.de> <5017E1F6.3050906@net-b.de> <CAFiYyc0Cwb+qMYC6QQV=5Y0cY+-CN+586pZ446RsCVcnCgMVgg@mail.gmail.com>
On 08/02/2012 10:54 AM, Richard Guenther wrote:
Seems to break testing, all testcases emit
Warning: Nonexistent include directory "finclude"^M
now and thus all testcases fail like
FAIL: gfortran.dg/alloc_comp_basics_1.f90 -O0 (test for excess errors)
First, I actually wonder why it only lists "finclude" and not the full
pathname.
I think the problem is that gfortran (the driver) passes something like
-fintrinsic-modules-path
/$PREFIX/lib64/gcc/x86_64-unknown-linux-gnu/4.8.0/finclude
to the actual compiler (f951).
That directory only exists if the compiler is installed but not if one
runs the test suite without installing it. I wonder how the OpenMP tests
handle it - there one needs the files from that directory. (It currently
contains the following files: omp_lib.f90 omp_lib.h omp_lib_kinds.mod
omp_lib.mod.) Answer: Theose seemingly include "$BUILD/$triplet/libgomp"
in the -I path, which also contain those files. (That probably clashes
with "use, intrinsic :: omp_lib", but that shouldn't matter.)
I am not sure whether it is the best solution, but one possibility would
be to ignore -fintrinsic-modules-path for the warning. (That assumes
that the warning is (almost) never needed for an installed compiler.)
Tobias