Gentoo Archives: gentoo-user

From: "Christoph Böhmwalder" <christoph@×××××××××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] dev-qt/qtdeclarative fails to build
Date: Fri, 19 Jan 2018 23:42:20
Message-Id: 20180119234221.yohyob5k4riwvxtt@christoph-lap
In Reply to: Re: [gentoo-user] dev-qt/qtdeclarative fails to build by David Haller
1 On Sat, Jan 20, 2018 at 12:28:49AM +0100, David Haller wrote:
2 > Hello,
3 >
4 > On Fri, 19 Jan 2018, Christoph Böhmwalder wrote:
5 > >I tried building qtdeclarative-5.9.3 today, but the linker failed:
6 > >
7 > >$ cat build.log
8 > >g++-6.4.0 -Wl,-O1 -Wl,--as-needed -Wl,--enable-new-dtags -shared -o libparticlesplugin.so .obj/plugin.o
9 > >-L/var/tmp/portage/dev-qt/qtdeclarative-5.9.3/work/qtdeclarative-opensource-src-5.9.3/lib -lQt5QuickParti
10 > >cles -lQt5Quick -lQt5Qml -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread
11 > >/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/libQt5Gui.so:(*IND*+0x0): multiple definition of
12 > > `__bss_start'
13 > [..]
14 >
15 > From the build log it seems you have compiled Qt5Gui (etc.) with
16 > g++-7.2.0, and now try to use g++-6.4.0. I don't think that works.
17 Ah yeah, I forgot to turn that off. I have an env file that switches to
18 gcc-6.4.0 for use with old standalone packages that don't support 7.2.0
19 yet (I really don't use it anymore nowadays though).
20
21 > Try again using 7.2.0 (unless you want to recompile qt with 6.4.0
22 > again).
23 Anyways, this leads to the exact same error, so I'm inclined to think it
24 has nothing to do with gcc versions. I was however concerned about Qt versions
25 clashing (4 vs 5?).
26
27 In fact, I just double-checked qtchooser, and this is the output:
28
29 $ qtchooser -l
30 4
31 5
32 default
33 qt4-i686-pc-linux-gnu
34 qt4-x86_64-pc-linux-gnu
35 qt4
36 qt5-x86_64-pc-linux-gnu
37 qt5
38
39 Does this mean Qt4 is prioritized over Qt5? That would be a problem in
40 this case, right?
41
42 --
43 Regards,
44 Christoph