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

Andre Vehreschild <vehre at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-03-20

--- Comment #14 from Andre Vehreschild <vehre at gcc dot gnu.org> ---
Well, it is not 100% correct, that netbsd (at least 10.0) does not have
pthread_condattr_setpshared. It just hides those functions, which makes them
useless.

At least the first part of Christopher's patch allows to compile on
aarch64-netbsd. But I suppose that is the fix for a bug named "gcc can not be
compiled on aarch64-netbsd because host_detect_local_cpu is missing.". With
that part of the patch, I can confirm the bug, that condattr_setpshared is not
available on aarch64-netbsd.

I tried forcing the use of pthread_condattr_setpshared by setting
_PTHREAD_PSHARED before inclusion of pthread.h. caf_shmem compiles with that,
but it can not complete *any* of the tests in the testsuite/gfortran.dg/coarray
folder. Not even the ones, that do not use caf_shmem. I.e. every test fails
with (test for excess errors). 

I am sorry, but my patience with this HW/OS combination is running out.
Deactivating caf_shmem on systems that do not implement posix conventions
correctly is fine with me.

Reply via email to