https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125005
Bug ID: 125005
Summary: [16/17 Regression]
gfortran.dg/coarray/failed_images_2.f08,
image_status_2.f08, stopped_images_2.f08
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: testsuite-fail
Severity: normal
Priority: P3
Component: libfortran
Assignee: unassigned at gcc dot gnu.org
Reporter: hp at gcc dot gnu.org
Target Milestone: ---
Target: cris-elf
My autotest complains about three regressions remaining since a period
including a build breakage for libgfortran:
Running /x/gcc/testsuite/gfortran.dg/coarray/caf.exp ...
FAIL: gfortran.dg/coarray/failed_images_2.f08 -fcoarray=lib -O2 -lcaf_single
(test for excess errors)
FAIL: gfortran.dg/coarray/image_status_2.f08 -fcoarray=lib -O2 -lcaf_single
(test for excess errors)
FAIL: gfortran.dg/coarray/stopped_images_2.f08 -fcoarray=lib -O2 -lcaf_single
(test for excess errors)
Bisecting show this is due to r16-7727-gaa09298cb017ff.
In that commit, test-cases were *edited* instead of kept as-is, with new
test-cases for new or corrected functionality *added* (tsk tsk).
The errors are linkage errors, with undefined references to the unistd system
support function sleep (cf. sleep(3)):
/x/cris-elf/pre/cris-elf/bin/ld: /tmp/ccDrvTRU.o: in function `MAIN__':
failed_images_2.f08:(.text+0x2c8): undefined reference to
`_gfortran_sleep_i4_sub'
collect2: error: ld returned 1 exit status^
compiler exited with status 1
FAIL: gfortran.dg/coarray/failed_images_2.f08 -fcoarray=lib -O2 -lcaf_single
(test for excess errors)
This is due to the edits, in which calls to the fortran intrinsic "sleep" were
added, and because cris-elf, a newlib target, does not have such a function
(not even a stubbed implementation yielding error).
Those intrinsics are supposed to be backed by an implementation in libgfortran,
but that is #if HAVE_SLEEP-disabled for cris-elf, because the library
configuration test (which is a linkage test, ouch!) shows it has no such
function; again the link-time error.