gzip doesn't do much of anything special when cross-compiling; it's like
other GNU or Autoconf-using programs. If your cross-compiler doesn't
output to stderr on error, or outputs to stderr even when there isn't an
error, that can confuse the process (with gzip and with other programs).
So you might want to look into that. Otherwise, try putting 'set -x'
into the relevant parts of the 'configure' shell script and look at the
debugging output.
- bug#49850: Crosscompiling gzip for musl-based system with cla... Caleb Heydon
- bug#49850: Crosscompiling gzip for musl-based system wit... Paul Eggert