Menu

#74 Build fails on Ubuntu when libusb-dev is installed

0.9.0
closed
nobody
None
2014-08-16
2014-06-05
Brendan
No

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.

1 Attachments

Related

Tickets: #74

Discussion

  • Brendan

    Brendan - 2014-06-05

    Looks like make_output.txt didn't make it, here it is.

     
  • Paul Fertser

    Paul Fertser - 2014-06-06

    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)?

     
    • Xiaofan Chen

      Xiaofan Chen - 2014-06-06

      On Fri, Jun 6, 2014 at 2:01 PM, Paul Fertser dail@users.sf.net wrote:

      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)?


      [tickets:#74] Build fails on Ubuntu when libusb-dev is installed

      Status: new
      Milestone: 0.9.0
      Created: Thu Jun 05, 2014 07:45 PM UTC by Brendan
      Last Updated: Thu Jun 05, 2014 07:46 PM UTC
      Owner: nobody

      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.

      Just for information, I have no problem building OpenOCD git under
      Ubuntu 14.04 x64 with libusb-dev installed.

      --
      Xiaofan

       

      Related

      Tickets: #74

    • Brendan

      Brendan - 2014-06-06

      Nope, 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.

       
  • Paul Fertser

    Paul Fertser - 2014-06-27
    • status: new --> closed
     
  • Paul Fertser

    Paul Fertser - 2014-06-27

    Please reopen if you manage to reproduce the issue and is ready to help investigating.

     

Log in to post a comment.