public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Sandra Loosemore <sandra@codesourcery.com>
To: Tobias Burnus <tobias@codesourcery.com>,
	<gcc-patches@gcc.gnu.org>, <fortran@gcc.gnu.org>
Subject: Re: [PATCH 3/3] [PR libfortran/101305] Fix ISO_Fortran_binding.h paths in gfortran testsuite
Date: Tue, 27 Jul 2021 22:36:07 -0600	[thread overview]
Message-ID: <382f4838-bc85-8986-21ca-3cee5b5905df@codesourcery.com> (raw)
In-Reply-To: <72f86537-70c3-60d7-0ea5-9746f0524492@codesourcery.com>

On 7/26/21 2:13 PM, Sandra Loosemore wrote:
> On 7/26/21 3:45 AM, Tobias Burnus wrote:
>>
>> [snip]
>>
>> PS: Still, it would be nice if the proper multi-lib ISO*.h could be 
>> found;
>> while it usually does not matter, it could do so in some cases.
> 
> I think I ought to fix this now instead of just sweeping it under the 
> rug.  The suggestion you made previously to add
> 
>> # Flags for finding libgfortran ISO*.h files.
>> if [info exists TOOL_OPTIONS] {
>>    set specpath [get_multilibs ${TOOL_OPTIONS}]
>> } else {
>>    set specpath [get_multilibs]
>> }
>> set options "-I $specpath/libgfortran/"
> 
> to the .exp files looks consistent with what I see elsewhere for adding 
> things to the include path, so I will give it a try and see how it works.

Unfortunately, I could not get this to work.  For installed-tree 
testing, this resulted in diagnostics about a nonexistent directory on 
the include path.  In my i686-pc-linux-gnu build I was having other 
problems when I tried build-tree testing using

make check-gfortran RUNTESTFLAGS="--target-board=localhost/m64"

or similar variants of --target-board (it seemed to be ignoring all the 
xfails?) so I did not think that could be the way people who normally 
test in the build tree can be doing it.  And when I tried a recipe like

make check-gfortran RUNTESTFLAGS="ts29113.exp --tool_opts='-m64'"

it found the ISO_Fortran_binding.h via the correct /64-specific path via 
a -B option, same as for installed-tree testing.

Since the patch was already approved without additional hacks to include 
file paths, I went ahead and pushed it as-is.  If somebody can provide 
me with an exact recipe for reproducing failures to find the include 
file, I'll take another stab at it, but TBH this is far from my area of 
expertise.  :-(

BTW, I can't find any documentation for what get_multilibs is supposed 
to do.  It seems to be part of Dejagnu itself rather than the gcc test 
support?

-Sandra

  reply	other threads:[~2021-07-28  4:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13 21:28 [PATCH 0/3] [PR libfortran/101305] Bind(C): Fix kind/size mappings Sandra Loosemore
2021-07-13 21:28 ` [PATCH 1/3] [PR libfortran/101305] Bind(C): Fix type encodings in ISO_Fortran_binding.h Sandra Loosemore
2021-07-21 10:03   ` Tobias Burnus
2021-07-13 21:28 ` [PATCH 2/3] [PR libfortran/101305] Bind(C): Correct sizes of some types in CFI_establish Sandra Loosemore
2021-07-21  9:48   ` Tobias Burnus
2021-07-13 21:28 ` [PATCH 3/3] [PR libfortran/101305] Fix ISO_Fortran_binding.h paths in gfortran testsuite Sandra Loosemore
2021-07-21 10:17   ` Tobias Burnus
2021-07-23 14:15     ` Tobias Burnus
2021-07-23 20:43       ` Sandra Loosemore
2021-07-26  9:45         ` Tobias Burnus
2021-07-26 20:13           ` Sandra Loosemore
2021-07-28  4:36             ` Sandra Loosemore [this message]
2021-07-28 11:22               ` [Patch] gfortran.dg/dg.exp: Add libgfortran as -I flag for ISO*.h [PR101305] (was: [PATCH 3/3] [PR libfortran/101305] Fix ISO_Fortran_binding.h paths in gfortran testsuite) Tobias Burnus
2021-07-28 22:56                 ` Jakub Jelinek
2021-07-29  7:09                   ` Jakub Jelinek
2021-07-29  9:51                     ` [Patch] testsuite/lib/gfortran.exp: Add -I for ISO*.h [PR101305, PR101660] (was: Re: [Patch] gfortran.dg/dg.exp: Add libgfortran as -I flag for ISO*.h [PR101305] (was: [PATCH 3/3] [PR libfortran/101305] Fix ISO_Fortran_binding.h paths in gfortran testsuite)) Tobias Burnus
2021-08-09 10:50                       ` committed – " Tobias Burnus
2021-08-04  9:00   ` [PATCH 3/3] [PR libfortran/101305] Fix ISO_Fortran_binding.h paths in gfortran testsuite Andreas Schwab
2021-08-09 10:52     ` Tobias Burnus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=382f4838-bc85-8986-21ca-3cee5b5905df@codesourcery.com \
    --to=sandra@codesourcery.com \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=tobias@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).