Hi all,
the linaro CI reported test errors for aarch64 targets. I figured that for aarch64 on linux the compile flags -pthread and -lrt are needed to link caf_shmem and produce an executable. The attached patch addresses this by special case for aarch64-*-linux* similiar to freebsd.
Regtested ok on aarch64-unknown-linux-gnu (cfarm185) and x86_64-linux-gnu / F43. Ok for master?
Regards, Andre
On Thu, 12 Mar 2026 04:46:24 +0000 (UTC) ci_notify@linaro.org wrote:
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 vehre@gcc.gnu.org | 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 linaro-toolchain@lists.linaro.org 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/261... 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/261... The list of [ignored] baseline and flaky failures are in
https://ci.linaro.org/job/tcwg_gnu_cross_check_gcc--master-aarch64-build/261...
Current build : https://ci.linaro.org/job/tcwg_gnu_cross_check_gcc--master-aarch64-build/261... Reference build : https://ci.linaro.org/job/tcwg_gnu_cross_check_gcc--master-aarch64-build/261...
Instruction to reproduce the build : https://gitlab.com/LinaroLtd/tcwg/ci/interesting-commits/-/raw/master/gcc/sh...
Full commit : See in git+ssh://linaroci@gcc.gnu.org/git/gcc.git