This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, fortran] Fix PR 54033, problems with -I, with test cases


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]