public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* libgomp.fortran/async_io_[1,2,3,4,8,9].f90 fail on FreeBSD
@ 2021-10-22 19:43 Steve Kargl
  2021-10-23 15:56 ` Thomas Koenig
  0 siblings, 1 reply; 7+ messages in thread
From: Steve Kargl @ 2021-10-22 19:43 UTC (permalink / raw)
  To: fortran

libgomp.fortran/async_io_[1,2,3,4,8,9].f90 account for a number
of FAILS on x86_64-*-freebsd.  Please fix.

-- 
Steve

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libgomp.fortran/async_io_[1,2,3,4,8,9].f90 fail on FreeBSD
  2021-10-22 19:43 libgomp.fortran/async_io_[1,2,3,4,8,9].f90 fail on FreeBSD Steve Kargl
@ 2021-10-23 15:56 ` Thomas Koenig
  2021-10-23 16:31   ` Steve Kargl
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Koenig @ 2021-10-23 15:56 UTC (permalink / raw)
  To: Steve Kargl, fortran

Hi Steve,

> libgomp.fortran/async_io_[1,2,3,4,8,9].f90 account for a number
> of FAILS on x86_64-*-freebsd.  Please fix.

I'd try to see what is going on, but I have been unable to boot gcc
(and thus gfortran) on any of the *BSD machines running on the
gcc compile farm, and more specifically on gcc303 which is a VM
running FreeBSD, after spending quite some hours on it.

I have submitted a couple of PRs, but apperenty others (including you)
have a working toolchain, so the PRs have been left unfixed so far.

Also, bootstrapping on gcc303 is going to be a very long process
because it's a two-processor machine :-|

So, any idea how to proceed?

Best regards

	Thomas


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libgomp.fortran/async_io_[1,2,3,4,8,9].f90 fail on FreeBSD
  2021-10-23 15:56 ` Thomas Koenig
@ 2021-10-23 16:31   ` Steve Kargl
  2021-10-23 18:00     ` Tobias Burnus
  0 siblings, 1 reply; 7+ messages in thread
From: Steve Kargl @ 2021-10-23 16:31 UTC (permalink / raw)
  To: Thomas Koenig; +Cc: fortran

On Sat, Oct 23, 2021 at 05:56:46PM +0200, Thomas Koenig wrote:
> Hi Steve,
> 
> > libgomp.fortran/async_io_[1,2,3,4,8,9].f90 account for a number
> > of FAILS on x86_64-*-freebsd.  Please fix.
> 
> I'd try to see what is going on, but I have been unable to boot gcc
> (and thus gfortran) on any of the *BSD machines running on the
> gcc compile farm, and more specifically on gcc303 which is a VM
> running FreeBSD, after spending quite some hours on it.
> 
> I have submitted a couple of PRs, but apperenty others (including you)
> have a working toolchain, so the PRs have been left unfixed so far.
> 
> Also, bootstrapping on gcc303 is going to be a very long process
> because it's a two-processor machine :-|
> 
> So, any idea how to proceed?
> 

I saw that you were having problems on the compile
farm with bootstrapping a *BSD gcc.  I simply cannot
tell why.  It just works on a true FreeBSD system.

Do you know how to run a single libgomp.fortran test?
I tried 

% gmake check-fortran RUNTESTSFLAGS="gomp.exp=async_io.f90"

but this runs all the testcases.  Now that I look at the
commit date of 2020-05-23 for async_io_9.f90, I know these
tests were passing in the past.  I fear a reason Sandra/Tobias
commit has broken things.

 

-- 
Steve

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libgomp.fortran/async_io_[1,2,3,4,8,9].f90 fail on FreeBSD
  2021-10-23 16:31   ` Steve Kargl
@ 2021-10-23 18:00     ` Tobias Burnus
  2021-10-23 18:13       ` Tobias Burnus
  2021-10-23 19:09       ` Steve Kargl
  0 siblings, 2 replies; 7+ messages in thread
From: Tobias Burnus @ 2021-10-23 18:00 UTC (permalink / raw)
  To: Steve Kargl, Thomas Koenig; +Cc: fortran

Hi Steve,

On 23.10.21 18:31, Steve Kargl via Fortran wrote:
> Do you know how to run a single libgomp.fortran test? I tried
> % gmake check-fortran RUNTESTSFLAGS="gomp.exp=async_io.f90"
>
> but this runs all the testcases.

First, it should be RUNTESTFLAGS=  (test not tests).

Additionally, gomp.exp (for Fortran) is in 
gcc/testsuite/gfortran.dg/gomp/ but if you want to test 
libgomp/testsuite/libgomp.fortran/ (or libgomp.oacc-fortran/), you have 
to use "fortran.exp" (and not "gomp.exp").

And in order to make RUNTESTFLAGS effective, you cannot run in 
$(BUILD).* You either have to move to $(BUILD)/gcc – and run there "make 
check-fortran". For for libgomp, you need to go to 
$(BUILD)/$target_triplet/libgomp/ and run "make check" there. 
($target_triplet is "x86_64-pc-linux-gnu" on my laptop.)

(* at least it does not seem to work here.)
> commit date of 2020-05-23 for async_io_9.f90, I know these
> tests were passing in the past.  I fear a reason Sandra/Tobias
> commit has broken things.

I sincerely doubt that our Fortran commits have broken this – they are 
not related to anything like TS29113, BIND(C), polymorphism or 
assumed-rank. I am even skeptical that any OpenMP change could have 
caused that, given that those do not really use OpenMP at all – but only 
pthreads (which is the reason they are in libgomp as OpenMP also depends 
on threads). Granted, as they are compiled with -fopenmp, libgomp is 
linked in (but should never be called, except for library initialization).

