[MacPorts] #43757: cppcheck @1.65: error: unrecognized command line option "-std=c++0x"

MacPorts noreply at macports.org
Sun Jul 20 17:22:53 PDT 2014


#43757: cppcheck @1.65: error: unrecognized command line option "-std=c++0x"
---------------------------+------------------------
  Reporter:  ryandesign@…  |      Owner:  xythobuz@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.2.1
Resolution:                |   Keywords:
      Port:  cppcheck      |
---------------------------+------------------------

Comment (by egall@…):

 > To be honest, I'm not sure if there is a way around this problem, except
 upgrading the GCC used by the build bot from 4.2 to 4.4 (the minimum
 version mentioned by cppcheck), which is probably easier said then done.

 The `gcc-4.2` used by the buildbot is the system compiler, and Apple
 stopped upgrading its system gcc at version 4.2, so upgrading the system
 gcc to 4.4 is out of the question. Instead, the port should use
 `compiler.blacklist` (and/or possibly also `compiler.whitelist` and/or
 `compiler.fallback`) to only allow MacPorts to use compilers that work.
 See the UsingTheRightCompiler wiki page for more info on how to do this.

-- 
Ticket URL: <https://trac.macports.org/ticket/43757#comment:3>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list