-
Notifications
You must be signed in to change notification settings - Fork 146
Run-time deprecation warning for native Windows, 32-bit systems, ParFORM and Checkpoint #573
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
Conversation
66a0e6f to
7d40204
Compare
|
A run-time message seems good, as you say users may just use the distributed binaries rather than compiling themselves. This would be the first "--" option, is it more consistent to use a single "-" like |
|
I was considering the convention for long-name options in GNU tools (other than GCC), but this makes sense ( If you have a better name than |
7d40204 to
eb3658c
Compare
eb3658c to
27ece86
Compare
27ece86 to
dbbf3bc
Compare
|
Added a deprecation warning for the checkpoint as well, as discussed during the video call. Though it says we are considering the deprecation of the checkpoint mechanism, I maintained the checkpoint code for the deprecation warning flag. |
dbbf3bc to
33a8f45
Compare
33a8f45 to
fe26015
Compare
|
Now the issue numbers are linked to actual issues. |
FORM prints deprecation warnings at startup for native Windows, 32-bit (ILP32) and ParFORM (MPI) versions, as well as for the use of the checkpoint mechanism. This encourages users who need support for these deprecated features to leave a comment on the corresponding GitHub issues. The warnings can be suppressed by using the -ignore-deprecation command-line option or by setting the environment variable FORM_IGNORE_DEPRECATION=1.
fe26015 to
58403cc
Compare
jodavies
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine, let's see if anyone ever comments...
|
OK, it's been merged. |
|
I haven't cherry-picked it into 4.3. I don't remember why (maybe I simply missed them), but should all of the last arguments of #ifdef WITHFLOAT
#ifdef WITHPTHREADS
PADPOSITION(17,30,62,84,(sizeof(pthread_rwlock_t)+sizeof(pthread_mutex_t)*2)+2);
#else
PADPOSITION(17,28,62,84,2);
#endif
#else
#ifdef WITHPTHREADS
PADPOSITION(17,30,62,84,(sizeof(pthread_rwlock_t)+sizeof(pthread_mutex_t)*2)+2);
#else
PADPOSITION(17,28,62,84,2);
#endif
#endifThe commit 7b48c35 incremented only the last argument of the second |
|
Right, yes. In practice I don't think the explicit padding is required these days but we shouldn't let the numbers get "out of date" in the macros. |
|
OK, I'll push the fix. Thanks. |

This is an implementation of deprecation messages like those in #475 (comment) but at runtime startup rather than at build time, for Windows, 32bit builds and ParFORM.
End users may not build binaries themselves. 32-bit binaries and ParFORM are distributed by various distributors. We can distribute native Windows binaries if #511 is merged and
Delete Windows binariesindeploy.ymlis removed. This patch will cause these end users to see annoying deprecation warnings.The deprecation warning looks like, for example, for ParFORM:
This warning can be suppressed by the (undocumented)
--ignore-deprecationoption or the environment variableFORM_IGNORE_DEPRECATION=1.TODO: we need 3 separate issues for users to leave comments regarding the deprecation.