Closed Thirumalai-Shaktivel closed 2 months ago
@llvm/issue-subscribers-flang-runtime
Author: Thirumalai Shaktivel (Thirumalai-Shaktivel)
@llvm/issue-subscribers-bug
Author: Thirumalai Shaktivel (Thirumalai-Shaktivel)
@llvm/issue-subscribers-flang-frontend
Author: Thirumalai Shaktivel (Thirumalai-Shaktivel)
Yes, that's how this compiler works.
Hi @klausler, the example shared above is the simple reproducible example. But this issue is faced while building an application which has new CMake build system.
The constant_pi
module is built and packaged into shared library. The app.f90
uses only the circle
module to compute, but it shouldn't have any knowledge of the constant_pi
module which is about internal implementation.
This is the same behaviour with classic Flang. But, ifort, ifx and gfortran works fine.
Can you please clarify more and also any possible workarounds?
Any further comments on this? I believe the reported problem is a valid one.
Thank you @klausler, the PR changes seem to fix the issue.
@ningli-amd, can you please check with the application?
Reproducible files are available here, module-bug.tar.gz
MRE:
Flang-new
GFortran