-
Notifications
You must be signed in to change notification settings - Fork 35
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
Problems with intrinsic modules #37
Comments
Here's an idea: if FoBiS determines that there is a module it can't see, just go ahead and compile everything anyway. Then, if it's really a problem, it will fail when compiling (with the normal compiler error message about not being able to locate a module with the given name). That way, you could account for this situation without having to have a list of the intrinsic modules somewhere in the code. (Maybe in verbose mode it could print out the list of things it can't find). |
@jacobwilliams Sounds like a plan to me! Also, @jacobwilliams, just curious if you saw my PR from yesterday for json-fortran |
Arghhhhh I was sure to have trapped the intrinsic modules usage, but evidently I was wrong! The idea of Jacob is very nice... tomorrow I will push the new 1.5.1 version with this feature 👍 |
My vote is for this behavior:
This will likely be helpful for compiler vendor language extensions, etc. |
Hi all, I just understand why my intrinsic modules usage is correctly handled and your not. In my OCD workflow I declare explicitly their are intrinsic module by the I like your feature request to collect the warning on missing dependencies and trying always to make the building, this fixes also the intrinsic modules issue, but I am thinking to change their trap: I do not like false positive warning about them... the standard defines their name thus I think it is better to catch them explicitly. Anyhow the I will push an update later this morning. |
Dear all, in v1.5.1 should be fixed. It is worthy to note that your feature request should be also accomplished: now if a missing dependency of any type is encountered a warning message is printed and then the build is attempted any way. See you soon. |
Great! Thanks so much. Does this mean that |
Yes (or not :-) ), no warnings are now printed for the 5 standard intrinsic modules usage (with or without the explicit keyword intrinsic). I have test with only iso_c_binding and iso_fortran_env, the ieee_xxxx modules are not tested. See you soon. |
Awesome, thanks! 👍 |
Hi Stefano,
I’m running into this error:
And the build is failing. However, iso_c_binding is an intrinsic module and does not require any source file to be built, same with iso_fortran_env and ieee_…
Is there a way to tell FoBiS.py not to try to build the intrinsic module, and not to fail if it can’t seem to find it?
The text was updated successfully, but these errors were encountered: