Open hydra opened 2 years ago
Likely the problem is in the libusb1-sys crate, but this project seems to use 0.5.0
but the latest version is 0.6.2:
https://docs.rs/libusb1-sys/0.6.2/libusb1_sys/index.html https://github.com/a1ien/rusb/tree/master/libusb1-sys
I noticed that some of my cygwin packages were out of date, I upgraded them all and retried with the same result
I also tried building the latest version of libusb1-sys after upgrading my packages but was greeted with a different error, reported here: https://github.com/a1ien/rusb/issues/136
Cygwin packages:
$ cygcheck -c
Cygwin Package Information
Package Version Status
_autorebase 001091-1 OK
alternatives 1.3.30c-10 OK
autoconf 15-1 OK
autoconf2.1 2.13-12 OK
autoconf2.5 2.69-5 OK
autoconf2.7 2.71-2 OK
automake 11-1 OK
automake1.10 1.10.3-3 OK
automake1.11 1.11.6-3 OK
automake1.12 1.12.6-3 OK
automake1.13 1.13.4-2 OK
automake1.14 1.14.1-3 OK
automake1.15 1.15.1-2 OK
automake1.16 1.16.5-1 OK
automake1.9 1.9.6-11 OK
base-cygwin 3.8-1 OK
base-files 4.3-3 OK
bash 4.4.12-3 OK
bash-completion 2.7-1 OK
binutils 2.38-1 OK
bzip2 1.0.8-1 OK
ca-certificates 2021.2.52-1 OK
clang 8.0.1-1 OK
compiler-rt 8.0.1-1 OK
coreutils 8.32-1 OK
crypto-policies 20190218-1 OK
csih 0.9.11-1 OK
curl 7.83.1-1 OK
cygrunsrv 1.62-1 OK
cygutils 1.4.17-1 OK
cygwin 3.3.5-1 OK
cygwin-devel 3.3.5-1 OK
dash 0.5.11.5-1 OK
diffutils 3.8-1 OK
editrights 1.03-1 OK
file 5.41-2 OK
findutils 4.9.0-1 OK
gawk 5.1.1-1 OK
gcc-core 11.3.0-1 OK
gcc-g++ 11.3.0-1 OK
getent 2.18.90-4 OK
git 2.36.1-1 OK
grep 3.7-2 OK
groff 1.22.4-1 OK
gzip 1.12-1 OK
hostname 3.13-1 OK
info 6.8-2 OK
ipc-utils 1.0-2 OK
less 590-1 OK
libargp 20110921-3 OK
libatomic1 11.3.0-1 OK
libattr1 2.4.48-2 OK
libblkid1 2.33.1-2 OK
libbrotlicommon1 1.0.9-2 OK
libbrotlidec1 1.0.9-2 OK
libbz2_1 1.0.8-1 OK
libc++-devel 8.0.1-1 OK
libc++1 8.0.1-1 OK
libc++abi-devel 8.0.1-1 OK
libc++abi1 8.0.1-1 OK
libcbor 0.9.0-3 OK
libcbor-devel 0.9.0-3 OK
libcharset1 1.16-2 OK
libclang8 8.0.1-1 OK
libcom_err2 1.44.5-1 OK
libcrypt2 4.4.20-1 OK
libcurl-devel 7.83.1-1 OK
libcurl4 7.83.1-1 OK
libdb5.3 5.3.28-2 OK
libedit0 20130712-1 OK
libexpat1 2.4.1-1 OK
libfdisk1 2.33.1-2 OK
libffi6 3.2.1-2 OK
libfido2 1.10.0-1 OK
libgc1 8.0.6-1 OK
libgcc1 11.3.0-1 OK
libgcrypt20 1.10.1-1 OK
libgdbm6 1.18.1-1 OK
libgdbm_compat4 1.18.1-1 OK
libgmp10 6.2.1-2 OK
libgomp1 11.3.0-1 OK
libgpg-error0 1.37-1 OK
libgsasl-common 1.8.0-4 OK
libgsasl7 1.8.0-4 OK
libgssapi_krb5_2 1.15.2-2 OK
libguile2.2_1 2.2.7-1 OK
libiconv-devel 1.16-2 OK
libiconv2 1.16-2 OK
libidn11 1.33-1 OK
libidn2_0 2.3.2-1 OK
libintl8 0.21-1 OK
libisl23 0.24-2 OK
libk5crypto3 1.15.2-2 OK
libkrb5_3 1.15.2-2 OK
libkrb5support0 1.15.2-2 OK
libllvm8 8.0.1-1 OK
libltdl7 2.4.7-1 OK
liblz4_1 1.7.5-1 OK
liblzma5 5.2.5-1 OK
libmpc3 1.2.1-2 OK
libmpfr6 4.1.0-2 OK
libncursesw10 6.1-1.20190727 OK
libnghttp2_14 1.47.0-1 OK
libntlm0 1.4-1 OK
libopenldap2 2.6.2-1 OK
libopenldap2_4_2 2.6.2-1 OK
libopenldap2_5_0 2.6.2-1 OK
libp11-kit0 0.23.20-1 OK
libpcre1 8.45-1 OK
libpcre2_8_0 10.40-1 OK
libpipeline1 1.5.3-1 OK
libpkgconf3 1.8.0-1 OK
libpolly8 8.0.1-1 OK
libpopt-common 1.18-1 OK
libpopt0 1.18-1 OK
libpsl5 0.21.1-1 OK
libquadmath0 11.3.0-1 OK
libreadline7 8.1-2 OK
libsasl2_3 2.1.27-1 OK
libsigsegv2 2.10-2 OK
libsmartcols1 2.33.1-2 OK
libsodium-common 1.0.18-1 OK
libsodium23 1.0.18-1 OK
libsqlite3_0 3.34.0-1 OK
libssh2_1 1.10.0-1 OK
libssl-devel 1.1.1o-1 OK
libssl1.1 1.1.1o-1 OK
libstdc++6 11.3.0-1 OK
libtasn1_6 4.14-1 OK
libunistring2 0.9.10-1 OK
libunwind-devel 8.0.1-1 OK
libunwind1 8.0.1-1 OK
libusb1.0 1.0.21-1 OK
libusb1.0-devel 1.0.21-1 OK
libuuid-devel 2.33.1-2 OK
libuuid1 2.33.1-2 OK
libxml2 2.9.12-2 OK
libxxhash0 0.8.0-1 OK
libzstd1 1.5.2-1 OK
login 1.13-1 OK
m4 1.4.19-1 OK
make 4.3-1 OK
man-db 2.10.2-1 OK
mintty 3.6.1-1 OK
ncurses 6.1-1.20190727 OK
openssh 9.0p1-1 OK
openssl 1.1.1o-1 OK
p11-kit 0.23.20-1 OK
p11-kit-trust 0.23.20-1 OK
perl 5.32.1-2 OK
perl-Class-Inspector 1.36-3 OK
perl-Encode-Locale 1.05-4 OK
perl-Error 0.17029-2 OK
perl-File-Listing 6.15-1 OK
perl-File-ShareDir 1.118-2 OK
perl-HTML-Parser 3.78-1 OK
perl-HTML-Tagset 3.20-8 OK
perl-HTTP-Cookies 6.10-2 OK
perl-HTTP-Date 6.05-2 OK
perl-HTTP-Message 6.36-1 OK
perl-HTTP-Negotiate 6.01-8 OK
perl-IO-HTML 1.004-2 OK
perl-libwww-perl 6.66-1 OK
perl-LWP-MediaTypes 6.04-3 OK
perl-Net-HTTP 6.22-1 OK
perl-Scalar-List-Utils 1.62-1 OK
perl-TermReadKey 2.38-3 OK
perl-Test-Harness 3.44-1 OK
perl-TimeDate 2.33-2 OK
perl-Try-Tiny 0.31-1 OK
perl-Unicode-Normalize 1.26-3 OK
perl-URI 5.10-1 OK
perl-WWW-RobotRules 6.02-8 OK
perl_autorebase 5.32.1-2 OK
perl_base 5.32.1-2 OK
pkg-config 1.8.0-1 OK
pkgconf 1.8.0-1 OK
publicsuffix-list-dafsa 20220430-1 OK
python2 2.7.18-4 OK
python27 2.7.18-4 OK
python27-pip 20.3.3-2 OK
python27-setuptools 41.2.0-1 OK
rebase 4.5.0-1 OK
rsync 3.2.3+20200903+git9f9240b-4 OK
run 1.3.4-2 OK
sed 4.8-1 OK
tar 1.34-1 OK
terminfo 6.1-1.20190727 OK
terminfo-extra 6.1-1.20190727 OK
texinfo 6.8-2 OK
tree 1.7.0-1 OK
tzcode 2022a-1 OK
tzdata 2022a-1 OK
unzip 6.0-17 OK
util-linux 2.33.1-2 OK
vim 8.2.4372-1 OK
vim-common 8.2.4372-1 OK
vim-doc 8.2.4372-1 OK
vim-minimal 8.2.4372-1 OK
w32api-headers 10.0.0-1 OK
w32api-runtime 10.0.0-1 OK
which 2.20-2 OK
windows-default-manifest 6.4-1 OK
xxd 8.2.4372-1 OK
xz 5.2.5-1 OK
zip 3.0-12 OK
zlib0 1.2.12-1 OK
zstd 1.5.2-1 OK
Thanks for the report. Sadly, this is a problem in a dependency that we can't address. libusb1-sys is an indirect dependency and we have no means to bump its version; and as you have mentioned the git version of libusb1-sys does not compile on Cygwin either :-(
Perhaps anyone reading this could add a +1 command or vote to the issue I raised (https://github.com/a1ien/rusb/issues/136) so that a little extra pressure is applied to the maintainers of the dependency?
Describe the bug
cargo install probe-run
fails with the following error on Cygwin.To Reproduce Install Latest Cygwin x84_64 and the packages as below, then run the cargo command as above.
Expected and observed behavior Build success, as
libusb1.0
, andlibusb1.0-devel
are installed. Other tools, such asdfu-util
build and run just fine, for example:Operating System: Windows 10 x64 + Cygwin x86_64.
Additional context GCC: