While testing my program, I noticed some malformed stderr messages:
C:\0\a8\recoil\git>make cmp-examples
gcc -O2 -Wall recoil2png.c pngsave.c recoil-stdio.c recoil.c -lpng -lz -o recoil2png
rm -f ../png/*.png
ls ../examples | xargs -P 5 -i sh -c "./recoil2png -o '../png/{}.png' '../examples/{}' && cmp '../ref/{}.png' '../png/{}.png'"
recoil2png: ../examples/96DRAWS5.PL5: file decoding error
recoil2png: ../examples/BF.EVE: file decoding error
recoil2png: ../examples/BF.ODD: file decoding error
cmp: ../ref/BSTAR.BBM.png: No such file or directory
recoil2png: ../examples/BUTTERFL.S16: file decoding error
../ref/BUFFALO.PGC.png ../png/BUFFALO.PGC.png differ: char 42, line 3
recoil2png: ../examples/DANCEOFF.PAL: file decoding error
recoil2png: ../examples/DI.EVE: file decoding error
recoil2png: ../examples/DI.ODD: file decoding error
recoil2png: ../examples/DOGHOUSE.PL6: file decoding error
recoil2png: ../examples/DOOR.PAL: file decoding error
recoil2png: ../examples/FANGIRL3.S17: file decoding error
recoil2png: ../examples/FANTASY.PAL: file decoding error
recoil2png: ../examples/FLAG.PAL: file decoding error
recoil2png: ../examples/FLOWER.S18: file decoding error
recoil2png: ../examples/GARF-2.PL5: file decoding error
recoil2png: ../examples/HAYWAIN.COL: file decoding error
recoil2png: ../examples/HORSES.PL7: file decoding error
recoil2png: ../examples/ILL6-1.PL7: file decoding error
recoil2png: ../examples/JARDIN3.PAL: file decoding error
recoil2png: ../examples/KITATEHA.S1C: file decoding error
recoil2png: ../examples/MONSHIRO.S1C: file decoding error
recoil2png: ../examples/MOON.PAL: file decoding error
recoil2png: ../examples/PIRATE.S1A: file decoding error
recoil2png: ../examples/RAYTRACE.PAL: file decoding error
recoilr2epcnogi:l 2.p.n/ge:x a.m.p/leexsa/mSpFlIeIs./OSDFDI:I .fEiVlEe: dfeicloed idnegc oedrirnogr
error
recoil2png: ../examples/SNAT-2.PL5: file decoding error
../ref/SQUIRREL.PGF.png ../png/SQUIRREL.PGF.png differ: char 42, line 3
recoil2png: ../examples/SWEET1.PL7: file decoding error
recoil2png: ../examples/TWINPOP.S15: file decoding error
recoil2png: ../examples/UGUISU.S1C: file decoding error
recoil2png: ../examples/discs.rst: file decoding error
recoil2png: ../examples/f_348.hbl: file decoding error
rreeccooiill22ppnngg:: ....//eexxaammpplleess//ffeerrrraarrii..ppll65:: ffiillee ddeeccooddiinngg eerrrorro
r
recoil2png: ../examples/ferrari.pl7: file decoding error
recoil2png: ../examples/ferrari.pla: file decoding error
recoil2png: ../examples/flower.pic1: file decoding error
recoil2png: ../examples/foo.hbl: file decoding error
recoil2png: ../examples/goku.gfx: file decoding error
recoil2png: ../examples/patlabor.pal: file decoding error
recoil2png: ../examples/sunset.hbl: file decoding error
recoil2png: ../examples/test.col: file decoding error
recoil2png: ../examples/test.pal: file decoding error
recoil2png: ../examples/victorcharli.col: file decoding error
make: *** [Makefile:145: cmp-examples] Error 123
I had 3/3 reproductions, with different lines malformed.
The messages are from a simple:
fprintf(stderr, "recoil2png: %s: file decoding error\n", input_file);
See https://sourceforge.net/p/recoil/code/ci/master/tree/recoil2png.c for full code.
Perhaps an MSYS2 xargs/sh issue.
C:\0\a8\recoil\git>which gcc
/mingw64/bin/gcc
C:\0\a8\recoil\git>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/16.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-16.2.0/configure --prefix=/mingw64 --with-sysroot=/mingw64 --with-build-sysroot=D:/M/msys64/mingw64 --with-local-prefix=/local --with-native-system-header-dir=/include --libexecdir=/mingw64/lib --enable-bootstrap --enable-checking=release --with-arch=nocona --with-tune=generic --enable-mingw-wildcard --enable-languages=c,c++,ada,fortran,lto,objc,obj-c++,jit --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-tls --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-backtrace=yes --enable-libstdcxx-filesystem-ts --enable-libstdcxx-time --disable-libstdcxx-pch --enable-libgomp --disable-libssp --disable-multilib --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev3, Built by MSYS2 project' --with-bugurl=https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld --with-libstdcxx-zoneinfo=yes --disable-libstdcxx-debug --enable-lto --enable-plugin --with-boot-ldflags=-static-libstdc++ --with-stage1-ldflags=-static-libstdc++
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.2.0 (Rev3, Built by MSYS2 project)
C:\0\a8\recoil\git>which xargs
/usr/bin/xargs
C:\0\a8\recoil\git>xargs --version
xargs (GNU findutils) 4.10.0
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
C:\0\a8\recoil\git>which sh
/usr/bin/sh
C:\0\a8\recoil\git>sh --version
GNU bash, version 5.3.15(1)-release (x86_64-pc-cygwin)
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
I apologize for this PEBKAC! It's
xargs -P 5. Please close. :)