[MacPorts] #56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to build BZFlag

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to build BZFlag

MacPorts
#56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to
build BZFlag
---------------------------------------+----------------------
 Reporter:  ryandesign                 |      Owner:  allejo
     Type:  defect                     |     Status:  assigned
 Priority:  Normal                     |  Milestone:
Component:  ports                      |    Version:
 Keywords:  tiger leopard snowleopard  |       Port:  bzflag
---------------------------------------+----------------------
 {{{
 checking ... p r o g r a m s ... (2 of 9)
 checking whether we are using the GNU C++ compiler... yes
 checking whether /usr/bin/g++-4.2 accepts -g... yes
 checking dependency style of /usr/bin/g++-4.2... gcc3
 checking if /usr/bin/g++-4.2 supports C++0x features without additional
 flags... no
 checking if /usr/bin/g++-4.2 supports C++0x features with -std=c++0x... no
 checking if /usr/bin/g++-4.2 supports C++0x features with -std=gnu++0x...
 no
 configure: error: A c++ compiler with C++0x support is required to build
 BZFlag
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/56516>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to build BZFlag

MacPorts
#56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to
build BZFlag
-------------------------+-------------------------------------------------
  Reporter:  ryandesign  |      Owner:  allejo
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  bzflag      |  mountainlion
-------------------------+-------------------------------------------------
Changes (by ryandesign):

 * keywords:  tiger leopard snowleopard => tiger leopard snowleopard lion
     mountainlion


Comment:

 The above was on 10.6, but the problem extends to 10.7 and 10.8:

 {{{
 ./SDL2Window.h:26:10: fatal error: 'cstdint' file not found
 #include <cstdint>
          ^
 1 error generated.
 }}}

 The usual solution is to include the cxx11 1.1 portgroup.

--
Ticket URL: <https://trac.macports.org/ticket/56516#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to build BZFlag

MacPorts
In reply to this post by MacPorts
#56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to
build BZFlag
-------------------------+-------------------------------------------------
  Reporter:  ryandesign  |      Owner:  allejo
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  bzflag      |  mountainlion
-------------------------+-------------------------------------------------

Comment (by allejo):

 Yea, compiling bzflag requires a compiler with c++0x support. Is having
 two values for `PortGroup` allowed or how would that work with `app 1.0`
 already being set?

 On a somewhat related note, bzflag only officially supports 10.7+. Is
 there a way this can be added to the Portfile?

 Sorry for the noob questions, I'm still new to the macports scene!

--
Ticket URL: <https://trac.macports.org/ticket/56516#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to build BZFlag

MacPorts
In reply to this post by MacPorts
#56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to
build BZFlag
-------------------------+-------------------------------------------------
  Reporter:  ryandesign  |      Owner:  allejo
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  bzflag      |  mountainlion
-------------------------+-------------------------------------------------

Comment (by MarcusCalhoun-Lopez):

 Yes, two values of {{{PortGroup}}} is fine.\\
 {{{
 PortSystem          1.0
 PortGroup           app 1.0
 PortGroup           cxx11 1.1

 name                bzflag
 version             2.4.14
 }}}

 If you are sure that bzflag will not work on 10.6 or lower, you could add
 something like
 {{{
 if {${os.major} < 11} {
     pre-fetch {
          ui_error "${name} requires Mac OS X 10.7 or greater"
         return -code error "incompatible OS version"
     }
 }
 }}}
 However, I was about to get bzflag to compile and run on a 10.6 virtual
 machine.\\
 You might not want to add the above code until you are sure it is
 needed.\\
 They might have only chosen 10.7 since it was the first OS with
 [https://trac.macports.org/wiki/LibcxxOnOlderSystems libc++].\\
 {{{PortGroup cxx11 1.1}}} may be able to get around that.

 On an unrelated note, the livecheck did not work for me.\\
 However, {{{livecheck.regex     {(\d+(?:\.\d+)+)/} }}} did work.

--
Ticket URL: <https://trac.macports.org/ticket/56516#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to build BZFlag

MacPorts
In reply to this post by MacPorts
#56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to
build BZFlag
-------------------------+-------------------------------------------------
  Reporter:  ryandesign  |      Owner:  allejo
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  bzflag      |  mountainlion
-------------------------+-------------------------------------------------

Comment (by ryandesign):

 Replying to [comment:3 allejo]:
 > Yea, compiling bzflag requires a compiler with c++0x support. Is having
 two values for `PortGroup` allowed or how would that work with `app 1.0`
 already being set?

 Yes, that's fine. `PortGroup` in MacPorts is basically like `#include` in
 C.

--
Ticket URL: <https://trac.macports.org/ticket/56516#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to build BZFlag

MacPorts
In reply to this post by MacPorts
#56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to
build BZFlag
-------------------------+-------------------------------------------------
  Reporter:  ryandesign  |      Owner:  allejo
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  bzflag      |  mountainlion
-------------------------+-------------------------------------------------

Comment (by kencu):

 I built the last version of bzflag on 10.6.8 without any trouble, but it
 errored on launch with a complaint about OpenGL. Haven't tried it since
 the update.

--
Ticket URL: <https://trac.macports.org/ticket/56516#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to build BZFlag

MacPorts
In reply to this post by MacPorts
#56516: bzflag @2.4.14: error: A c++ compiler with C++0x support is required to
build BZFlag
-------------------------+-------------------------------------------------
  Reporter:  ryandesign  |      Owner:  allejo
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:  fixed       |   Keywords:  tiger leopard snowleopard lion
      Port:  bzflag      |  mountainlion
-------------------------+-------------------------------------------------
Changes (by ken-cunningham-webuse):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"ed43244c1cd1b12d4a259ccf7ce3d703e361f2df/macports-ports"
 ed43244c1cd1b12d4a259ccf7ce3d703e361f2df/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="ed43244c1cd1b12d4a259ccf7ce3d703e361f2df"
 bzflag: requires cxx11 1.1 PG

 closes: https://trac.macports.org/ticket/56516
 }}}

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