Summary: | devel/kdevplatform build failed (cc1plus: error: unrecognized command line option "-std=c++11") | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | woot-woot | ||||||
Component: | Individual Port(s) | Assignee: | freebsd-kde (group) <kde> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | CC: | alonso | ||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(kde) |
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
woot-woot
2014-12-06 13:42:32 UTC
Auto-assigned to maintainer kde@FreeBSD.org Created attachment 150268 [details]
Force usage of a C++11 conformant compiler
Hi
The attached patch might fix this. Can you give it a try?
thanks, its helps. well, now new problem appeared. Generating svnblamejob_p.moc [ 51%] Built target kdevclassbrowser_automoc Generating svncopyjob_p.moc Scanning dependencies of target sublime Generating svnstatusjob.moc [ 51%] Building CXX object sublime/CMakeFiles/sublime.dir/sublime_automoc.cpp.o Scanning dependencies of target kdevplatforminterfaces [ 51%] Building CXX object interfaces/CMakeFiles/kdevplatforminterfaces.dir/kdevplatforminterfaces_automoc.cpp.o Generating svnupdatejob.moc Generating svnimportjob.moc In file included from /usr/ports/devel/kdevplatform/work/kdevplatform-1.7.0/sublime/sublime_automoc.cpp:4: In file included from /usr/ports/devel/kdevplatform/work/kdevplatform-1.7.0/sublime/moc_idealdockwidget.cpp:9: In file included from /usr/ports/devel/kdevplatform/work/kdevplatform-1.7.0/sublime/idealdockwidget.h:26: In file included from /usr/local/include/qt4/QtGui/QDockWidget:1: In file included from /usr/local/include/qt4/QtGui/qdockwidget.h:45: In file included from /usr/local/include/qt4/QtGui/qwidget.h:47: In file included from /usr/local/include/qt4/QtCore/qobject.h:50: /usr/local/include/qt4/QtCore/qlist.h:55:10: fatal error: 'initializer_list' file not found #include <initializer_list> ^ Generating svninternaljobbase.moc In file included from /usr/ports/devel/kdevplatform/work/kdevplatform-1.7.0/interfaces/kdevplatforminterfaces_automoc.cpp:4: In file included from /usr/ports/devel/kdevplatform/work/kdevplatform-1.7.0/interfaces/moc_foregroundlock.cpp:9: In file included from /usr/ports/devel/kdevplatform/work/kdevplatform-1.7.0/interfaces/foregroundlock.h:24: In file included from /usr/local/include/qt4/QtCore/QObject:1: In file included from /usr/local/include/qt4/QtCore/qobject.h:50: /usr/local/include/qt4/QtCore/qlist.h:55:10: fatal error: 'initializer_list' file not found #include <initializer_list> ^ Generating svncommitjob_p.moc 1 error generated. *** [sublime/CMakeFiles/sublime.dir/sublime_automoc.cpp.o] Error code 1 1 error *** [sublime/CMakeFiles/sublime.dir/all] Error code 2 Generating svnmovejob.moc [ 51%] Building CXX object interfaces/CMakeFiles/kdevplatforminterfaces.dir/foregroundlock.cpp.o 1 error generated. *** [interfaces/CMakeFiles/kdevplatforminterfaces.dir/kdevplatforminterfaces_automoc.cpp.o] Error code 1 Generating svnssldialog.moc Generating svnimportmetadatawidget.moc Generating svndiffjob.moc In file included from /usr/ports/devel/kdevplatform/work/kdevplatform-1.7.0/interfaces/foregroundlock.cpp:20: In file included from /usr/ports/devel/kdevplatform/work/kdevplatform-1.7.0/interfaces/foregroundlock.h:24: In file included from /usr/local/include/qt4/QtCore/QObject:1: In file included from /usr/local/include/qt4/QtCore/qobject.h:50: /usr/local/include/qt4/QtCore/qlist.h:55:10: fatal error: 'initializer_list' file not found #include <initializer_list> ^ 1 error generated. *** [interfaces/CMakeFiles/kdevplatforminterfaces.dir/foregroundlock.cpp.o] Error code 1 2 errors *** [interfaces/CMakeFiles/kdevplatforminterfaces.dir/all] Error code 2 Generating svnstatusjob_p.moc Generating svnlogjob_p.moc Generating svnrevertjob_p.moc Generating svncatjob.moc Generating svncatjob_p.moc Generating svnlogjob.moc Generating svncheckoutjob.moc Generating svncommitjob.moc Generating svnupdatejob_p.moc Generating svnmovejob_p.moc Generating svnremovejob_p.moc Generating svndiffjob_p.moc Generating svnremovejob.moc Generating svnaddjob_p.moc Generating svncheckoutmetadatawidget.moc Generating svninfojob.moc Generating svnblamejob.moc Generating svncheckoutjob_p.moc Generating moc_svnclient.cpp [ 51%] Built target kdevsubversion_automoc 2 errors *** [all] Error code 2 1 error ===> Compilation failed unexpectedly. Created attachment 150276 [details]
Force usage of a C++11 conformant runtime library
The new patch should fix the build now, while forcing a runtime dependency on a more recent compiler than the one which is shipped on FreeBSD 8.
look like it works same issue with devel/kdevelop-php-docs and probably devel/kdevelop-php-docs but i got how to fix it and recompile soon with patched Makefile *** [CMakeFiles/kdevphpdocs_config.dir/phpdocsconfig.cpp.o] Error code 1 cc1plus: error: unrecognized command line option "-std=c++11" cc1plus: error: unrecognized command line option "-std=c++11" *** [CMakeFiles/kdevphpdocs_config.dir/phpdocssettings.cpp.o] Error code 1 *** [CMakeFiles/kdevphpdocs_config.dir/kdevphpdocs_config_automoc.cpp.o] Error code 1 3 errors *** [CMakeFiles/kdevphpdocs_config.dir/all] Error code 2 Scanning dependencies of target kdevphpdocs [ 85%] Building CXX object CMakeFiles/kdevphpdocs.dir/phpdocsmodel.cpp.o [ 87%] Building CXX object CMakeFiles/kdevphpdocs.dir/phpdocumentation.cpp.o [ 92%] Building CXX object CMakeFiles/kdevphpdocs.dir/kdevphpdocs_automoc.cpp.o cc1plus: error: unrecognized command line option "-std=c++11" [ 92%] Building CXX object CMakeFiles/kdevphpdocs.dir/phpdocumentationwidget.cpp.o cc1plus: error: unrecognized command line option "-std=c++11" cc1plus: error: unrecognized command line option "-std=c++11" *** [CMakeFiles/kdevphpdocs.dir/phpdocsmodel.cpp.o] Error code 1 cc1plus: error: unrecognized command line option "-std=c++11" *** [CMakeFiles/kdevphpdocs.dir/phpdocumentation.cpp.o] Error code 1 *** [CMakeFiles/kdevphpdocs.dir/kdevphpdocs_automoc.cpp.o] Error code 1 *** [CMakeFiles/kdevphpdocs.dir/phpdocumentationwidget.cpp.o] Error code 1 4 errors *** [CMakeFiles/kdevphpdocs.dir/all] Error code 2 2 errors *** [all] Error code 2 yes, finally all works. Thanks. devel/kdevelop-php-docs and devel/kdevelop-php required same patch A commit references this bug: Author: alonso Date: Tue Dec 9 07:39:52 UTC 2014 New revision: 374350 URL: https://svnweb.freebsd.org/changeset/ports/374350 Log: Fix build of kdevelop on FreeBSD8 and 9 devel/kdevplatform requires a c++11 conformant compiler and runtime libraries. Further, it exposes these requirements to its consumer PORTS by exposing c++11 stl interfaces in its header files. Also, devel/kdevelop requires a c++11 runtime library by its usage of initializer lists on top of its kdevplatform consumage. Have the kdevplatform, kdevelop and kdevelop-php PORTS require a corresponsing toolchain by USEing compiler:c++11-lib While here, add cmake:outsource to these ports. PR: 195742 Approved by: rakuco (mentor) Changes: head/devel/kdevelop-kde4/Makefile head/devel/kdevelop-php/Makefile head/devel/kdevelop-php-docs/Makefile head/devel/kdevplatform/Makefile Fix commited to ports collection as revision 374350. |