[MacPorts] #61868: libusb @1.0.24: error: compiler with C11 support is required to build libusb

MacPorts noreply at macports.org
Thu Dec 24 01:33:34 UTC 2020


#61868: libusb @1.0.24: error: compiler with C11 support is required to build
libusb
-----------------------------------+-----------------------
  Reporter:  dgonyier              |      Owner:  michaelld
      Type:  defect                |     Status:  reopened
  Priority:  Normal                |  Milestone:
 Component:  ports                 |    Version:  2.6.4
Resolution:                        |   Keywords:
      Port:  libusb, libusb-devel  |
-----------------------------------+-----------------------

Comment (by kencu):

 a PR that implements a peg for older systems.

 Not 100% accurate -- the peg should be for any non-apple gcc versions --
 but that is too much of a PITA to do, so we do this instead, for now.

 Alternatively, we could do one of these:
 - patch the USB.h header and use it in legacysupport (we are getting close
 to doing that sort of thing)
 - patch gcc to add the variant pragma handling
 - patch gcc to use it's own "fixincludes" to fix up the USB.h header in
 the same exact manner we are talking about fixing in in legacysupport
 - fix clang-7.0 to properly output macho objects with the PowerPC ABI ...

-- 
Ticket URL: <https://trac.macports.org/ticket/61868#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list