Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails when Real128 not available #338

Open
jacobmerson opened this issue Feb 2, 2022 · 1 comment
Open

Build fails when Real128 not available #338

jacobmerson opened this issue Feb 2, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jacobmerson
Copy link

There are a few places where the REAL128 type specification is used that is not behind include guards which prevents pfunit from building.

@mathomp4
Copy link
Collaborator

I just hit this myself in test building pFUnit on an M1 Mac with a hand-built GCC.

To wit, I found I needed for pFUnit v4.3.0:

diff --git a/src/funit/fhamcrest/BaseDescription.F90 b/src/funit/fhamcrest/BaseDescription.F90
index 0eda5a4..0775fbf 100644
--- a/src/funit/fhamcrest/BaseDescription.F90
+++ b/src/funit/fhamcrest/BaseDescription.F90
@@ -40,10 +40,14 @@ module pf_BaseDescription
       module procedure description_of_int64
       module procedure description_of_real32
       module procedure description_of_real64
+#if (defined(_ISO_REAL128) && (_ISO_REAL128 != _REAL_DEFAULT_KIND) && (_ISO_REAL128 != _DOUBLE_DEFAULT_KIND))
       module procedure description_of_real128
+#endif
       module procedure description_of_complex32
       module procedure description_of_complex64
+#if (defined(_ISO_REAL128) && (_ISO_REAL128 != _REAL_DEFAULT_KIND) && (_ISO_REAL128 != _DOUBLE_DEFAULT_KIND))
       module procedure description_of_complex128
+#endif
    end interface description_of

 contains

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants