Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12538 - kdelibs-3.0.5a emerge fails (broken qt-3.1.1)
Summary: kdelibs-3.0.5a emerge fails (broken qt-3.1.1)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 12547 12574 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-21 18:03 UTC by Peter Ruskin
Modified: 2003-04-15 07:34 UTC (History)
9 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Ruskin 2002-12-21 18:03:32 UTC
rm -f katehledit_attrib_skel.cpp
echo '#include <klocale.h>' > katehledit_attrib_skel.cpp
/usr/qt/3/bin/uic -L /usr/kde/3/lib/kde3/plugins/designer -nounload -tr tr2i18n
-i katehledit_attrib_skel.h ./katehledit_attrib_skel.ui >
katehledit_attrib_skel.cpp.temp ; ret=$?; \
sed -e "s,tr2i18n( \"\" ),QString::null,g" katehledit_attrib_skel.cpp.temp | sed
-e "s,tr2i18n( \"\"\, \"\" ),QString::null,g" | sed -e
"s,image\([0-9][0-9]*\)_data,img\1_katehledit_attrib_skel,g" >>
katehledit_attrib_skel.cpp ;\
rm -f katehledit_attrib_skel.cpp.temp ;\
if test "$ret" = 0; then echo '#include "katehledit_attrib_skel.moc"' >>
katehledit_attrib_skel.cpp; else rm -f katehledit_attrib_skel.cpp ; exit $ret ; fi
uic: dl-close.c:230: _dl_close: Assertion `imap->l_type == lt_loaded ||
imap->l_opencount > 0' failed.
make[3]: *** [katehledit_attrib_skel.cpp] Error 134
make[3]: Leaving directory
`/var/tmp/portage/kdelibs-3.0.5a/work/kdelibs-3.0.5a/kate/part'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/kdelibs-3.0.5a/work/kdelibs-3.0.5a/kate'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.0.5a/work/kdelibs-3.0.5a'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.0.5a failed.
!!! Function kde_src_compile, Line 88, Exitcode 2
!!! died running emake, kde_src_compile:make

AUTOCLEAN="true"
CFLAGS="-O3 -mcpu=athlon-xp -march=athlon-xp -pipe -mmmx -m3dnow -msse "
DEBUGBUILD="false"
FTP_PROXY=""
HTTP_PROXY=""
PORTDIR_OVERLAY=""
RSYNC_PROXY=""
USE="doc dvd fbcon innodb maildir mbox nocardbus odbc samba slp sse tiff wmf
-crypt -motif"
ACCEPT_KEYWORDS="~x86"
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-12-22 05:04:57 UTC
Are you using qt 3.1.1? If so it's a known issue and I'm just about to commit a qt 3.1.1-r1 ebuild that will hopefully fix it. 
Comment 2 Peter Ruskin 2002-12-22 05:10:00 UTC
Yes, Qt-3.1.1.  I'll wait for your -r1 and retry.  Thanks Dan.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2002-12-22 14:02:54 UTC
*** Bug 12574 has been marked as a duplicate of this bug. ***
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2002-12-22 14:21:00 UTC
*** Bug 12547 has been marked as a duplicate of this bug. ***
Comment 5 Dan Armak (RETIRED) gentoo-dev 2002-12-22 15:13:07 UTC
Bad news... seems the stl support in qt is responsible. When disabled thins work 
fine. Of course if we disable stl support in the qt ebuilds all kdelibs versions installed 
will have to be recompiled :-/ 
 
Since this appeared only in qt 3.1.1 it can be classified as a qt bug. I'm masking qt 
3.1.1 until this is resolved. 
Comment 6 Yoo, Taik-Yon 2002-12-23 09:26:44 UTC
Script must be changed like below.

line3: /usr/qt/3/bin/uic -L /usr/kde/3/lib/kde3/plugins/designer -nounload -tr
tr2i18n -i katehledit_attrib_skel.h ./katehledit_attrib_skel.ui >
katehledit_attrib_skel.cpp.temp ; ret=$?; \

==> /usr/qt/3/bin/uic -nounload -tr tr2i18n -i katehledit_attrib_skel.h
./katehledit_attrib_skel.ui > katehledit_attrib_skel.cpp.temp ; ret=$?; \

Remove "-L /usr/kde/3/lib/kde3/plugins/designer" option from script. It is all.
Test it!!
Comment 7 Dan Armak (RETIRED) gentoo-dev 2002-12-23 13:52:11 UTC
This doesn't work here, it still segfaults... Although I do have a rather unorthodox testing setup... Also even if it did work it would not be a real fix; the -L parameter is essential in some situations, and in any case I want to find out the real cause of the problem. 
Comment 8 Yoo, Taik-Yon 2002-12-23 19:52:06 UTC
Too bad. But that is good for me.
My CFLAGS is "-mcpu=i686 -O3 -pipe". It is same as default CFLAGS.
I think that on compile time, /usr/kde/3/lib/kde3/plugins/designer directory 
contained wrong binary.
So, uic compiler goes to segmentation fault.

