<p>I'm using MSYS2 as recommended by: <a href="https://wiki.geany.org/howtos/win32/msys2" rel="nofollow">https://wiki.geany.org/howtos/win32/msys2</a>.<br>
Building git master.</p>
<pre><code>$ gcc --version
gcc (GCC) 7.4.0
</code></pre>
<p><code>make V=1</code> gives:</p>
<pre><code>depbase=`echo tm_source_file.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../libtool --silent  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I../../ctags/main -DGEANY_PRIVATE -DG_LOG_DOMAIN=\"Tagmanager\"  -mms-bitfields -pthread -mms-bitfields -I/mingw32/include/gtk-2.0 -I/mingw32/lib/gtk-2.0/include -I/mingw32/include/pango-1.0 -I/mingw32/include/fribidi -I/mingw32/include -I/mingw32/include/cairo -I/mingw32/include/atk-1.0 -I/mingw32/include/cairo -I/mingw32/include/pixman-1 -I/mingw32/include -I/mingw32/include/freetype2 -I/mingw32/include -I/mingw32/include/harfbuzz -I/mingw32/include -I/mingw32/include/libpng16 -I/mingw32/include/gdk-pixbuf-2.0 -I/mingw32/include/libpng16 -I/mingw32/include -I/mingw32/lib/libffi-3.2.1/include -I/mingw32/include -I/mingw32/include/glib-2.0 -I/mingw32/lib/glib-2.0/include -I/mingw32/include -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32 -fvisibility=hidden -DGEANY_EXPORT_SYMBOL="__attribute__((visibility(\"default\")))" -DGEANY_API_SYMBOL=GEANY_EXPORT_SYMBOL -g -DGEANY_DEBUG -g -O0 -MT tm_source_file.lo -MD -MP -MF $depbase.Tpo -c -o tm_source_file.lo tm_source_file.c &&\
mv -f $depbase.Tpo $depbase.Plo
tm_source_file.c:91:14: error: static declaration of ‘realpath’ follows non-static declaration
 static char *realpath (const char *pathname, char *resolved_path)
              ^~~~~~~~
In file included from tm_source_file.c:20:0:
/usr/include/stdlib.h:151:8: note: previous declaration of ‘realpath’ was here
 char * realpath (const char *__restrict path, char *__restrict resolved_path);
        ^~~~~~~~
make[3]: *** [Makefile:505: tm_source_file.lo] Error 1
make[3]: Leaving directory '/c/git/geany/src/tagmanager'
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2261?email_source=notifications&email_token=AAIOWJ3NRL5VULIBHEQDUQLQE3SYDA5CNFSM4IMLQLLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFWOLUA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY5ABTVEYY7NUIDH3LQE3SYDANCNFSM4IMLQLLA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3DFO3SZHYZQJP64M3QE3SYDA5CNFSM4IMLQLLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFWOLUA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2261?email_source=notifications\u0026email_token=AAIOWJ3NRL5VULIBHEQDUQLQE3SYDA5CNFSM4IMLQLLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFWOLUA",
"url": "https://github.com/geany/geany/issues/2261?email_source=notifications\u0026email_token=AAIOWJ3NRL5VULIBHEQDUQLQE3SYDA5CNFSM4IMLQLLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFWOLUA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>