ExtUtils::Depends was at 0.302, the latest I could find on CPAN, and from your suggestion I've tried reinstalling B::Hooks::OP::Check both via cpan> force install ... and downloading the tgz and installing with make install, but in the end I'm still getting the same error.
You certainly sound like you know what your talking about, so I'd be very happy if you had any further suggestions!
I've now uninstalled B::H::OP::C and even ExtUtils::Depends with cpanp and reinstalled them both, but I'm still hitting the same problem.
It does look a lot like rt://45224. I've read through this and also read the related bug in the Devel::Declare queue
rt://40471, but I just don't know enough about C to really grok what either of the modules are supposed to be doing.
I'm going to have leave it for now (and start another project without MooseX::Declare), but will have a look later to see if there's an older version of Devel::Declare without the troublesome dependencies.
I completely removed my lib, sitelib and vendorlib dirs and reinstalled everything from scratch and now Devel::Declare is installed.
Either the cpanp uninstall wasn't working, or there was a different incompatible library involved.
Many many thanks for your help - I'm now looking forward to getting MooseX::Declare and trying it out (not too late to restart the project I started yesterday, but I have a lot of other libraries to reinstall now!)
If there are still people needing this help (I did), here is THE fix:
start up cygwin setup.exe.
search for check. You will (should) find one in Devel. It is:
check: unit test framework for C
Install that and your build problems for this will go away.