Last active
December 19, 2018 09:24
-
-
Save TriplEight/f25f8e04cb456505930f5589a513e720 to your computer and use it in GitHub Desktop.
compilation failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: failed to run custom build command for `libusb-sys v0.2.4 (https://github.com/paritytech/libusb-sys#14bdb698)` | |
process didn't exit successfully: `/build/parity-ethereum/target/release/build/libusb-sys-0791beef101dd27b/build-script-build` (exit code: 101) | |
--- stdout | |
TARGET = Some("x86_64-pc-windows-gnu") | |
OPT_LEVEL = Some("3") | |
HOST = Some("x86_64-unknown-linux-gnu") | |
CC_x86_64-pc-windows-gnu = None | |
CC_x86_64_pc_windows_gnu = Some("x86_64-w64-mingw32-gcc-posix") | |
CFLAGS_x86_64-pc-windows-gnu = None | |
CFLAGS_x86_64_pc_windows_gnu = None | |
TARGET_CFLAGS = None | |
CFLAGS = None | |
DEBUG = Some("false") | |
running: "x86_64-w64-mingw32-gcc-posix" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "." "-I" "libusb/libusb" "-Wall" "-Wextra" "-DOS_LINUX=1" "-DHAVE_ASM_TYPES_H=1" "-DHAVE_LINUX_NETLINK_H=1" "-DHAVE_SYS_SOCKET_H=1" "-DUSBI_TIMERFD_AVAILABLE=1" "-DPOLL_NFDS_TYPE=nfds_t" "-D_GNU_SOURCE=1" "-DHAVE_DLFCN_H=1" "-DHAVE_GETTIMEOFDAY=1" "-DHAVE_INTTYPES_H=1" "-DHAVE_MEMORY_H=1" "-DHAVE_POLL_H=1" "-DHAVE_STDINT_H=1" "-DHAVE_STDLIB_H=1" "-DHAVE_STRINGS_H=1" "-DHAVE_STRING_H=1" "-DHAVE_STRUCT_TIMESPEC=1" "-DHAVE_SYS_STAT_H=1" "-DHAVE_SYS_TIME_H=1" "-DHAVE_SYS_TYPES_H=1" "-DHAVE_UNISTD_H=1" "-DPOLL_NFDS_TYPE=nfds_t" "-DSTDC_HEADERS=1" "-DTHREADS_POSIX=1" "-DDEFAULT_VISIBILITY=__attribute__((visibility(\"default\")))" "-o" "/build/parity-ethereum/target/x86_64-pc-windows-gnu/release/build/libusb-sys-b35ac55f6a1ee087/out/libusb/libusb/os/linux_netlink.o" "-c" "libusb/libusb/os/linux_netlink.c" | |
cargo:warning=In file included from libusb/libusb/os/linux_netlink.c:25:0: | |
cargo:warning=libusb/libusb/libusbi.h:33:18: fatal error: poll.h: No such file or directory | |
cargo:warning= #include <poll.h> | |
cargo:warning= ^ | |
cargo:warning=compilation terminated. | |
exit code: 1 | |
--- stderr | |
thread 'main' panicked at ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this was fixed by manual compilation of libusb-sys with a patch paritytech/libusb-sys#5
and adding
to parity-eth's Cargo.toml