-
Notifications
You must be signed in to change notification settings - Fork 42
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
Pgplot compilation : a workaround #110
Comments
Is this the 'mknemo pgplot' method? I don't recall i needed flags with
either gcc 12 or 11
…On Sun, Nov 27, 2022, 13:06 Jean-Charles Lambert ***@***.***> wrote:
Since gcc 10.x Pgplot does not compile.
The workaround is just to add compilation flag -fallow-argument-mismatch
to the pgplot makefile and the it compiles flawlessly.
It would be necessary to patch pgplot makefile during nemo
configuration/installation
—
Reply to this email directly, view it on GitHub
<#110>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZ4MGLBGAYTCHVWNP62BJLWKOPJ5ANCNFSM6AAAAAASMUGOGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
well... I am confused.... I was working on a old branch and pgplot was not compiling without this flag..... should not work on sunday... |
I do remember I needed this flag in a few fortran codes, sellwood maybe, and also the io_nemo Makefile now has:
working on Sunday, as long as it's in moderation, can be entertaining |
Ok, on monday my brain works better :) Well, I confirm that this flag The following pgplot installation :
fails without this flag added into $NEMO/lib/makefile And by default, https://teuben.github.io/nemo/install_nemo script has by default |
I always use PNG now, but I guess for making animated GIF's there might be a reason to keep this. I will add this to the configure procedure But I should note that this particular install_nemo script is deprecated in favor of the install_nemo.sh counter part. More cleanly written. The old csh version is - shall we say - organically grown and is messy to look at. |
The pb with PNG is that the libpng-devel package needs to be installed on the server. Then if it's not installed what happens with pgplot installation/compilation ? |
it should fail. Somehow I seem to have it by default in ubuntu, I didn't put it in my default "packages to install" in |
I am encountering all these issues because I am building nemo inside manylinux_2xxx docker images which are centos base distributions. (the purpose is too build python-unsio and python-unsiotools and upload to pypi.org) |
it should be good to check if png package is present |
btw, are you are we need to add it to makedefs, and not to the pgplot install script. They have their own peculiar method to set compiler specific flags. |
Do you mean compilation flag for pgplot ? |
Looking at the code in $NEMO/local/pgplot (where "mknemo pgplot" dumps the code) I see that in
one needs to modify
but my programs then coredump'd when using the /gif driver. I forgot to add the int8=1 fix to the pgplot build script. After this i got good gif files. The int8=1 changes
in gidriv, ppdriv and wddriv |
I'm also willing to make gif=0 the default, but that csh script has been deprecated. The new install_nemo.sh script already had gif=0 by default, if you use the yapp=pglocal (which uses our source code). But that new one also has png=1 as default, so you need the png development library. \ |
The better would be to have no png and no gif.
|
thanks, it's good to see such a dockerfile so I can see how you do this. If you don't really care about the drivers in pgplot and just want a compilation, you should use the yapp=ps driver. Much easier and doesn't need another library. Even yapp=null should work. I can also "advertise" the install_nemo.sh script, try
to see the options. I would like to argue you can now do it in two steps. Or does dockerfile not support the prefix?
some of the options in install_nemo haven't been ported to install_nemo.sh, but I'll add some if you argue in their favor :-) |
OK I will try yapp=ps |
I think we can close this issue, barring hearing from you if you're happy with using the bash script instead (and with yapp=ps) |
Sure, yes you can close it. THANKS for your help ! |
Since gcc 10.x Pgplot does not compile.
The workaround is just to add compilation flag
-fallow-argument-mismatch
to the pgplot makefile and the it compiles flawlessly.It would be necessary to patch pgplot makefile during nemo configuration/installation
The text was updated successfully, but these errors were encountered: