[MacPorts] #50281: qgis @2.12.0_1 build fails with fatal error: 'initializer_list' file not found

MacPorts noreply at macports.org
Sun Jan 10 11:34:14 PST 2016


#50281: qgis @2.12.0_1 build fails with fatal error: 'initializer_list' file not
found
------------------------------+--------------------------------
 Reporter:  daniel@…          |      Owner:  macports-tickets@…
     Type:  defect            |     Status:  new
 Priority:  Normal            |  Milestone:
Component:  ports             |    Version:  2.3.4
 Keywords:  lion clang cxx11  |       Port:  qgis
------------------------------+--------------------------------
 On OS X Lion (10.7.5, Darwin 11.4.2), the build of qgis @2.12.0_1 fails
 because of C++11 issues with qt4-mac:
 {{{
 :info:build In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/qgis-2.12.0/src/core/gps/qgsgpsconnectionregistry.cpp:18:
 :info:build In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/qgis-2.12.0/src/core/gps/qgsgpsconnectionregistry.h:21:
 :info:build In file included from
 /opt/local/libexec/qt4/include/QtCore/QList:1:
 :info:build /opt/local/libexec/qt4/include/QtCore/qlist.h:55:10: fatal
 error: 'initializer_list' file not found
 :info:build #include <initializer_list>
 :info:build          ^
 :info:build In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/qgis-2.12.0/src/core/gps/qgsgpsconnection.cpp:18:
 :info:build In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/qgis-2.12.0/src/core/gps/qgsgpsconnection.h:21:
 :info:build In file included from
 /opt/local/libexec/qt4/include/QtCore/QDateTime:1:
 :info:build In file included from
 /opt/local/libexec/qt4/include/QtCore/qdatetime.h:47:
 :info:build In file included from
 /opt/local/libexec/qt4/include/QtCore/qsharedpointer.h:50:
 :info:build In file included from
 /opt/local/libexec/qt4/include/QtCore/qsharedpointer_impl.h:63:
 :info:build In file included from
 /opt/local/libexec/qt4/include/QtCore/qobject.h:50:
 :info:build /opt/local/libexec/qt4/include/QtCore/qlist.h:55:10: fatal
 error: 'initializer_list' file not found
 :info:build #include <initializer_list>
 :info:build          ^
 :info:build 1 error generated.
 }}}

 It seems to be an issue with the clang from Xcode 4.6.3, which leads to
 the workaround of adding
 {{{
 configure.compiler      llvm-gcc-4.2
 }}}
 to the Portfile, and that in turn produces a working build.

 Full log is attached

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


More information about the macports-tickets mailing list