-
Notifications
You must be signed in to change notification settings - Fork 13
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
Embedded zlib compression looks like it is not fully portable #59
Comments
This might work as designed, not really sure I remember what the design was here :-) Does the system you run on have a gzip command available? |
I initially had a system w/o gzip, then installed it. No difference so far. |
Wasn't it (at least originally) a "portable", i.e. stand-alone code-snippet that was included in the "fat" mcpl code, i.e. without dependence on external libs or executables? |
Well, I don't know about "portable" as in "works on all platforms", but it is included in the fat mcpl code. However, I am not sure if that ever worked on windows? Because I explicitly remember that I (for the sake of McStas on Windows) added the capability for the code to fall-back to using an external gzip command. It is long ago however... perhaps the usage of the fat mcpl.cc rather than the normal mcpl.cc will mean that it will never actually go and look for the external gzip command. |
This could very well be. Let's see if we can figure this out together when we meet at DMSC in the near future? |
Looking at the code now, I can't find any reference to an invocation of an external gzip command, so maybe this is something that was removed again. From the error message, it seems that this internal function returns a failure: int _mcpl_custom_gzip(const char *filename, const char *mode) Is it easy for you to add some printouts or otherwise debug where this fails? Are you 100% sure it is not something as silly as a wrong filename or the dreaded spaces in paths or something? |
Posted at the same time, but yes, let us look at it together :-) |
I just stumbled upon On my cross-compilation box, I have now
|
@willend, try the new What |
Hurray! Did you use the |
I used |
It should not have been, using the The only potential downside I can see of the |
As is, I believe no other McStas comps use zlib. |
And actually, IIRC zlib has some sort of option to prefix all symbols with a custom name. I could at some point look into using that when doing the zlib-fetch version. |
Hi there,
This is intended mostly for documentation purposes...
When running MCPL on windows, e.g. using the McStas-provided Test_MCPL_output.instr, compression using zlib/gzip consistently fails with this warning message:
MCPL: Attempting to compress file voutput.mcpl with zlib MCPL ERROR: Problems encountered while compressing file voutput.mcpl.
Source mcpl file is left as is and a 0-length gzip file is written.
I consider this issue non-important since
The text was updated successfully, but these errors were encountered: