Build stuck on H5make_libsettings.exe stage

Trying to build on a cygwin host for a windows target using mingw compiler

$ ./configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32  --prefix=$HOME
$ make 
  CC       H5HFtest.lo
  CC       H5HFtiny.lo
  CC       H5HG.lo
  CC       H5HGcache.lo
  CC       H5HGdbg.lo
  CC       H5HGquery.lo
  CC       H5HL.lo
  CC       H5HLcache.lo
  CC       H5HLdbg.lo
  CC       H5HLint.lo
  CC       H5HLprfx.lo
  CC       H5HLdblk.lo
  CC       H5HP.lo
  CC       H5I.lo
H5I.c: In function ‘H5I__id_dump_cb’:
H5I.c:2125:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     HDfprintf(stderr, "   obj   = 0x%08lx\n", (unsigned long)(item->obj_ptr));
  CC       H5Itest.lo
  CC       H5L.lo
  CC       H5Lexternal.lo
  CC       H5make_libsettings.o
  CCLD     H5make_libsettings.exe

why is the build stuck on CCLD H5make_libsettings.exe stage?