When trying to build ReactOS on ReactOS, we have dlltool crashing while attempting to generate libusbd.a.
It works for any other library.
It crashes in the nfunc() function, while attempting to dereference second argument (b), after being called by qsort() function. The qsort() caller is mangle_defs().
Its called that way: C:\Program Files\RosBE\i386\i686-w64-mingw32\bin\dlltool.exe --def drivers/usb/usbd/libusbd_implib.def --kill-at --output-lib=drivers\usb\usbd\libusbd.a