Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6
Hi, Thank you Marco for your quick fix:) On 2016年1月27日水曜日 8時45分03秒 JST Hausmann Simon wrote: > Ok, I had another look. I don't think find_if is new in C++11: > > http://en.cppreference.com/w/cpp/algorithm/find > > It seems find_if_not is, but not find_if. So I think what we see here is > simply a compiler bug perhaps? As Marco's workaround, setting local types to the args of template class (std::find_if in this case) comes from C++11, I think. http://www.stroustrup.com/C++11FAQ.html#local-types Regards. Takahiro > > Thanks to Marco it seems that we have a workaround: > > https://codereview.qt-project.org/#/c/147484/ > > So I don't have the impression that C++11 code can slip through the CI for > the 5.6 branches. However if you do discover an incidence please holler :) > > Simon > > Original Message > From: Olivier Goffart > Sent: Monday, January 18, 2016 16:26 > To: development@qt-project.org > Cc: Rex Dieter > Subject: Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6 > > On Montag, 18. Januar 2016 08:31:01 CET Rex Dieter wrote: > > I'm trying to build(bootstrap) qt-5.6.0-beta stack on rhel6, and have run > > into a build failure in qtdeclarative, > > > > > beta/tools/qmlimportscanner/main.cpp:376: error: no matching function for > > call to 'find_if(QList::const_iterator, > > std::find_if is new in C++11 > And it was used in https://codereview.qt-project.org/125853/ in the 5.6 > which still does not require C++11. > > Apparently the CI does not try to build this with non-c++11 enabled > compilers? > > -- > Olivier > > Woboq - Qt services and support - https://woboq.com - https://code.woboq.org > ___ > Development mailing list > Development@qt-project.org > http://lists.qt-project.org/mailman/listinfo/development > ___ > Development mailing list > Development@qt-project.org > http://lists.qt-project.org/mailman/listinfo/development ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6
Ok, I had another look. I don't think find_if is new in C++11: http://en.cppreference.com/w/cpp/algorithm/find It seems find_if_not is, but not find_if. So I think what we see here is simply a compiler bug perhaps? Thanks to Marco it seems that we have a workaround: https://codereview.qt-project.org/#/c/147484/ So I don't have the impression that C++11 code can slip through the CI for the 5.6 branches. However if you do discover an incidence please holler :) Simon Original Message From: Olivier Goffart Sent: Monday, January 18, 2016 16:26 To: development@qt-project.org Cc: Rex Dieter Subject: Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6 On Montag, 18. Januar 2016 08:31:01 CET Rex Dieter wrote: > I'm trying to build(bootstrap) qt-5.6.0-beta stack on rhel6, and have run > into a build failure in qtdeclarative, > beta/tools/qmlimportscanner/main.cpp:376: error: no matching function for > call to 'find_if(QList::const_iterator, std::find_if is new in C++11 And it was used in https://codereview.qt-project.org/125853/ in the 5.6 which still does not require C++11. Apparently the CI does not try to build this with non-c++11 enabled compilers? -- Olivier Woboq - Qt services and support - https://woboq.com - https://code.woboq.org ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6
Hi. Sorry I don't have any info about C++11 code in 5.6 branch. I'd like to comment for Simon's question about devltoolset requirement. According to this thread [1] maybe the binary distribution of Qt 5 requires newer(4.7?) libstdc++ than the one which is provided by RHEL/CentOS 6.(4.4.7) This might lead updating wiki article of building qt5 to add this workaround. The Red Hat Developer Toolset has been released 4 times for RHEL5/6 release (1.0 to 3.0) and currently only 3.0 is supported on RHEL6. [2] I think These are reason why for this requirement. And I don't know if the older version of Qt5(5.0,5.1..) could be built with gcc 4.4... By the way, RHEL6 is now at second half of its 10 years support life cycle. [3] I think it would be better to start to consider about Qt5 support for RHEL7. As RHEL7 has gcc 4.8, the devtoolset is not needed. [1] http://forum.qt.io/topic/30140/solved-qt-creator-could-not-find-or-load-the-qt-platform-plugin-xcb/ [2] https://access.redhat.com/support/policy/updates/dts [3] https://access.redhat.com/support/policy/updates/errata Regards. Takahiro On 2016年1月18日月曜日 15時58分09秒 JST Hausmann Simon wrote: > I'm surprised as well that this slipped through. Looks like MSVC 2010 > supports this bit as well. > > It is true however that we require devtoolset 3 for RHEL 6. Does anyone > remember the reason? > > > Simon > > Original Message > From: Olivier Goffart > Sent: Monday, January 18, 2016 16:26 > To: development@qt-project.org > Cc: Rex Dieter > Subject: Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6 > > On Montag, 18. Januar 2016 08:31:01 CET Rex Dieter wrote: > > I'm trying to build(bootstrap) qt-5.6.0-beta stack on rhel6, and have run > > into a build failure in qtdeclarative, > > > > > beta/tools/qmlimportscanner/main.cpp:376: error: no matching function for > > call to 'find_if(QList::const_iterator, > > std::find_if is new in C++11 > And it was used in https://codereview.qt-project.org/125853/ in the 5.6 > which still does not require C++11. > > Apparently the CI does not try to build this with non-c++11 enabled > compilers? > > -- > Olivier > > Woboq - Qt services and support - https://woboq.com - https://code.woboq.org > ___ > Development mailing list > Development@qt-project.org > http://lists.qt-project.org/mailman/listinfo/development > ___ > Development mailing list > Development@qt-project.org > http://lists.qt-project.org/mailman/listinfo/development ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6
> -Original Message- > From: Development [mailto:development-boun...@qt-project.org] On > Behalf Of Takahiro Hashimoto > Sent: 19. tammikuuta 2016 12:36 > To: development@qt-project.org > Cc: Rex Dieter <rdie...@math.unl.edu> > Subject: Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6 > > Hi. > > Sorry I don't have any info about C++11 code in 5.6 branch. I'd like to > comment for Simon's question about devltoolset requirement. > > According to this thread [1] maybe the binary distribution of Qt 5 requires > newer(4.7?) libstdc++ than the one which is provided by RHEL/CentOS > 6.(4.4.7) Yes that and also GCC gets updated when we install devtoolset. > This might lead updating wiki article of building qt5 to add this workaround. > > The Red Hat Developer Toolset has been released 4 times for RHEL5/6 > release > (1.0 to 3.0) and currently only 3.0 is supported on RHEL6. [2] > > I think These are reason why for this requirement. > And I don't know if the older version of Qt5(5.0,5.1..) could be built with > gcc 4.4... > > By the way, RHEL6 is now at second half of its 10 years support life cycle. > [3] I think it would be better to start to consider about Qt5 support for > RHEL7. As RHEL7 has gcc 4.8, the devtoolset is not needed. > > > [1] http://forum.qt.io/topic/30140/solved-qt-creator-could-not-find-or-load- > the-qt-platform-plugin-xcb/ > > [2] https://access.redhat.com/support/policy/updates/dts > [3] https://access.redhat.com/support/policy/updates/errata > > > Regards. > Takahiro > > > On 2016年1月18日月曜日 15時58分09秒 JST Hausmann Simon wrote: > > I'm surprised as well that this slipped through. Looks like MSVC 2010 > > supports this bit as well. > > > > It is true however that we require devtoolset 3 for RHEL 6. Does anyone > > remember the reason? > > > > > > Simon > > > > Original Message > > From: Olivier Goffart > > Sent: Monday, January 18, 2016 16:26 > > To: development@qt-project.org > > Cc: Rex Dieter > > Subject: Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6 > > > > On Montag, 18. Januar 2016 08:31:01 CET Rex Dieter wrote: > > > I'm trying to build(bootstrap) qt-5.6.0-beta stack on rhel6, and have run > > > into a build failure in qtdeclarative, > > > > > > > > > beta/tools/qmlimportscanner/main.cpp:376: error: no matching function > for > > > call to 'find_if(QList::const_iterator, > > > > std::find_if is new in C++11 > > And it was used in https://codereview.qt-project.org/125853/ in the 5.6 > > which still does not require C++11. > > > > Apparently the CI does not try to build this with non-c++11 enabled > > compilers? > > > > -- > > Olivier > > > > Woboq - Qt services and support - https://woboq.com - > https://code.woboq.org > > ___ > > Development mailing list > > Development@qt-project.org > > http://lists.qt-project.org/mailman/listinfo/development > > ___ > > Development mailing list > > Development@qt-project.org > > http://lists.qt-project.org/mailman/listinfo/development > > > ___ > Development mailing list > Development@qt-project.org > http://lists.qt-project.org/mailman/listinfo/development ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6
Rex, thank you for your pointer to EPEL. And your nice work at EPEL:) On 2016年1月19日火曜日 6時39分39秒 JST Rex Dieter wrote: > Takahiro Hashimoto wrote: > > And I don't know if the older version of Qt5(5.0,5.1..) could be built > > with gcc 4.4... > > They could, including Qt 5.5.x. I am currently providing RHEL 6/7 Qt5 > packages via > https://fedoraproject.org/wiki/EPEL > > I started this thread because EPEL by policy doesn't allow dependencies > outside of RHEL to be used, and so EPEL (for RHEL6) can no longer support Qt > 5.6 and newer. > > -- Rex > > ___ > Development mailing list > Development@qt-project.org > http://lists.qt-project.org/mailman/listinfo/development I think we have two points for discussion. Please let me write for clarify them. 1. c++11 code in Qt 5.6 I think you can patch qtdeclarative source locally for EPEL, of course you know. But as far as you experienced the cause of build failure is the use of c ++11 code(std::find_if and others) which isn't allowed in Qt 5.6 LTS policy(?) We should discuss wheather it should be removed or not. 2. Officially supported platform for Qt 5.6 Despite existence of c++11 code, now supported gcc version for Linux 32/64 is at least 4.6.3 or later (see Ubuntu section) [1] If EPEL is independent of it, we can approach some work(like local patch) for support Qt5.6 in EPEL in RHEL6. I have no good thought whether the minimum supported gcc version in Qt 5.6 should be changed to gcc 4.4.7 for RHEL6 or not... I personally think it would be better to concentrate on RHEL7 support...:D This is my opinion. Guys, I'm happy for your comment about them. [1] http://doc.qt.io/QtSupportedPlatforms/index.html Regards. Takahiro ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6
Takahiro Hashimoto wrote: > And I don't know if the older version of Qt5(5.0,5.1..) could be built > with gcc 4.4... They could, including Qt 5.5.x. I am currently providing RHEL 6/7 Qt5 packages via https://fedoraproject.org/wiki/EPEL I started this thread because EPEL by policy doesn't allow dependencies outside of RHEL to be used, and so EPEL (for RHEL6) can no longer support Qt 5.6 and newer. -- Rex ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6
Just information, the devtoolset4 has been released. GCC version is 5.2.1. RHEL6/7 user can install both gcc4.9.2(devtoolset3) and gcc5.2.1(devtoolset4). [1] http://developerblog.redhat.com/2015/11/17/gcc-5-developer-toolset-4-generally-available/ Regards. Takahiro On 2016年1月19日火曜日 11時40分58秒 JST Sarajärvi Tony wrote: > > -Original Message- > > From: Development [mailto:development-boun...@qt-project.org] On > > Behalf Of Takahiro Hashimoto > > Sent: 19. tammikuuta 2016 12:36 > > To: development@qt-project.org > > Cc: Rex Dieter <rdie...@math.unl.edu> > > Subject: Re: [Development] qtdeclarative-5.6.0-beta build failure on > > rhel6 > > > > Hi. > > > > Sorry I don't have any info about C++11 code in 5.6 branch. I'd like to > > comment for Simon's question about devltoolset requirement. > > > > According to this thread [1] maybe the binary distribution of Qt 5 > > requires newer(4.7?) libstdc++ than the one which is provided by > > RHEL/CentOS 6.(4.4.7) > > > Yes that and also GCC gets updated when we install devtoolset. > > > > This might lead updating wiki article of building qt5 to add this > > workaround. > > The Red Hat Developer Toolset has been released 4 times for RHEL5/6 > > release > > (1.0 to 3.0) and currently only 3.0 is supported on RHEL6. [2] > > > > I think These are reason why for this requirement. > > And I don't know if the older version of Qt5(5.0,5.1..) could be built > > with gcc 4.4... > > > > By the way, RHEL6 is now at second half of its 10 years support life > > cycle. [3] I think it would be better to start to consider about Qt5 > > support for RHEL7. As RHEL7 has gcc 4.8, the devtoolset is not needed. > > > > > > [1] > > http://forum.qt.io/topic/30140/solved-qt-creator-could-not-find-or-load-> > > > the-qt-platform-plugin-xcb/ > > > > [2] https://access.redhat.com/support/policy/updates/dts > > [3] https://access.redhat.com/support/policy/updates/errata > > > > > > Regards. > > Takahiro > > > > > > On 2016年1月18日月曜日 15時58分09秒 JST Hausmann Simon wrote: > > > > > I'm surprised as well that this slipped through. Looks like MSVC 2010 > > > supports this bit as well. > > > > > > > > > > > > It is true however that we require devtoolset 3 for RHEL 6. Does anyone > > > remember the reason? > > > > > > > > > > > > > > > Simon > > > > > > > > > > > > Original Message > > > > > > From: Olivier Goffart > > > Sent: Monday, January 18, 2016 16:26 > > > To: development@qt-project.org > > > Cc: Rex Dieter > > > Subject: Re: [Development] qtdeclarative-5.6.0-beta build failure on > > > rhel6 > > > > > > > > > > > > On Montag, 18. Januar 2016 08:31:01 CET Rex Dieter wrote: > > > > > > > I'm trying to build(bootstrap) qt-5.6.0-beta stack on rhel6, and have > > > > run > > > > into a build failure in qtdeclarative, > > > > > > > > > > > > > > > > > > > > > > > > > beta/tools/qmlimportscanner/main.cpp:376: error: no matching function > > > > for > > > > > > call to 'find_if(QList::const_iterator, > > > > > > > > > > > > std::find_if is new in C++11 > > > And it was used in https://codereview.qt-project.org/125853/ in the 5.6 > > > which still does not require C++11. > > > > > > > > > > > > Apparently the CI does not try to build this with non-c++11 enabled > > > compilers? > > > > > > > > > > > > -- > > > Olivier > > > > > > > > > > > > Woboq - Qt services and support - https://woboq.com - > > > > https://code.woboq.org > > > > > ___ > > > Development mailing list > > > Development@qt-project.org > > > http://lists.qt-project.org/mailman/listinfo/development > > > ___ > > > Development mailing list > > > Development@qt-project.org > > > http://lists.qt-project.org/mailman/listinfo/development > > > > > > > > ___ > > Development mailing list > > Development@qt-project.org > > http://lists.qt-project.org/mailman/listinfo/development ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6
On Monday 18 January 2016 16:26:05 Olivier Goffart wrote: > On Montag, 18. Januar 2016 08:31:01 CET Rex Dieter wrote: > > I'm trying to build(bootstrap) qt-5.6.0-beta stack on rhel6, and have run > > into a build failure in qtdeclarative, > > > > > beta/tools/qmlimportscanner/main.cpp:376: error: no matching function for > > call to 'find_if(QList::const_iterator, > > std::find_if is new in C++11 > And it was used in https://codereview.qt-project.org/125853/ in the 5.6 > which still does not require C++11. > > Apparently the CI does not try to build this with non-c++11 enabled > compilers? We do build in -no-c++11, but apparently libstdc++ does not disable its C++11 functionality in C++98 mode. This should be reverted and rewritten using a simple loop. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6
Rex Dieter wrote: > I'm trying to build(bootstrap) qt-5.6.0-beta stack on rhel6, and have run > into a build failure in qtdeclarative, ... > Is this some platform/compiler issue? > > fwiw, using gcc-4.4.7-16.el6. It would appear that http://doc.qt.io/QtSupportedPlatforms/index.html references a newer compiler, part of https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/ Is that required for rhel6 support now? -- Rex ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
[Development] qtdeclarative-5.6.0-beta build failure on rhel6
I'm trying to build(bootstrap) qt-5.6.0-beta stack on rhel6, and have run into a build failure in qtdeclarative, make[2]: Entering directory `/builddir/build/BUILD/qtdeclarative-opensource- src-5.6.0-beta/x86_64-redhat-linux-gnu/tools/qmlimportscanner' g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions - fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++0x - fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_TSLIB - DQT_NO_LIBINPUT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII - DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE - D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_QMLDEVTOOLS_LIB -DQT_CORE_LIB - I/builddir/build/BUILD/qtdeclarative-opensource-src-5.6.0- beta/tools/qmlimportscanner -I. -I/builddir/build/BUILD/qtdeclarative- opensource-src-5.6.0-beta/include -I/builddir/build/BUILD/qtdeclarative- opensource-src-5.6.0-beta/include/QtQmlDevTools - I/builddir/build/BUILD/qtdeclarative-opensource-src-5.6.0- beta/include/QtQmlDevTools/5.6.0 -I/builddir/build/BUILD/qtdeclarative- opensource-src-5.6.0-beta/include/QtQmlDevTools/5.6.0/QtQmlDevTools - I../../include -I../../include/QtQmlDevTools -I/usr/include/qt5 - I/usr/include/qt5/QtCore -I.moc -I/usr/lib64/qt5/mkspecs/linux-g++ -o .obj/main.o /builddir/build/BUILD/qtdeclarative-opensource-src-5.6.0- beta/tools/qmlimportscanner/main.cpp /builddir/build/BUILD/qtdeclarative-opensource-src-5.6.0- beta/tools/qmlimportscanner/main.cpp: In function 'QVariantList findQmlImportsInDirectory(const QString&)': /builddir/build/BUILD/qtdeclarative-opensource-src-5.6.0- beta/tools/qmlimportscanner/main.cpp:376: error: no matching function for call to 'find_if(QList::const_iterator, QList::const_iterator, findQmlImportsInDirectory(const QString&)::isMetainfo)' /builddir/build/BUILD/qtdeclarative-opensource-src-5.6.0- beta/tools/qmlimportscanner/main.cpp:381: error: no matching function for call to 'find_if(QList::const_iterator, QList::const_iterator, findQmlImportsInDirectory(const QString&)::pathStartsWith)' Is this some platform/compiler issue? fwiw, using gcc-4.4.7-16.el6. full build log here, https://copr-be.cloud.fedoraproject.org/results/rdieter/Qt5-scratch/epel-6-x86_64/00154070-qt5-qtdeclarative/build.log.gz -- Rex ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
Re: [Development] qtdeclarative-5.6.0-beta build failure on rhel6
On Montag, 18. Januar 2016 08:31:01 CET Rex Dieter wrote: > I'm trying to build(bootstrap) qt-5.6.0-beta stack on rhel6, and have run > into a build failure in qtdeclarative, > beta/tools/qmlimportscanner/main.cpp:376: error: no matching function for > call to 'find_if(QList::const_iterator, std::find_if is new in C++11 And it was used in https://codereview.qt-project.org/125853/ in the 5.6 which still does not require C++11. Apparently the CI does not try to build this with non-c++11 enabled compilers? -- Olivier Woboq - Qt services and support - https://woboq.com - https://code.woboq.org ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development