Hi! As qt-creator 3.5.0 bumped, I noticed it comes with fails. Well, I found one. I'll attach the log to show what happened. Reproducible: Always
Created attachment 411872 [details] The build log This happens when I tried to compile dev-qt/qt-creator-3.5.0 Note: log tailed because of its size.
relevant error message: Project ERROR: Cannot find Clang shared library in /usr/lib Makefile:224: recipe for target 'sub-clangbackend-make_first' failed make[2]: *** [sub-clangbackend-make_first] Error 3 make[2]: Leaving directory '/var/tmp/portage/dev-qt/qt-creator-3.5.0/work/qt-creator-opensource-src-3.5.0/src/tools' Makefile:174: recipe for target 'sub-tools-make_first-ordered' failed make[1]: *** [sub-tools-make_first-ordered] Error 2 make[1]: Leaving directory '/var/tmp/portage/dev-qt/qt-creator-3.5.0/work/qt-creator-opensource-src-3.5.0/src' Makefile:43: recipe for target 'sub-src-make_first-ordered' failed make: *** [sub-src-make_first-ordered] Error 2 it tries to build a clang backend aparently: cd clangbackend/ && ( test -e Makefile || /usr/lib64/qt5/bin/qmake /var/tmp/portage/dev-qt/qt-creator-3.5.0/work/qt-creator-opensource-src-3.5.0/src/tools/clangbackend/clangbackend.pro
(In reply to rx80 from comment #2) > relevant error message: > Project ERROR: Cannot find Clang shared library in /usr/lib > Makefile:224: recipe for target 'sub-clangbackend-make_first' failed > make[2]: *** [sub-clangbackend-make_first] Error 3 > make[2]: Leaving directory > '/var/tmp/portage/dev-qt/qt-creator-3.5.0/work/qt-creator-opensource-src-3.5. > 0/src/tools' > Makefile:174: recipe for target 'sub-tools-make_first-ordered' failed > make[1]: *** [sub-tools-make_first-ordered] Error 2 > make[1]: Leaving directory > '/var/tmp/portage/dev-qt/qt-creator-3.5.0/work/qt-creator-opensource-src-3.5. > 0/src' > Makefile:43: recipe for target 'sub-src-make_first-ordered' failed > make: *** [sub-src-make_first-ordered] Error 2 > > > it tries to build a clang backend aparently: > > cd clangbackend/ && ( test -e Makefile || /usr/lib64/qt5/bin/qmake > /var/tmp/portage/dev-qt/qt-creator-3.5.0/work/qt-creator-opensource-src-3.5. > 0/src/tools/clangbackend/clangbackend.pro I can confirm, with USE="clang" qt-creator build fine.
I also confirm too, compiled with USE="clang" works. However, I think there must be a solution for those don't want to use it. However, if Qt developers want to definitely drop GCC in favor of Clang, well... nothing to do.
(In reply to jorgicio from comment #4) > I also confirm too, compiled with USE="clang" works. However, I think there > must be a solution for those don't want to use it. > However, if Qt developers want to definitely drop GCC in favor of Clang, > well... nothing to do. I don't think so. qtcreator use clang in code-model for autocompletion, highlight code and beautifier (and more). http://blog.qt.io/blog/2011/10/19/qt-creator-and-clang/ You can also use clang in a kit to compile your code.
Same here
(In reply to jorgicio from comment #4) > I also confirm too, compiled with USE="clang" works. Maybe you use ~arch globally. I've also got build error so enabled "clang" USE. But it's not compiled because of "Project ERROR: LLVM/Clang version >= 3.6.0 required, version provided: 3.5.0" At the moment qt-creator-3.5.0 depends on clang >= 3.2 and it seems this version should be bumped.
Can someone attach a *full* build.log please?
According to src/shared/clang/clang_installation.pri, clang >= 3.6.0 is required. I raised the dependency in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b17f9efb554c4c86cadcd46f8319bb81c52db8d However there might be another bug related to src/tools/clangbackend so I still need a full build log.
*** Bug 561054 has been marked as a duplicate of this bug. ***
The duplicate bug has a full build log. The problem is that we try to build src/tools/clangbackend even with USE=-clang
(In reply to Davide Pesavento from comment #11) > The duplicate bug has a full build log. *That*s the goal of my tinderbox :-)
Same/similar problem here. compiling dev-qt/qt-creator-3.5.0 the build fails with error: Project ERROR: LLVM/Clang version >= 3.6.0 required, version provided: 3.5.0 Makefile:224: recipe for target 'sub-clangbackend-make_first' failed make[2]: *** [sub-clangbackend-make_first] Error 3 make[2]: *** Waiting for unfinished jobs.... clang is installed but it looks like qt-creator ebuild is not forcing the right dependency of clang, that should be >=3.6 As somebody said, this also happens when using -clang flag.
*** Bug 562860 has been marked as a duplicate of this bug. ***
Fixed in 3.5.1