https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124484

            Bug ID: 124484
           Summary: Coarray test error on aarch64 due to missing -lrt
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vehre at gcc dot gnu.org
  Target Milestone: ---

The linaro CI reported broken tests on aarch64-linux-gnu (s. below). Testing
this on the compile farm cfarm185, it got clear that -pthread and -lrt is
missing when linking against caf_shmem.

Dear contributor,

Our automatic CI has detected problems related to your patch(es). Please find
some details below.

In  master-aarch64, after:
  | commit gcc-16-7727-gaa09298cb017
  | Author: Andre Vehreschild <[email protected]>
  | Date:   Wed Jun 18 09:26:22 2025 +0200
  | 
  |     Fortran: Enable coarray tests for multi image use [PR88076]
  |     
  |     Change some of regression tests to run on single and multiple images.
  |     Add some new tests.
  |     
  | ... 29 lines of the commit log omitted.

Produces 157 regressions:
  | 
  | regressions.sum:
  | Running gfortran:gfortran.dg/coarray/caf.exp ...
  | FAIL: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=lib  -O2  -lcaf_shmem
(test for excess errors)
  | UNRESOLVED: gfortran.dg/coarray/alloc_comp_1.f90 -fcoarray=lib  -O2 
-lcaf_shmem compilation failed to produce executable
  | FAIL: gfortran.dg/coarray/alloc_comp_10.f90 -fcoarray=lib  -O2  -lcaf_shmem
(test for excess errors)
  | UNRESOLVED: gfortran.dg/coarray/alloc_comp_10.f90 -fcoarray=lib  -O2 
-lcaf_shmem compilation failed to produce executable
  | ... and 153 more

Used configuration :
 *CI config* tcwg_gnu_cross_check_gcc master-aarch64
 *configure and test flags:* --target aarch64-linux-gnu 

We track this bug report under https://linaro.atlassian.net/browse/GNU-1860.
Please let us know if you have a fix.

If you have any questions regarding this report, please ask on
[email protected] mailing list.

-----------------8<--------------------------8<--------------------------8<--------------------------

The information below contains the details of the failures, and the ways to
reproduce a debug environment:

You can find the failure logs in *.log.1.xz files in
 *
https://ci.linaro.org/job/tcwg_gnu_cross_check_gcc--master-aarch64-build/2614/artifact/artifacts/00-sumfiles/
The full lists of regressions and improvements as well as configure and make
commands are in
 *
https://ci.linaro.org/job/tcwg_gnu_cross_check_gcc--master-aarch64-build/2614/artifact/artifacts/notify/
The list of [ignored] baseline and flaky failures are in
 *
https://ci.linaro.org/job/tcwg_gnu_cross_check_gcc--master-aarch64-build/2614/artifact/artifacts/sumfiles/xfails.xfail

Current build   :
https://ci.linaro.org/job/tcwg_gnu_cross_check_gcc--master-aarch64-build/2614/artifact/artifacts
Reference build :
https://ci.linaro.org/job/tcwg_gnu_cross_check_gcc--master-aarch64-build/2613/artifact/artifacts

Instruction to reproduce the build :
https://gitlab.com/LinaroLtd/tcwg/ci/interesting-commits/-/raw/master/gcc/sha1/aa09298cb017ff8c3224166b33204662174822df/tcwg_gnu_cross_check_gcc/master-aarch64/reproduction_instructions.txt

Full commit : See in git+ssh://[email protected]/git/gcc.git

Reply via email to