<div>05.02.2016, 19:12, "Kevin Funk" <kfunk@kde.org>:</div><blockquote type="cite"><p>On Friday, February 05, 2016 06:40:06 PM Alexander Zhigalin wrote:</p><blockquote> * Upgrading to a newer GCC<br /> I have a Kubuntu 14.04, so the gcc version is 4.8.<br /> Raw string literals were implemented in gcc 4.5.</blockquote><p><br />Indeed. That should be recent enough.<br /><br />Please try to play around with the code a bit more. I.e. replace the <br />QByteArrayLiteral with a QByteArray. Maybe this is a corner-case where we hit <br />a GCC bug, I don't know.</p></blockquote><div> </div><div>This one worked, thanks.</div><div> </div><blockquote type="cite"><p><br /><br /></p><blockquote> * Switching to Clang<br /> I'm using kdesrc-build, is there a way to do it?</blockquote><p><br />Switching is easy:<br /><br />$ export CC=clang<br />$ export CXX=clang++<br />$ kdesrc-build --refresh-build ...<br /><br />For a more persistent compiler switch, use this: <br />  <a href="http://stackoverflow.com/a/30742451">http://stackoverflow.com/a/30742451</a><br /><br />Please report back.</p></blockquote><div>Even more errors with clang.</div><div> </div><blockquote type="cite"><p><br /><br />Cheers,<br />Kevin<br /><br /></p><blockquote> 05.02.2016, 13:06, "Kevin Funk" <<a href="mailto:kfunk@kde.org">kfunk@kde.org</a>>:<br /> On Thursday, February 04, 2016 11:55:04 PM Alexander Zhigalin wrote:<br /><br />  Hi all!<br />  I'm trying to get the latest kdev on my Kubuntu 14.04<br />  I was following the instructions from TechBase, compiling qt5 and running<br />  kdesrc-build. The whole thing was building well, except for (such<br />  misfortune!) kdevplatform! The configuration was done,<br />  but while building I<br />  got this:<br /><br /> Heya,<br /><br /> might be that your compiler is outdated (doesn't handle C++11 raw string<br /> literals(?)). What version are you using?<br /><br /> Try:<br /> * Switching to Clang<br /> * Upgrading to a newer GCC<br /><br /> Cheers,<br /> Kevin<br /><br /><br />  [ 85%] Building CXX object<br />  shell/tests/CMakeFiles/test_detectedproblem.dir/test_detectedproblem.cpp.o<br />  Building CXX object<br />  shell/tests/CMakeFiles/test_checkerstatus.dir/test_checkerstatus.cpp.o [<br />  85%] Built target test_duchain<br />  In file included from<br />  /home/z/src/kdevelop/qt5/qtbase/include/QtCore/qbytearray.h:1:0, from<br />  /home/z/src/kdevelop/qt5/qtbase/include/QtCore/../../src/corelib/tools/qstr<br /> ing.h:42, from /home/z/src/kdevelop/qt5/qtbase/include/QtCore/qstring.h:1,<br /> from<br />  /home/z/src/kdevelop/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qob<br /> ject.h:41, from /home/z/src/kdevelop/qt5/qtbase/include/QtCore/qobject.h:1,<br /> from /home/z/src/kdevelop/qt5/qtbase/include/QtCore/QObject:1, from<br /> /home/z/src/kdevelop/kde/src/extragear/kdevelop/kdevplatform/language/ducha<br /> in/tests/test_stringhelpers.h:25, from<br />  /home/z/src/kdevelop/kde/src/extragear/kdevelop/kdevplatform/language/ducha<br /> in/tests/test_stringhelpers.cpp:22:<br />  /home/z/src/kdevelop/kde/src/extragear/kdevelop/kdevplatform/language/ducha<br /> in/tests/test_stringhelpers.cpp: In lambda function:<br />  /home/z/src/kdevelop/qt5/qtbase/include/QtCore/../../src/corelib/tools/qbyt<br /> earray.h:141:9: error: expected primary-expression before ‘enum’ enum {<br /> Size = sizeof(str) - 1 }; \<br />           ^<br />  /home/z/src/kdevelop/kde/src/extragear/kdevelop/kdevplatform/language/ducha<br /> i n/tests/test_stringhelpers.cpp:54:23: note: in expansion of macro<br /> ‘QByteArrayLiteral’ formatComment(QByteArrayLiteral(R"(<br />                         ^<br />  /home/z/src/kdevelop/qt5/qtbase/include/QtCore/../../src/corelib/tools/qbyt<br /> e array.h:141:9: error: expected ‘;’ before ‘enum’ enum { Size = sizeof(str)<br /> - 1 }; \<br />           ^<br />  /home/z/src/kdevelop/kde/src/extragear/kdevelop/kdevplatform/language/ducha<br /> i n/tests/test_stringhelpers.cpp:54:23: note: in expansion of macro<br /> ‘QByteArrayLiteral’ formatComment(QByteArrayLiteral(R"(<br />                         ^<br />  /home/z/src/kdevelop/kde/src/extragear/kdevelop/kdevplatform/language/ducha<br /> i n/tests/test_stringhelpers.cpp: In member function ‘void<br />  TestDUChain::benchFormatComment()’:<br />  /home/z/src/kdevelop/kde/src/extragear/kdevelop/kdevplatform/language/ducha<br /> in/tests/test_stringhelpers.cpp:62:5: error: expected ‘)’ before ‘}’ token<br /> } ^<br />  /home/z/src/kdevelop/kde/src/extragear/kdevelop/kdevplatform/language/ducha<br /> i n/tests/test_stringhelpers.cpp:62:5: error: expected ‘;’ before ‘}’ token<br /> I have checked the KDE CI and kdevplatfor seems to build well.<br />  Here is the full build log: <a href="https://paste.kde.org/p4kp1bsof">https://paste.kde.org/p4kp1bsof</a><br />  Any ideas here?<br />  Thanks in advance for help.<br /><br />  --<br />  Alexander Zhigalin - DevOps<br /><br /><br /><br /> --<br /> Kevin Funk | <a href="mailto:kfunk@kde.org">kfunk@kde.org</a> | <a href="http://kfunk.org/">http://kfunk.org</a><br /><br /><br /> --<br /> Alexander Zhigalin - DevOps<br /><br /></blockquote><p> </p><span>-- <br />Kevin Funk | <a href="mailto:kfunk@kde.org">kfunk@kde.org</a> | <a href="http://kfunk.org/">http://kfunk.org</a><br /></span></blockquote><div> </div><div> </div><div>--</div><div>Alexander Zhigalin - <span style="color:#0000ff;">DevOps</span></div><div> </div>