[File] '--compile' regression in 5.46,5.48
Mark Geisert
mark at maxrnd.com
Tue Jun 16 17:56:19 EDT 2026
Hi folks,
I'm a Cygwin maintainer. A Cygwin user reported this to us...
BUG: /bin/file generates lots of warnings when compiling the default magic
file:
$ uname -r
3.7.0-0.502.g31bf91f867c5.x86_64
$ file --version
file-5.46
magic file from /usr/share/misc/magic
$ file --compile
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 8433: > 0 byte&,=0,""]
/usr/share/misc/magic, 43334: > 0 byte&,=0,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 29223: > 0 byte&,=0,""]
/usr/share/misc/magic, 8433: > 0 byte&,=0,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 43334: > 0 byte&,=0,""]
/usr/share/misc/magic, 8433: > 0 byte&,=0,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 29642: > 0 ubyte&,=35,""]
/usr/share/misc/magic, 26517: > 0 ubyte&,=35,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 10083: > 0 string,=#!,""]
/usr/share/misc/magic, 37734: > 0 string,=#!,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 12987: > 0 ubeshort&,=1024,""]
/usr/share/misc/magic, 48064: > 0 ubeshort&,=1024,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 20279: > 510 leshort&,=-21931,""]
/usr/share/misc/magic, 29932: > 510 leshort&,=-21931,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 10218: > 0 string,=\037\213,""]
/usr/share/misc/magic, 7582: > 0 string,=\037\213,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 23346: > 0 beshort&,=-32768,""]
/usr/share/misc/magic, 27515: > 0 beshort&,=-32768,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 42101: > 0 leshort&,=4097,""]
/usr/share/misc/magic, 8715: > 0 leshort&,=4097,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 23269: > 0 beshort&,=1,""]
/usr/share/misc/magic, 5788: > 0 beshort&,=1,""]
Warning: Duplicate magic entry `'
/usr/share/misc/magic, 18040: > 0 lelong&,=4,""]
/usr/share/misc/magic, 33544: > 0 lelong&,=4,""]
$
That was file 5.46. I tried building 5.48 and found the same regression.
File 5.44 does not have this issue.
Cygwin 3.7.0 (pre-release test build), gcc/g++ 13.4. Let me know if more
information is needed.
Thanks much,
..mark
More information about the File
mailing list