Nonetheless, if it used to work and now fails, something must have 
changed, causing the breakage.

If you compile and run the program manually without the DejaGNU, does it 
fail when compiled as is, compiled with -pthreads, compiled with -fopenmp?

Tobias


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libgomp.fortran/async_io_[1,2,3,4,8,9].f90 fail on FreeBSD
  2021-10-23 18:00     ` Tobias Burnus
@ 2021-10-23 18:13       ` Tobias Burnus
  2023-01-17  0:00         ` Gerald Pfeifer
  2021-10-23 19:09       ` Steve Kargl
  1 sibling, 1 reply; 7+ messages in thread
From: Tobias Burnus @ 2021-10-23 18:13 UTC (permalink / raw)
  To: Steve Kargl, Gerald Pfeifer; +Cc: fortran, Thomas Koenig

Hi Steve, hi Gerald,

@Gerald: Do you see those issues as well? Or do you have an idea what 
could go wrong?

@Gerald (and unrelated to the topic below): Can you provide more log 
data regarding the failing gfortran.dg tests? (Esp. excess errors but 
also the ICE.)

On 23.10.21 20:00, Tobias Burnus wrote:
> On 23.10.21 18:31, Steve Kargl via Fortran wrote:
>> commit date of 2020-05-23 for async_io_9.f90, I know these
>> tests were passing in the past.

If I look at Gerald's results for x86_64-unknown-freebsd12.2 at 
https://gcc.gnu.org/pipermail/gcc-testresults/2021-October/730072.html I 
do not see those async fails.

Tobias

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libgomp.fortran/async_io_[1,2,3,4,8,9].f90 fail on FreeBSD
  2021-10-23 18:00     ` Tobias Burnus
  2021-10-23 18:13       ` Tobias Burnus
@ 2021-10-23 19:09       ` Steve Kargl
  1 sibling, 0 replies; 7+ messages in thread
From: Steve Kargl @ 2021-10-23 19:09 UTC (permalink / raw)
  To: Tobias Burnus; +Cc: Thomas Koenig, fortran

On Sat, Oct 23, 2021 at 08:00:44PM +0200, Tobias Burnus wrote:
> Hi Steve,
> 
> On 23.10.21 18:31, Steve Kargl via Fortran wrote:
> > Do you know how to run a single libgomp.fortran test? I tried
> > % gmake check-fortran RUNTESTSFLAGS="gomp.exp=async_io.f90"
> > 
> > but this runs all the testcases.
> 
> First, it should be RUNTESTFLAGS=  (test not tests).

Yes, of course, it was a typo,

> I sincerely doubt that our Fortran commits have broken this – they are not
> related to anything like TS29113, BIND(C), polymorphism or assumed-rank. I
> am even skeptical that any OpenMP change could have caused that, given that
> those do not really use OpenMP at all – but only pthreads (which is the
> reason they are in libgomp as OpenMP also depends on threads). Granted, as
> they are compiled with -fopenmp, libgomp is linked in (but should never be
> called, except for library initialization).
> 
> Nonetheless, if it used to work and now fails, something must have changed,
> causing the breakage.
> 
> If you compile and run the program manually without the DejaGNU, does it
> fail when compiled as is, compiled with -pthreads, compiled with -fopenmp?
> 

I have the gfortran.log file, I'll see if I can reduce the log
to determine why things are broken now.

-- 
Steve

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libgomp.fortran/async_io_[1,2,3,4,8,9].f90 fail on FreeBSD
  2021-10-23 18:13       ` Tobias Burnus
@ 2023-01-17  0:00         ` Gerald Pfeifer
  0 siblings, 0 replies; 7+ messages in thread
From: Gerald Pfeifer @ 2023-01-17  0:00 UTC (permalink / raw)
  To: Tobias Burnus; +Cc: Steve Kargl, fortran, Thomas Koenig

On Sat, 23 Oct 2021, Tobias Burnus wrote:
> @Gerald: Do you see those issues as well? Or do you have an idea what 
> could go wrong?
> 
> @Gerald (and unrelated to the topic below): Can you provide more log data
> regarding the failing gfortran.dg tests? (Esp. excess errors but also the
> ICE.)

Apologies, it appears I failed to respond back then. 

Is there anything I may be able to help with still? I probably won't be 
able to debug/hack this, but if you need some more detailed logs or would
like me to test a patch or run some commands, I certainly can do that.

> On 23.10.21 20:00, Tobias Burnus wrote:
>> On 23.10.21 18:31, Steve Kargl via Fortran wrote:
>>> commit date of 2020-05-23 for async_io_9.f90, I know these
>>> tests were passing in the past.
> If I look at Gerald's results for x86_64-unknown-freebsd12.2 at
> https://gcc.gnu.org/pipermail/gcc-testresults/2021-October/730072.html 
> I do not see those async fails.

Cheers,
Gerald

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-01-17  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 19:43 libgomp.fortran/async_io_[1,2,3,4,8,9].f90 fail on FreeBSD Steve Kargl
2021-10-23 15:56 ` Thomas Koenig
2021-10-23 16:31   ` Steve Kargl
2021-10-23 18:00     ` Tobias Burnus
2021-10-23 18:13       ` Tobias Burnus
2023-01-17  0:00         ` Gerald Pfeifer
2021-10-23 19:09       ` Steve Kargl

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).