[MacPorts] #49868: py-bob-blitz (and possibly others): build fails on 10.6, error: unrecognized command line option "-std=c++0x" (was: py-bob-blitz: build fails on 10.6, error: unrecognized command line option "-std=c++0x")

MacPorts noreply at macports.org
Tue Dec 1 08:58:31 PST 2015


#49868: py-bob-blitz (and possibly others): build fails on 10.6, error:
unrecognized command line option "-std=c++0x"
---------------------------+-----------------------------
  Reporter:  devans@…      |      Owner:  tiago.pereira@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  py-bob-blitz  |
---------------------------+-----------------------------

Comment (by devans@…):

 Patch attached.  I went ahead and committed this to test that it fixes the
 issue with this port on the 10.6 buildbot (r143007).  Test was successful.

 I'll leave it to you to make similar modifications to the rest of the py-
 bob* ports that use -std=c++0x and post the necessary patch. One patch for
 the lot would be best.  Be sure sure to sync your sources with the current
 ports repository before making the changes.

 {{{
 sudo port selfupdate
 }}}


 BTW, you can simulate this issue and the solution on more current machines
 by installing the necessary compilers from MacPorts and forcing the
 compiler selection on the command line.

 e.g. to demonstrate the error with gcc-4.2

 {{{
 $ sudo port install apple-gcc42
 $ sudo port -d build py27-bob-blitz configure.compiler=apple-gcc-4.2
 }}}

 To demonstrate the fix by building with clang-3.4 (the fallback compiler)
 {{{
 $ sudo port install clang-3.4
 $ sudo port -d build py27-bob-blitz configure.compiler=macports-clang-3.4
 }}}

 I'll leave this ticket open until the rest of the ports are fixed.

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


More information about the macports-tickets mailing list