[sr #111055] AC_OPENMP fails with Apple Clang

Zack Weinberg <[email protected]> Tue, 27 Jan 2026 10:54:16 -0500 (EST)
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Update of sr #111055 (group autoconf):

                Priority:       5 - Unprioritized => 2 - Eventually
                Severity:           4 - Important => 3 - Normal
                  Status:                    None => Need Info

    _______________________________________________________

Follow-up Comment #4:

The test program used by AC_OPENMP, for both C and C++, already includes
<omp.h> and attempts to call a function in the OpenMP library, and AC_OPENMP
does both a compile and a link test.  

I think it's likely that the compilers that recognize `-Wp,-fopenmp` but not
`-fopenmp` behave that way *because* their support for OpenMP was incomplete.
So I'm currently inclined not to apply the patch here.  I would apply it if
someone found a compiler that *does* have full support for OpenMP, yet still
recognizes only 
`-Wp,-fopenmp`, not `-fopenmp`.  In other words, a compiler for
which AC_OPENMP currently fails to detect OpenMP support, and applying the
patch makes it succeed.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?111055>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaXjfqAAKCRCqLAuaBUf3
Tsv6AP9PyCHi9QtNAFkSfPoBQao3GO4YlA9UobOVsfgw65FcSwD6AuxQ1gsSCBp3
OORLZFDFhxLl7QLqUnGyVW8bev5X8gE=
=Frlc
-----END PGP SIGNATURE-----