Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560398 - dev-qt/qt-creator-3.5.0[-clang] : Cannot find Clang shared library in /usr/lib(64)
Summary: dev-qt/qt-creator-3.5.0[-clang] : Cannot find Clang shared library in /usr/li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Davide Pesavento
URL:
Whiteboard:
Keywords:
: 561054 562860 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-14 04:47 UTC by jorgicio
Modified: 2015-10-18 01:44 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The build log (build-qtcreator-3.5.0-tail.log,8.38 KB, text/x-log)
2015-09-14 04:50 UTC, jorgicio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jorgicio 2015-09-14 04:47:15 UTC
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
Comment 1 jorgicio 2015-09-14 04:50:31 UTC
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.
Comment 2 rx80 2015-09-14 14:59:37 UTC
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
Comment 3 Cyril 2015-09-14 18:34:35 UTC
(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.
Comment 4 jorgicio 2015-09-15 04:23:13 UTC
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.
Comment 5 Cyril 2015-09-15 05:44:32 UTC
(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.
Comment 6 Kobboi 2015-09-19 08:27:15 UTC
Same here
Comment 7 Uladzimir Bely 2015-09-19 08:33:00 UTC
(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.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2015-09-20 21:18:02 UTC
Can someone attach a *full* build.log please?
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2015-09-20 22:29:42 UTC
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.
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2015-09-21 16:57:29 UTC
*** Bug 561054 has been marked as a duplicate of this bug. ***
Comment 11 Davide Pesavento (RETIRED) gentoo-dev 2015-09-21 17:01:08 UTC
The duplicate bug has a full build log. The problem is that we try to build src/tools/clangbackend even with USE=-clang
Comment 12 Toralf Förster gentoo-dev 2015-09-21 18:26:39 UTC
(In reply to Davide Pesavento from comment #11)
> The duplicate bug has a full build log.
*That*s the goal of my tinderbox :-)
Comment 13 luca.penasa 2015-10-02 12:06:13 UTC
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.
Comment 14 Davide Pesavento (RETIRED) gentoo-dev 2015-10-13 17:28:33 UTC
*** Bug 562860 has been marked as a duplicate of this bug. ***
Comment 15 Davide Pesavento (RETIRED) gentoo-dev 2015-10-18 01:44:12 UTC
Fixed in 3.5.1