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

Compilation fails with NVCC on some PowerPC machines #2701

Closed
sframba opened this issue Sep 22, 2023 · 2 comments
Closed

Compilation fails with NVCC on some PowerPC machines #2701

sframba opened this issue Sep 22, 2023 · 2 comments
Assignees
Labels
type: bug Something isn't working type: new A new issue has been created and requires attention

Comments

@sframba
Copy link
Contributor

sframba commented Sep 22, 2023

Describe the bug
Compilation fails on some PowerPC machines with nvcc. This is the case on the Pangea3 Power9 platform for exemple.
The cause is a compiler bug that causes the fmt library to malfunction. Specifically, if:

  • Using fmt versions 10.0 and above;
  • On a PowerPC machine (although it could happen on other platforms)
  • WIth a compiler for which the following substitution in fmt/include/core.h fails:
    typename Context::template formatter_type<T>().format( std::declval<const T&>(), std::declval<Context&>())
    then the has_const_formatter check fails and the compilation stops.
    The bug was inadvertently introduced by PR 2449.

This fmt issue is known, and a workaround was introduced but later removed.

To Reproduce
Take the current develop branch of GEOS (as of 09/22/2023) and compile. The compilation fails at coreComponents/functions/TableFunctions.cpp line 69. fmt provides the following information:

"Cannot format an argument. To make type T formattable provide a formatter<T> specialization"

Expected behavior
Compilation succeeds.

Platform (please complete the following information):
Pangea3 and possibly other Power machines. GEOS latest version.

@sframba sframba added type: bug Something isn't working type: new A new issue has been created and requires attention labels Sep 22, 2023
@sframba sframba changed the title Compilation fails on some PPC machines Compilation fails with NVCC on some machines Sep 22, 2023
@sframba
Copy link
Contributor Author

sframba commented Sep 22, 2023

Solved by PR 2702

@sframba sframba changed the title Compilation fails with NVCC on some machines Compilation fails with NVCC on some PowerPC machines Sep 22, 2023
@sframba
Copy link
Contributor Author

sframba commented Oct 12, 2023

Compilation issue appears again, after PR #2756.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working type: new A new issue has been created and requires attention
Projects
None yet
Development

No branches or pull requests

2 participants