Opened 9 years ago

Closed 8 years ago

#50281 closed defect (wontfix)

qgis @2.12.0_1 build fails with fatal error: 'initializer_list' file not found

Reported by: daniel@… Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: lion Cc:
Port: qgis

Description

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

Attachments (1)

qgis.log.gz (14.5 KB) - added by daniel@… 9 years ago.
main.log from failed build

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by daniel@…

Attachment: qgis.log.gz added

main.log from failed build

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Cc: vince@… removed
Keywords: clang cxx11 removed
Owner: changed from macports-tickets@… to vince@…

comment:2 Changed 9 years ago by Veence (Vincent)

So, here, we shouldn’t use C++11 because Xcode is too old, is that the problem?

comment:3 Changed 9 years ago by Veence (Vincent)

Sorry, I didn’t read what you wrote after the log. Okay, I’ll have that added to the Portfile to handle your case correctly. Glad you could get a working build with llvm-gcc-4.2

comment:4 Changed 9 years ago by Veence (Vincent)

Should be fixed in r144929

comment:5 Changed 8 years ago by Veence (Vincent)

Resolution: wontfix
Status: newclosed

Please retry with the new 2.16 version and reopen a bug if necessary

Note: See TracTickets for help on using tickets.