Re: [hatari-devel] My cross-compiling experience

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Nicolas Pomarède schrieb:

> I usually build the windows versions using mingw from a linux PC and
> there's no problem with that, but I never tried building hatari from a
> windows PC (don't have one), so it might be different.

As I'm using Windows Subsystem for Linux, that should be *exactly* like
building on a Linux PC, albeit one with Debian Linux in my case. I
suppose the difference between you and me is in the Linux distribution.
Debian Stable with its focus on software stability will not have
bleeding-edge versions of the mingw-w64 toolchain, for example.

> Regarding the warning at compile time, could you post the log file to
> see if we can do something about it ? Sometimes it's just about a few
> missing include to remove most of them.

The warnings are attached. Looking closer, while it's one entire
terminal screen full of them, they all come from a single line in
fpp_softfloat.c. Seems like the format string there is not what (my)
mingw gcc expects.

Regards
Christian
--
Christian Zietz  -  CHZ-Soft  -  czietz@xxxxxxx
WWW: https://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: unknown conversion type character ‘l’ in format [-Wformat=]
   _stprintf(fsout, _T("%c%01lld.%016llde%c%04d%s%s"), n ? '-' : '+',
                       ^
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: unknown conversion type character ‘l’ in format [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: format ‘%c’ expects argument of type ‘int’, but argument 4 has type ‘long long unsigned int’ [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long long unsigned int’ [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: format ‘%s’ expects argument of type ‘char *’, but argument 6 has type ‘int’ [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: format ‘%s’ expects argument of type ‘char *’, but argument 7 has type ‘int’ [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: too many arguments for format [-Wformat-extra-args]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: unknown conversion type character ‘l’ in format [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: unknown conversion type character ‘l’ in format [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: format ‘%c’ expects argument of type ‘int’, but argument 4 has type ‘long long unsigned int’ [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long long unsigned int’ [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: format ‘%s’ expects argument of type ‘char *’, but argument 6 has type ‘int’ [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: format ‘%s’ expects argument of type ‘char *’, but argument 7 has type ‘int’ [-Wformat=]
/home/czietz/hatari/src/cpu/fpp_softfloat.c:135:23: warning: too many arguments for format [-Wformat-extra-args]


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/