knurling-rs / probe-run

Run embedded programs just like native ones
Apache License 2.0
645 stars 75 forks source link

Fails to build on Cygwin. #325

Open hydra opened 2 years ago

hydra commented 2 years ago

Describe the bug cargo install probe-run fails with the following error on Cygwin.

The following warnings were emitted during compilation:

warning: In file included from libusb\libusb/libusbi.h:92,
warning:                  from libusb\libusb/os/events_windows.c:23:
warning: libusb\libusb/os/threads_windows.h:63:8: error: redefinition of ‘struct timespec’
warning:    63 | struct timespec {
warning:       |        ^~~~~~~~
warning: In file included from /usr/include/sys/timespec.h:38,
warning:                  from /usr/include/sys/select.h:16,
warning:                  from /usr/include/sys/types.h:50,
warning:                  from libusb\libusb/libusb.h:40,
warning:                  from libusb\libusb/libusbi.h:38,
warning:                  from libusb\libusb/os/events_windows.c:23:
warning: /usr/include/sys/_timespec.h:47:8: note: originally defined here
warning:    47 | struct timespec {
warning:       |        ^~~~~~~~

error: failed to run custom build command for `libusb1-sys v0.5.0`

Caused by:
  process didn't exit successfully: `C:\cygwin64\tmp\cargo-install8xwhXG\release\build\libusb1-sys-2124665117aa9f86\build-script-build` (exit code: 1)
  --- stdout
  cargo:vendored=1
  cargo:static=1
  cargo:include=C:\cygwin64\tmp\cargo-install8xwhXG\release\build\libusb1-sys-d9eb4c839273dc98\out\include
  cargo:rustc-link-lib=dylib=user32
  TARGET = Some("x86_64-pc-windows-gnu")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-pc-windows-gnu")
  CC_x86_64-pc-windows-gnu = None
  CC_x86_64_pc_windows_gnu = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-pc-windows-gnu = None
  CFLAGS_x86_64_pc_windows_gnu = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,llvm14-builtins-abi,sse,sse2")
  running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "C:\\cygwin64\\tmp\\cargo-install8xwhXG\\release\\build\\libusb1-sys-d9eb4c839273dc98\\out\\include" "-I" "libusb\\libusb" "-DPRINTF_FORMAT(a, b)=" "-DENABLE_LOGGING=1" "-DOS_WINDOWS=1" "-DDEFAULT_VISIBILITY=" "-DPLATFORM_WINDOWS=1" "-o" "C:\\cygwin64\\tmp\\cargo-install8xwhXG\\release\\build\\libusb1-sys-d9eb4c839273dc98\\out\\libusb\\libusb/os/events_windows.o" "-c" "libusb\\libusb/os/events_windows.c"
  cargo:warning=In file included from libusb\libusb/libusbi.h:92,
  cargo:warning=                 from libusb\libusb/os/events_windows.c:23:
  cargo:warning=libusb\libusb/os/threads_windows.h:63:8: error: redefinition of ‘struct timespec’
  cargo:warning=   63 | struct timespec {
  cargo:warning=      |        ^~~~~~~~
  cargo:warning=In file included from /usr/include/sys/timespec.h:38,
  cargo:warning=                 from /usr/include/sys/select.h:16,
  cargo:warning=                 from /usr/include/sys/types.h:50,
  cargo:warning=                 from libusb\libusb/libusb.h:40,
  cargo:warning=                 from libusb\libusb/libusbi.h:38,
  cargo:warning=                 from libusb\libusb/os/events_windows.c:23:
  cargo:warning=/usr/include/sys/_timespec.h:47:8: note: originally defined here
  cargo:warning=   47 | struct timespec {
  cargo:warning=      |        ^~~~~~~~
  exit code: 1

  --- stderr

  error occurred: Command "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "C:\\cygwin64\\tmp\\cargo-install8xwhXG\\release\\build\\libusb1-sys-d9eb4c839273dc98\\out\\include" "-I" "libusb\\libusb" "-DPRINTF_FORMAT(a, b)=" "-DENABLE_LOGGING=1" "-DOS_WINDOWS=1" "-DDEFAULT_VISIBILITY=" "-DPLATFORM_WINDOWS=1" "-o" "C:\\cygwin64\\tmp\\cargo-install8xwhXG\\release\\build\\libusb1-sys-d9eb4c839273dc98\\out\\libusb\\libusb/os/events_windows.o" "-c" "libusb\\libusb/os/events_windows.c" with args "gcc.exe" did not execute successfully (status code exit code: 1).

warning: build failed, waiting for other jobs to finish...
error: failed to compile `probe-run v0.3.3`, intermediate artifacts can be found at `C:\cygwin64\tmp\cargo-install8xwhXG`

To Reproduce Install Latest Cygwin x84_64 and the packages as below, then run the cargo command as above.

$ cygcheck -c
Cygwin Package Information
Package                  Version                         Status
_autorebase              001007-1                        OK
alternatives             1.3.30c-10                      OK
autoconf                 13-1                            OK
autoconf2.1              2.13-12                         OK
autoconf2.5              2.69-4                          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.1-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.37-1                          OK
bzip2                    1.0.8-1                         OK
ca-certificates          2.40-1                          OK
clang                    8.0.1-1                         OK
compiler-rt              8.0.1-1                         OK
coreutils                8.26-2                          OK
crypto-policies          20190218-1                      OK
csih                     0.9.11-1                        OK
curl                     7.79.1-1                        OK
cygrunsrv                1.62-1                          OK
cygutils                 1.4.16-7                        OK
cygwin                   3.2.0-1                         OK
cygwin-devel             3.2.0-1                         OK
dash                     0.5.11.5-1                      OK
diffutils                3.8-1                           OK
editrights               1.03-1                          OK
file                     5.39-1                          OK
findutils                4.8.0-1                         OK
gawk                     5.1.0-1                         OK
gcc-core                 11.2.0-1                        OK
gcc-g++                  11.2.0-1                        OK
getent                   2.18.90-4                       OK
git                      2.33.0-1                        OK
grep                     3.7-2                           OK
groff                    1.22.4-1                        OK
gzip                     1.11-1                          OK
hostname                 3.13-1                          OK
info                     6.8-2                           OK
ipc-utils                1.0-2                           OK
less                     581.2-1                         OK
libargp                  20110921-3                      OK
libatomic1               11.2.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.5.0-1                         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.79.1-1                        OK
libcurl4                 7.79.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.5.0-2                         OK
libgc1                   8.0.4-1                         OK
libgcc1                  11.2.0-1                        OK
libgcrypt20              1.8.2-1                         OK
libgdbm6                 1.18.1-1                        OK
libgdbm_compat4          1.18.1-1                        OK
libgmp10                 6.2.1-2                         OK
libgomp1                 11.2.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.6-7                         OK
liblz4_1                 1.7.5-1                         OK
liblzma5                 5.2.4-1                         OK
libmpc3                  1.2.1-2                         OK
libmpfr6                 4.1.0-2                         OK
libncursesw10            6.1-1.20190727                  OK
libnghttp2_14            1.45.1-1                        OK
libntlm0                 1.4-1                           OK
libopenldap2_4_2         2.4.59-1                        OK
libopenldap2_5_0         2.5.7-1                         OK
libp11-kit0              0.23.20-1                       OK
libpcre1                 8.45-1                          OK
libpcre2_8_0             10.37-1                         OK
libpipeline1             1.5.3-1                         OK
libpkgconf3              1.6.3-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.2.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
libsqlite3_0             3.34.0-1                        OK
libssh2_1                1.10.0-1                        OK
libssl-devel             1.1.1f-1                        OK
libssl1.1                1.1.1f-1                        OK
libstdc++6               11.2.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.10-2                        OK
libxxhash0               0.8.0-1                         OK
libzstd1                 1.5.0-1                         OK
login                    1.13-1                          OK
m4                       1.4.19-1                        OK
make                     4.3-1                           OK
man-db                   2.9.4-1                         OK
mintty                   3.5.1-1                         OK
ncurses                  6.1-1.20190727                  OK
openssh                  8.7p1-1                         OK
openssl                  1.1.1f-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.14-2                          OK
perl-File-ShareDir       1.118-2                         OK
perl-HTML-Parser         3.76-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.33-1                          OK
perl-HTTP-Negotiate      6.01-8                          OK
perl-IO-HTML             1.004-2                         OK
perl-libwww-perl         6.57-1                          OK
perl-LWP-MediaTypes      6.04-3                          OK
perl-Net-HTTP            6.21-1                          OK
perl-Scalar-List-Utils   1.59-1                          OK
perl-TermReadKey         2.38-3                          OK
perl-Test-Harness        3.42-3                          OK
perl-TimeDate            2.33-2                          OK
perl-Try-Tiny            0.30-3                          OK
perl-Unicode-Normalize   1.26-3                          OK
perl-URI                 5.09-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.6.3-1                         OK
pkgconf                  1.6.3-1                         OK
publicsuffix-list-dafsa  20210519-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                   2021b-1                         OK
tzdata                   2021b-1                         OK
unzip                    6.0-17                          OK
util-linux               2.33.1-2                        OK
vim                      8.2.0486-1                      OK
vim-common               8.2.0486-1                      OK
vim-doc                  8.2.0486-1                      OK
vim-minimal              8.2.0486-1                      OK
w32api-headers           9.0.0-1                         OK
w32api-runtime           9.0.0-1                         OK
which                    2.20-2                          OK
windows-default-manifest 6.4-1                           OK
xxd                      8.2.0486-1                      OK
xz                       5.2.4-1                         OK
zip                      3.0-12                          OK
zlib0                    1.2.11-1                        OK
zstd                     1.5.0-1                         OK
$ uname
CYGWIN_NT-10.0

Expected and observed behavior Build success, as libusb1.0, and libusb1.0-devel are installed. Other tools, such as dfu-util build and run just fine, for example:

$ make
make  all-recursive
make[1]: Entering directory '/cygdrive/d/Users/Hydra/Documents/dev/projects/dfu-util/dfu-util'
Making all in src
make[2]: Entering directory '/cygdrive/d/Users/Hydra/Documents/dev/projects/dfu-util/dfu-util/src'
  CC       main.o
  CC       dfu_load.o
  CC       dfu_util.o
  CC       dfuse.o
  CC       dfuse_mem.o
  CC       dfu.o
  CC       dfu_file.o
  CC       quirks.o
  CCLD     dfu-util.exe
  CC       suffix.o
  CCLD     dfu-suffix.exe
  CC       prefix.o
  CCLD     dfu-prefix.exe
make[2]: Leaving directory '/cygdrive/d/Users/Hydra/Documents/dev/projects/dfu-util/dfu-util/src'

$ stat ./src/dfu-util.exe
  File: ./src/dfu-util.exe
  Size: 342380          Blocks: 336        IO Block: 65536  regular file
Device: 641fca8h/104987816d     Inode: 1125899907433715  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (197610/   Hydra)   Gid: (197121/    None)
Access: 2022-06-06 12:08:49.182712700 +0200
Modify: 2022-06-06 12:08:49.165709300 +0200
Change: 2022-06-06 12:08:49.166209600 +0200
 Birth: 2022-06-06 12:08:49.055190000 +0200

$ ./src/dfu-util.exe -l
dfu-util 0.10-dev

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Cannot open DFU device 1d50:6017 found on devnum 14 (LIBUSB_ERROR_NOT_SUPPORTED)
Found DFU: [0483:df11] ver=0200, devnum=14, cfg=1, intf=0, path="3-2.1.3", alt=0, name="@External Flash /0x90000000/998*128Kg,1*128Kg,4*128Kg,21*128Ka", serial="25001F000F51393035343038"

Operating System: Windows 10 x64 + Cygwin x86_64.

Additional context GCC:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/11/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-11.2.0/configure --srcdir=/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-11.2.0 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib --with-gcc-major-version-only --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit --with-dwarf2 --with-tune=generic --disable-bootstrap --enable-languages=c,c++,fortran,lto,objc,obj-c++,jit --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --enable-libquadmath --enable-libquadmath-support --disable-libssp --enable-libada --disable-symvers --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --enable-linker-build-id --with-default-libstdcxx-abi=gcc4-compatible --enable-libstdcxx-filesystem-ts
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (GCC)
hydra commented 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

hydra commented 2 years ago

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
japaric commented 2 years ago

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 :-(

hydra commented 2 years ago

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?