https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125324
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-05-21
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #2 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Tobias, is this machine this problem is on part of the compiler farm?
If so I could test myself. If not, here is a draft patch:
diff --git a/gcc/fortran/gfortranspec.cc b/gcc/fortran/gfortranspec.cc
index 13b240013e8..d2aaf3e4e59 100644
--- a/gcc/fortran/gfortranspec.cc
+++ b/gcc/fortran/gfortranspec.cc
@@ -428,7 +428,10 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.\n\n"
}
if (need_caf_shmem)
- append_option (OPT_l, CAF_SHMEM_LIBRARY, 1);
+ {
+ append_option (OPT_pthread, NULL, 1);
+ append_option (OPT_l, CAF_SHMEM_LIBRARY, 1);
+ }
}
#ifdef ENABLE_SHARED_LIBGCC
I need to know if it fixes it.