^ ../../../src/gaiaaux/gg_utf8.c: In function 'url_fromUtf8': ../../../src/gaiaaux/gg_utf8.c:266:21: error: passing argument 2 of 'iconv' from incompatible pointer type [-Wincompatible-pointer-types] 266 | if (iconv (cvt, &pBuf, &len, &pUtf8buf, &utf8len) == (size_t) (-1)) | ^~~~~ | | | char ** /usr/i686-w64-mingw32/sys-root/mingw/include/iconv.h:17:48: note: expected 'const char **' but argument is of type 'char **' 17 | size_t iconv(iconv_t cd, WINICONV_CONST char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); | ^ make[3]: *** [Makefile:431: gaiaaux_la-gg_utf8.lo] Error 1 make[3]: Entering directory '/builddir/build/BUILD/libspatialite-5.1.0/build_win32/src/gaiaaux' /bin/sh ../../libtool --tag=CC --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../../src/gaiaaux -I../../. -I../.././src/headers/spatialite -I../../../src/headers -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -MT gg_sqlaux.lo -MD -MP -MF .deps/gg_sqlaux.Tpo -c -o gg_sqlaux.lo ../../../src/gaiaaux/gg_sqlaux.c libtool: compile: i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../../src/gaiaaux -I../../. -I../.././src/headers/spatialite -I../../../src/headers -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -MT gg_sqlaux.lo -MD -MP -MF .deps/gg_sqlaux.Tpo -c ../../../src/gaiaaux/gg_sqlaux.c -DDLL_EXPORT -DPIC -o .libs/gg_sqlaux.o mv -f .deps/gg_sqlaux.Tpo .deps/gg_sqlaux.Plo make[3]: Leaving directory '/builddir/build/BUILD/libspatialite-5.1.0/build_win32/src/gaiaaux' make[3]: Entering directory '/builddir/build/BUILD/libspatialite-5.1.0/build_win32/src/gaiaaux' /bin/sh ../../libtool --tag=CC --tag=disable-static --mode=compile i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../../src/gaiaaux -I../../. -I../.././src/headers/spatialite -I../../../src/headers -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -DLOADABLE_EXTENSION -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -MT gaiaaux_la-gg_sqlaux.lo -MD -MP -MF .deps/gaiaaux_la-gg_sqlaux.Tpo -c -o gaiaaux_la-gg_sqlaux.lo `test -f 'gg_sqlaux.c' || echo '../../../src/gaiaaux/'`gg_sqlaux.c libtool: compile: i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../../src/gaiaaux -I../../. -I../.././src/headers/spatialite -I../../../src/headers -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -DLOADABLE_EXTENSION -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -MT gaiaaux_la-gg_sqlaux.lo -MD -MP -MF .deps/gaiaaux_la-gg_sqlaux.Tpo -c ../../../src/gaiaaux/gg_sqlaux.c -DDLL_EXPORT -DPIC -o .libs/gaiaaux_la-gg_sqlaux.o mv -f .deps/gaiaaux_la-gg_sqlaux.Tpo .deps/gaiaaux_la-gg_sqlaux.Plo make[3]: Leaving directory '/builddir/build/BUILD/libspatialite-5.1.0/build_win32/src/gaiaaux' make[2]: *** [Makefile:631: all-recursive] Error 1 make[1]: *** [Makefile:525: all-recursive] Error 1 make: *** [Makefile:400: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.awvu7G (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.awvu7G (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libspatialite.spec