Using GCC 4.8.2 (the version in the Ubuntu 14.04 GCC package), there is presumably a clash between header files in the OpenOCD source tree and the system header files in /usr/include
. Sorry, I haven't dived into the code to identify the proble precisely, but here's I've attached the output from make
as make_output.txt
and the config.log
produced by configure
(I'm not familiar with autotools - let me know if I can provide something more useful).
I got the error both on master
(c8c10f77dcbc6297f475af7e9768593a847665c2 as I write) and tags/v0.8.0
. I don't need libusb-dev
for anything else so I haven't fixed the problem; I just uninstalled it.
Looks like make_output.txt didn't make it, here it is.
It looks like there's an incompatible usb.h coming from something else, so libusb-dev provides a libusb-0.1 pkg-config file, libusb-0.1 supports gets enabled but then a wrong header is used. Do you have another usb.h from somewhere else installed to a common location (such as /usr/local/include)?
On Fri, Jun 6, 2014 at 2:01 PM, Paul Fertser dail@users.sf.net wrote:
Just for information, I have no problem building OpenOCD git under
Ubuntu 14.04 x64 with libusb-dev installed.
--
Xiaofan
Related
Tickets:
#74Nope, no
usb.h
in anywhere that would be on the PP search path (except the /usr/include/usb.h from libusb-dev). If I get the chance I'll look into it and let you know the exact details of the clash.Please reopen if you manage to reproduce the issue and is ready to help investigating.