Test environment:
gcc-3.2.1, qt-3.1.1, kernel-header-2.4.19, glibc-2.3.1
Comment 9 Christian Parpart (RETIRED) gentoo-dev 2002-12-26 11:58:01 UTC
on my side, qt-3.1.1 is working fine, too. I'm running gcc-3.2.1-r6
with C[XX]FLAGS="-march=athlon-xp -O3 -pipe" and KDE from CVS HEAD, no segfaults
here.

Greets,
Christian Parpart.
Comment 10 Jon Nials 2002-12-29 02:57:53 UTC
Hate to tell you this, but I get the same problem and my QT is not 3.1.1.

Here is the output of qpkg -I -v qt

jnials@gentoo lib $ qpkg -I -v qt
x11-libs/qt-2.3.2-r1 *
x11-libs/qt-3.0.5-r2 *
x11-libs/qt-3.1.0-r1 *
net-print/qtcups-2.0-r1 *

So I have not got 3.1.1 installed.

And here are my (very minimal) CFLAGS:
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
Comment 11 Mark Tlay 2002-12-30 08:38:35 UTC
I get the following error emerging kdelibs-3.0.5a:

(snip)
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../libltdl -I../kdecore -I../kdeui
-I../kio -I../kio/kio -I../kio/kfile -I/usr/qt/3/include -I/usr/X11R6/include
-I/usr/kde/3/include -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG -DNO_DEBUG -O2
-march=athlon -mcpu=athlon -O3 -pipe -fno-exceptions -fno-check-new
-DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -c
kstdaccel.cpp  -fPIC -DPIC -o .libs/kstdaccel.o
kaccelbase.cpp: In member function `KAccelAction* KAccelBase::actionPtr(const 
   KKey&)':
kaccelbase.cpp:85: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[3]: *** [kaccelbase.lo] Error 1
(snip)

I'm using qt-3.1.0-r1.
Comment 12 Jon Nials 2003-01-02 13:41:53 UTC
Late breaking information for this bug.  I have had a successful compile with -O
instead of -O3 in my CFLAGS.  Now I'm trying it with -O2.  I'm starting to
suspect that it might be a compiler bug.......
Comment 13 Quequero 2003-01-02 17:44:46 UTC
I've compiled successfully kde-3.0.5a with these flags:
CFLAGS="-march=pentium2 -O3 -pipe" 
with qt 3.1.0-r1.
Anyway i CAN'T compile it on the other pc that uses these flags:
CFLAGS="-
march=athlon-xp -mcpu=athlon-xp -O3 -pipe" with qt 3.1.0-r1,
so it could be a specific athlon 
optimization problem....
Que
Comment 14 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-03 04:25:24 UTC
Quequero, Jon Nials: which gcc do you use? 3.2? iirc these athlon-optimiztion bugs 
are gone in 3.2.1. 
 
Mark Tlay: please submit a new bug report with your error. 
Comment 15 Quequero 2003-01-03 09:12:02 UTC
No i'm not using 3.2, i'm using:
gcc version 3.2.1 20021207 (Gentoo Linux 3.2.1-
20021207)

Que :)
Comment 16 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-06 03:12:21 UTC
Quequero: please post the output of 'emerge -s ^gcc$ | grep installed'. 
Comment 17 Quequero 2003-01-06 10:41:47 UTC
Rotfl i know what version i'm running ;ppppppp btw here you are:

quequero@panther:~% emerge -
s ^gcc$ | grep installed
      Latest version installed: 3.2.1-r6

;p
Que :)
Comment 18 Raul Fernandes 2003-01-07 06:04:12 UTC
In the KDE documentation (http://developer.kde.org/build/compile_kde3_0.html), I've 
found that the qt should be compiled with: 
./configure -system-zlib -qt-gif -system-libpng \  
-system-libjpeg -plugin-imgfmt-mng -thread -no-stl \  
-no-xinerama -no-g++-exceptions 
The qt should be compiled without -stl. Why you are using this option?? 
In the ebuild, the options -no-g++-exceptions and -no-xinerama doesn't exist. Use 
-no-g++-exceptions if using gcc (our case) and -no-xinerama if not using xinerama 
(maybe another USE option??). The option -no-g++-exceptions optimizes the qt. 
Why don't add it?? 
Comment 19 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-07 06:40:49 UTC
Raul: thanks for your comment, about xinerama please look at bug #12371. 
no-g++-exceptions should be added to qt ebuilds (will do this soon). 
 
Quequero: once again a stupid question: you get exactly the same error as reported 
in this bug? please try to compile qt without stl and look if you get the same error 
again. 
Comment 20 Quequero 2003-01-07 09:08:41 UTC
Ok problem seems to be resolved if i use Qt 3.1.0.
Anyway WITHOUT `-stl` and WITH Qt 3.1.1 i get the 
same error :(( 
But if i use `-stl` it seems to work fine...  :))

So...
Qt 3.1.1 with `-stl` -> 
Works
Qt 3.1.1 without `-stl` -> Doesn't Works
Qt 3.1.0 without `-stl` -> Works fine

I hope 
this could help you, thanx again (anyway now i'm using
kde 3.0.5 with Qt 3.1.0 both on Intel and 
Amd)

Que
Comment 21 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-07 10:15:37 UTC
Quequero: in comment #13 you said kdelibs doesn't compile with qt-3.1.0-r1 
and mcpu=athlon-xp? 
 
also, the options should be -stl and -no-stl (which are passed to qts configure)... 
please fill out such a table ;) 
		stl	no-stl 
qt-3.1.0 
qt-3.1.1 
 
anyway, thanks a lot for testing :) 
Comment 22 Quequero 2003-01-07 11:45:54 UTC
I've done a real mess, i'm sorry because there is an error in comment #13, the correct version 
is:

kdelibs doesn't compile with qt-3.1.1 and mcpu=athlon-xp
anyways it works fine with qt-
3.1.0-r1 on both pentium2 and athlon-xp...

So i'll try to recompile kdelibs with -no-stl and i'll 
fill the table ;ppp
I'm really sorry for my error. :)))
Thanx for patience ;p (the cpu just told 
me that it will kill me a day or another ;)

Que
Comment 23 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-08 12:14:52 UTC
Raul: no-g++-exceptions is added to qt's configure if DEBUG isn't set, so everything 
besides from configuring with/without stl should be fine (no need for a new bug 
report) ;). 
sorry that i was mistaken about no-g++-exceptions. 
Comment 24 Raul Fernandes 2003-01-09 15:52:48 UTC
I think that the option -no-g++-exceptions has changed. When I run ./configure  
--help (qt-3.1.1), I see this:  
  
    -no-exceptions ..... Disable exceptions on platforms that support it.  
  
About -stl, if this options don't break things in kde and don't make the code slow, it's  
fine. Maybe the kde documentation is outdated.  
About xinerama, the bug #12371 is marked as fixed. IMHO, another flag is not a  
problem. This distribution is to advanced users, isn't?? Advanced users don't worry  
about too many options. This is great. This make the system more customized. This is  
what I want and, IMHO, what advanced users want too. Does -xinerama flag make  
the code slower?? Are you sure?? Xinerama is a option in XFree too, isn't??? I  
think this deserves a new USE flag. Why makes a option the default if only a few  
users will use this?? Only a few users use 2 monitors. What do you think??  
Comment 25 Raul Fernandes 2003-01-09 16:03:38 UTC
I have compiled qt-3.1.1 with -no-stl and -no-xinerama and it works fine. Actually, it 
is what I use in my system with kde-3.2_rc6. 
CFLAGS="-mcpu=athlon -O2 -pipe" 
CXXFLAGS=$CFLAGS 
I have only a problem. When I compile the other kde packages (kdemultimedia, 
kdenetwork ...) the emerge fails (can't find libqt-mt). I have put /usr/qt/3/lib in 
/etc/ld.so.conf, ldconfig and works fine. But this is only a workaround. Anybody else 
have the same problem?? 
Sorry for the -no-g++-exceptions. I haven't seen this option. 
Comment 26 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-14 11:06:57 UTC
Raul: please submit a new bugreport with "new use var: xinerama" in the summary, 
refer to this bug and 12371. 
 
about your can't find libqt-mt: there is also a bug about that, bug #13489. 
 
thanks. 
Comment 27 Joshua Kinard gentoo-dev 2003-01-31 04:19:39 UTC
I thought I'd add to this report to mention that adding -no-stl and -no-xinerama to the qt-3.1.1-r1 ebuild indeed works for me.  I have successfully built kde-3.1-r1 on sparc (Sun Blade 100), and all works great.  I have no idea what this "stl" thing is, but unless it affects other things that rely on Qt, it looks like it would be safe to exclude it from building so KDE will play nice.
Comment 28 Michele Balistreri (RETIRED) gentoo-dev 2003-02-28 05:46:12 UTC
sure that's a qt bug? compiling kde 3.1 with qt-3.1.1 just works fine, who still need 
kde 3.0.5? and who need it has already complied it no? 
Comment 29 Dan Armak (RETIRED) gentoo-dev 2003-04-15 07:23:32 UTC
I believe qt 3.1.2 has no problems of this kind anymore, just like 3.1.0 didn't.