
Applying ./patches/001-timerfd.patch using plaintext: 
patching file libusb/io.c
Hunk #1 succeeded at 34 (offset 2 lines).
configure: loading site script /home/bastian/ledebot/openwrt/include/site/mips
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mips-openwrt-linux-strip... mips-openwrt-linux-musl-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking for mips-openwrt-linux-gcc... mips-openwrt-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-openwrt-linux-musl-gcc accepts -g... yes
checking for mips-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking whether mips-openwrt-linux-musl-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of mips-openwrt-linux-musl-gcc... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... mips-openwrt-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /home/bastian/ledebot/openwrt/staging_dir/host/bin/sed
checking for grep that handles long lines and -e... /home/bastian/ledebot/openwrt/staging_dir/host/bin/grep
checking for egrep... /home/bastian/ledebot/openwrt/staging_dir/host/bin/grep -E
checking for fgrep... /home/bastian/ledebot/openwrt/staging_dir/host/bin/grep -F
checking for ld used by mips-openwrt-linux-musl-gcc... mips-openwrt-linux-musl-ld
checking if the linker (mips-openwrt-linux-musl-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... mips-openwrt-linux-musl-gcc-nm
checking the name lister (mips-openwrt-linux-musl-gcc-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to mips-openwrt-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for mips-openwrt-linux-musl-ld option to reload object files... -r
checking for mips-openwrt-linux-objdump... mips-openwrt-linux-musl-objdump
checking how to recognize dependent libraries... pass_all
checking for mips-openwrt-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for mips-openwrt-linux-ar... mips-openwrt-linux-musl-gcc-ar
checking for archiver @FILE support... @
checking for mips-openwrt-linux-strip... (cached) mips-openwrt-linux-musl-strip
checking for mips-openwrt-linux-ranlib... mips-openwrt-linux-musl-gcc-ranlib
checking command to parse mips-openwrt-linux-musl-gcc-nm output from mips-openwrt-linux-musl-gcc object... ok
checking for sysroot... no
checking for mips-openwrt-linux-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking how to run the C preprocessor... mips-openwrt-linux-musl-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if mips-openwrt-linux-musl-gcc supports -fno-rtti -fno-exceptions... no
checking for mips-openwrt-linux-musl-gcc option to produce PIC... -fPIC -DPIC
checking if mips-openwrt-linux-musl-gcc PIC flag -fPIC -DPIC works... yes
checking if mips-openwrt-linux-musl-gcc static flag -static works... yes
checking if mips-openwrt-linux-musl-gcc supports -c -o file.o... yes
checking if mips-openwrt-linux-musl-gcc supports -c -o file.o... (cached) yes
checking whether the mips-openwrt-linux-musl-gcc linker (mips-openwrt-linux-musl-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for mips-openwrt-linux-windres... no
checking for windres... no
checking for inline... inline
checking operating system... Linux
checking for library containing clock_gettime... none required
checking asm/types.h usability... yes
checking asm/types.h presence... yes
checking for asm/types.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for linux/netlink.h... yes
checking for linux/filter.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/timerfd.h usability... yes
checking sys/timerfd.h presence... yes
checking for sys/timerfd.h... yes
checking whether TFD_NONBLOCK is declared... yes
checking whether to use timerfd for timing... yes
checking for struct timespec... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for syslog... yes
checking for sigaction... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for gettimeofday... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking whether CC supports -std=gnu99... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating libusb-1.0.pc
config.status: creating Makefile
config.status: creating libusb/Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen.cfg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make[4]: Entering directory '/home/bastian/ledebot/openwrt/build_dir/target-mips_34kc_musl-1.1.14/libusb-1.0.20'
make  all-recursive
make[5]: Entering directory '/home/bastian/ledebot/openwrt/build_dir/target-mips_34kc_musl-1.1.14/libusb-1.0.20'
Making all in libusb
make[6]: Entering directory '/home/bastian/ledebot/openwrt/build_dir/target-mips_34kc_musl-1.1.14/libusb-1.0.20/libusb'
make[7]: Entering directory '/home/bastian/ledebot/openwrt/build_dir/target-mips_34kc_musl-1.1.14/libusb-1.0.20/libusb'
  CC       libusb_1_0_la-core.lo
  CC       libusb_1_0_la-descriptor.lo
  CC       libusb_1_0_la-io.lo
  CC       libusb_1_0_la-strerror.lo
  CC       libusb_1_0_la-sync.lo
  CC       libusb_1_0_la-hotplug.lo
  CC       os/libusb_1_0_la-threads_posix.lo
  CC       os/libusb_1_0_la-linux_usbfs.lo
  CC       os/libusb_1_0_la-poll_posix.lo
  CC       os/libusb_1_0_la-linux_netlink.lo
  CC       libusb_1_0_la-core.lo
  CCLD     libusb-1.0.la
libtool: link: `libusb_1_0_la-core.lo' is not a valid libtool object
Makefile:549: recipe for target 'libusb-1.0.la' failed
make[7]: *** [libusb-1.0.la] Error 1
make[7]: Leaving directory '/home/bastian/ledebot/openwrt/build_dir/target-mips_34kc_musl-1.1.14/libusb-1.0.20/libusb'
Makefile:755: recipe for target 'all-recursive' failed
make[6]: *** [all-recursive] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: Leaving directory '/home/bastian/ledebot/openwrt/build_dir/target-mips_34kc_musl-1.1.14/libusb-1.0.20/libusb'
Makefile:470: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/bastian/ledebot/openwrt/build_dir/target-mips_34kc_musl-1.1.14/libusb-1.0.20'
Makefile:379: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/bastian/ledebot/openwrt/build_dir/target-mips_34kc_musl-1.1.14/libusb-1.0.20'
Makefile:53: recipe for target '/home/bastian/ledebot/openwrt/build_dir/target-mips_34kc_musl-1.1.14/libusb-1.0.20/.built' failed
make[3]: *** [/home/bastian/ledebot/openwrt/build_dir/target-mips_34kc_musl-1.1.14/libusb-1.0.20/.built] Error 2
