GNOME Bugzilla – Bug 696970
Compiling 2.36.0 for win64 fails
Last modified: 2013-08-17 17:46:51 UTC
(Cross) compiling glib 2.36.0 for mingw-w64 fails with: [ 302s] CC gdatetime.o [ 302s] gdatetime.c: In function 'test_GDateTime_printf': [ 302s] gdatetime.c:847:3: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' [-Werror=format=] [ 302s] g_sprintf (t_str, "%ld", t); [ 302s] ^ [ 302s] cc1: some warnings being treated as errors [ 302s] make[4]: *** [gdatetime.o] Error 1 [ 302s] make[4]: Leaving directory `/usr/src/packages/BUILD/glib-2.36.0/glib/tests' [ 302s] make[3]: *** [all-recursive] Error 1 [ 302s] make[3]: Leaving directory `/usr/src/packages/BUILD/glib-2.36.0/glib' [ 302s] make[2]: *** [all] Error 2 [ 302s] make[2]: Leaving directory `/usr/src/packages/BUILD/glib-2.36.0/glib' [ 302s] make[1]: *** [all-recursive] Error 1 [ 302s] make[1]: Leaving directory `/usr/src/packages/BUILD/glib-2.36.0' [ 302s] make: *** [all] Error 2
Created attachment 240208 [details] [review] 0001-Fix-compiling-for-win64.patch The line causing the error does not seem to do anything anymore, so it seems reasonable to just remove it.