What you are showing there is libusb failing to timeout.
That's what the test program will test and show for the version of libusb you use.
I've put usbfail.c and the working libusb libusb-1.0.16-rc10.tar.bz2 in my binaries git:
https://github.com/kanoi/cgminer-binariesOn linux, To use the working libusb for cgminer instead of the system libusb -
First install udev-dev via one of:
Fedora:
yum install libgudev1Ubuntu derivatives:
apt-get install libudev-devArch: it should be installed by default as part of systemd
When you are in the cgminer folder:
mkdir libusb
cd libusb
wget -O libusb-1.0.16-rc10.tar.bz2 https://github.com/kanoi/cgminer-binaries/blob/master/libusb-1.0.16-rc10.tar.bz2?raw=true
tar -xvf libusb-1.0.16-rc10.tar.bz2
cd libusb-1.0.16-rc10
./configure
make
cd ..
cd ..
If you have already autogen/configured cgminer, next you want to edit Makefile
Search for
-I/usr/include/libusb-1.0 change all 3 to make sure it's working to
-Ilibusb/libusb-1.0.16-rc10/libusb/Also search for
-lusb-1.0 and change both of them to
libusb/libusb-1.0.16-rc10/libusb/.libs/libusb-1.0.a -ludev (without the first -l)
Then
make clean
makeand now your cgminer will have been compiled against my specific libusb-1.0.16-rc10 properly
N.B. you have to use that version in my git, not the system versions - it would appear a lot if linux distros have a bad libusb
Thank you so much for this! Just spent a long time trying to get libusb working correctly on Ubuntu 12.04 with my usb miners. This solved the problem immediately, great guide.
Also, is there a guide for what difficulty I should set in cgminer based on hashrate? Or should I just let cgminer decide?