Closed sergei-dyshel closed 3 years ago
You mean a file that was previously compressed with gzip? Do you get the same error when using gunzip to uncompress it? Is the (original, compressed) file safe to attach here so I can try to reproduce the issue and see why it occurs?
I also get this message when I compress an uncompressed file. It seems to compress it though. On Big Sur.
On Sunday December 20 2020 21:31:04 Aaron Kaluszka wrote:
I also get this message when I compress an uncompressed file. It seems to compress it though. On Big Sur.
Can you share the original file? What hardware are you running on?
I get this for any file. I was testing on the files in this repo, such as CMakeLists.txt. MacBook Pro (Retina, 15-inch, Mid 2015)
Do you still have the possibility to boot under the (or a) previous version of the OS? Evidently you decompress the files before each new attempt to compress them? ;)
If this syndrome is caused by an OS upgrade I am going to have to stare long and hard at the code to see what can be different. I hope Apple didn't modify the system functions that are used for setting the extended attributes storing the compression data (com.apple.decmpfs and com.apple.ResourceFork for larger files). Does the compiler show you obsolete warnings in that part of the code?
What you could do is building my getfattr
utility (in the attr
repo on here) and see what getfattr -d /path/to/foo
returns for a file supposedly already compressed before compressing it and after. And if you can, what it shows in an older OS version where those files still compress without warnings.
I tried this on another machine that is running Catalina (XCode 11.4.1) and it has the same behavior. I didn't see any compiler warnings. It looks like there's a bunch of autoconf stuff I'd need to resolve to get getfattr building, so I can't try that now.
When compressing previously uncompressed file, I get message that it is already compressed: