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 with LLVM flang 19 #1091

Closed
awvwgk opened this issue Nov 23, 2024 · 2 comments
Closed

Build fails with LLVM flang 19 #1091

awvwgk opened this issue Nov 23, 2024 · 2 comments

Comments

@awvwgk
Copy link
Member

awvwgk commented Nov 23, 2024

Looks like flang cannot compile fpm 0.10.1 at the moment. The build of the bootstrapper fails with multiple errors.

See conda-forge/fpm-feedstock#27

@awvwgk
Copy link
Member Author

awvwgk commented Nov 25, 2024

Error message from building the bootstrapper, unfortunately not mapped to the fpm source files:

(%BUILD_PREFIX%) %SRC_DIR%>flang-new -J build\bootstrap -o build\bootstrap\fpm.exe build\bootstrap\fpm.F90 
error: Semantic errors in build\bootstrap\fpm.F90
.\build\bootstrap\fpm.F90:27433:14: error: 'toml_error' from host is not accessible
          type(toml_error), allocatable :: toml_error
               ^^^^^^^^^^
.\build\bootstrap\fpm.F90:27433:42: because: 'toml_error' is hidden by this entity
          type(toml_error), allocatable :: toml_error
                                           ^^^^^^^^^^
.\build\bootstrap\fpm.F90:28256:22: error: Override of PRIVATE DEFERRED 'serializable_is_same' must appear in its module
          procedure :: serializable_is_same => git_is_same
                       ^^^^^^^^^^^^^^^^^^^^
.\build\bootstrap\fpm.F90:27293:24: Procedure 'serializable_is_same' of type 'serializable_t' is bound to 'is_equal'
        logical function is_equal(this,that)
                         ^^^^^^^^
.\build\bootstrap\fpm.F90:28257:22: error: Override of PRIVATE DEFERRED 'dump_to_toml' must appear in its module
          procedure :: dump_to_toml
                       ^^^^^^^^^^^^
.\build\bootstrap\fpm.F90:27261:18: Procedure 'dump_to_toml' of type 'serializable_t' is bound to 'to_toml'
        subroutine to_toml(self, table, error)
                   ^^^^^^^
.\build\bootstrap\fpm.F90:28258:22: error: Override of PRIVATE DEFERRED 'load_from_toml' must appear in its module
          procedure :: load_from_toml
                       ^^^^^^^^^^^^^^
.\build\bootstrap\fpm.F90:27277:18: Procedure 'load_from_toml' of type 'serializable_t' is bound to 'from_toml'
        subroutine from_toml(self, table, error)
                   ^^^^^^^^^
.\build\bootstrap\fpm.F90:28263:15: error: Generic 'OPERATOR(==)' may not have specific procedures 'serializable_t%serializable_is_same' and 'git_target_eq' as their interfaces are not distinguishable
      interface operator(==)
                ^^^^^^^^^^^^

@perazz
Copy link
Contributor

perazz commented Nov 30, 2024

flang compilation was fixed in #1011 #1013 #1024 #1028 #1029, trunk builds just fine so I will close this one. For the package managers, a new release may be needed.

@perazz perazz closed this as completed Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants