c-ares 1.17.1. Here is the output: https://github.com/abcfy2/aria2-static-build/runs/1440011736?check_suite_focus=true
But 1.16.1 is working.
Here is my environments:
$ export CROSS_HOST=x86_64-w64-mingw32
$ ./configure --host="${CROSS_HOST}" --enable-static --disable-shared --enable-silent-rules --disable-tests
$ make -j$(nproc)
...SNIP...
Making all in tools
make[2]: Entering directory '/usr/src/c-ares/src/tools'
CC ahost-ahost.o
CC ahost-ares_getopt.o
CC adig-adig.o
CC adig-ares_getopt.o
CC ../lib/adig-ares_nowarn.o
CC ../lib/adig-ares_strcasecmp.o
CC acountry-acountry.o
CC acountry-ares_getopt.o
CC ../lib/acountry-ares_nowarn.o
CC ../lib/acountry-ares_strcasecmp.o
CC ../lib/ahost-ares_nowarn.o
CC ../lib/ahost-ares_strcasecmp.o
CCLD adig.exe
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0xe6): undefined reference to `__imp_ares_expand_name'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0x21f): undefined reference to `__imp_ares_free_string'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0x265): undefined reference to `__imp_ares_free_string'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0x2a7): undefined reference to `__imp_ares_expand_string'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0x36e): undefined reference to `__imp_ares_expand_string'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0x41f): undefined reference to `__imp_ares_inet_ntop'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0x629): undefined reference to `__imp_ares_expand_string'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0x6bd): undefined reference to `__imp_ares_inet_ntop'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0x768): undefined reference to `__imp_ares_expand_string'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0xa50): undefined reference to `__imp_ares_expand_name'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0xb38): undefined reference to `__imp_ares_free_string'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0xba5): undefined reference to `__imp_ares_free_string'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text+0xbb5): undefined reference to `__imp_ares_strerror'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x37): undefined reference to `__imp_ares_library_init'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x249): undefined reference to `__imp_ares_inet_pton'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x32c): undefined reference to `__imp_ares_init_options'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x351): undefined reference to `__imp_ares_set_servers'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x409): undefined reference to `__imp_ares_query'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x433): undefined reference to `__imp_ares_inet_pton'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x456): undefined reference to `__imp_ares_inet_pton'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x47e): undefined reference to `__imp_ares_fds'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x485): undefined reference to `__imp_ares_timeout'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x4b5): undefined reference to `__imp_ares_process'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x530): undefined reference to `__imp_ares_destroy'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x536): undefined reference to `__imp_ares_library_cleanup'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x5c3): undefined reference to `__imp_ares_strerror'
/cross_root/bin/../lib/gcc/x86_64-w64-mingw32/9.3.1/../../../../x86_64-w64-mingw32/bin/ld: adig-adig.o:adig.c:(.text.startup+0x624): undefined reference to `__imp_ares_strerror'
c-ares 1.17.1. Here is the output: https://github.com/abcfy2/aria2-static-build/runs/1440011736?check_suite_focus=true
But 1.16.1 is working.
Here is my environments: