[MacPorts] #48016: icu do not compile under OSX 10.7 (error: initialization of non-aggregate type with an initializer list)

MacPorts noreply at macports.org
Thu Jun 11 14:20:55 PDT 2015


#48016: icu do not compile under OSX 10.7 (error: initialization of non-aggregate
type with an initializer list)
-------------------------------+--------------------------
  Reporter:  caulier.gilles@…  |      Owner:  ryandesign@…
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.3.3
Resolution:                    |   Keywords:
      Port:  icu               |
-------------------------------+--------------------------

Comment (by ryandesign@…):

 Gilles, it's probably not the Xcode version but rather the clang version
 that's relevant.

 René, yes, I did see that. That is certainly a relevant change. It is true
 that in order to use C++11 with libc++, a newer compiler is needed;
 including the [browser:trunk/dports/_resources/port1.0/group/cxx11-1.0.tcl
 cxx11 1.0 portgroup] will set up the blacklist appropriately for that
 situation.

 What's different here is that when not using libc++, icu builds fine with
 older versions of clang (as far as I know). So perhaps icu's configure
 script is detecting whether C++11 is available, and if so, is using
 constructs that need the newer clang. A complete log from the icu build
 might help identify if that's what's happening.

 The cxx11 1.0 portgroup currently has only one mode of operation:
 enforcing that libc++ is used and blacklisting compilers that don't
 understand C++11. It might be worthwhile to extend the cxx11 portgroup so
 that it has an optional secondary mode of operation that blacklists
 non-C++11 compilers only when using libc++.

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


More information about the macports-tickets mailing list