From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5143 invoked by alias); 2 Aug 2012 09:41:01 -0000 Received: (qmail 5129 invoked by uid 22791); 2 Aug 2012 09:41:00 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mx01.qsc.de (HELO mx01.qsc.de) (213.148.129.14) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 02 Aug 2012 09:40:45 +0000 Received: from [192.168.178.22] (port-92-204-86-97.dynamic.qsc.de [92.204.86.97]) by mx01.qsc.de (Postfix) with ESMTP id AD4373CF2F; Thu, 2 Aug 2012 11:40:37 +0200 (CEST) Message-ID: <501A4B12.8070709@net-b.de> Date: Thu, 02 Aug 2012 09:41:00 -0000 From: Tobias Burnus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Richard Guenther CC: Thomas Koenig , "fortran@gcc.gnu.org" , gcc-patches 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-08/txt/msg00081.txt.bz2 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