Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96008 - koffice-1.4.0_rc1 doesn't compile with gcc-686-pc-linux-gnu-3.4.4
Summary: koffice-1.4.0_rc1 doesn't compile with gcc-686-pc-linux-gnu-3.4.4
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Other
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-13 13:18 UTC by Thomas Schlesinger
Modified: 2005-06-16 08:33 UTC (History)
0 users

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 Thomas Schlesinger 2005-06-13 13:18:56 UTC
After a while, emerging koffice 1.4rc1 stops with this error: 
 
/bin/sh ../../../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++  
-Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W 
-Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -march=pentium-m 
-fomit-frame-pointer -Wformat-security -Wmissing-format-attribute 
-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE 
-DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION 
-DHAVE_KNEWSTUFF    -o libmswordimport.la -rpath /usr/lib/kde3 -module 
-avoid-version -module -no-undefined -Wl,--no-undefined 
-Wl,--allow-shlib-undefined -R /usr/lib -R /usr/kde/3.4/lib -R /usr/qt/3/lib 
-R /usr/lib  mswordimport.lo document.lo conversion.lo texthandler.lo 
tablehandler.lo 
graphicshandler.lo ../../../lib/kofficeui/libkofficeui.la ../../../lib/kofficecore/libkofficecore.la ../../../lib/store/libkstore.la 
-L/usr/lib -lwv2 -lgsf-1 -lgobject-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0 
.libs/mswordimport.o: In function `MSWordImport::convert(QCString const&, 
QCString const&)': 
mswordimport.cpp:(.text+0x9d9): undefined reference to 
`std::basic_string<char, std::char_traits<char>, std::allocator<char> 
>::_Rep::_S_empty_rep_storage' 
mswordimport.cpp:(.text+0xd99): undefined reference to 
`__gnu_cxx::__exchange_and_add(int volatile*, int)' 
collect2: ld returned 1 exit status 
make[4]: *** [libmswordimport.la] Fehler 1 
make[4]: Leaving directory 
`/var/tmp/portage/koffice-1.4.0_rc1/work/koffice-1.3.98/filters/kword/msword' 
make[3]: *** [all-recursive] Fehler 1 
make[3]: Leaving directory 
`/var/tmp/portage/koffice-1.4.0_rc1/work/koffice-1.3.98/filters/kword' 
make[2]: *** [all-recursive] Fehler 1 
make[2]: Leaving directory 
`/var/tmp/portage/koffice-1.4.0_rc1/work/koffice-1.3.98/filters' 
make[1]: *** [all-recursive] Fehler 1 
make[1]: Leaving directory 
`/var/tmp/portage/koffice-1.4.0_rc1/work/koffice-1.3.98' 
make: *** [all] Fehler 2 
 
!!! ERROR: app-office/koffice-1.4.0_rc1 failed. 
!!! Function kde_src_compile, Line 166, Exitcode 2 

Reproducible: Always
Steps to Reproduce:
1. gcc-config to i686-pc-linux-gnu-3.4.4  
2. emerge koffice-1.4.0_rc1 
  
Actual Results:  
see "Details" 

Expected Results:  
koffice should compile 

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 
2.6.11-gentoo-r9 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1.73GHz 
Gentoo Base System version 1.6.12 
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.4 [enabled] 
dev-lang/python:     2.3.5, 2.4.1 
sys-apps/sandbox:    1.2.8 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.18 
virtual/os-headers:  2.6.11-r1 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O3 -march=pentium-m -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-O3 -march=pentium-m -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig ccache distlocks prelink sandbox sfperms strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
LANG="de_DE" 
LINGUAS="de" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd 
emboss encode esd fam foomaticdb fortran gdbm gif gpm gstreamer gtk2 guile 
imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad mikmod motif mp3 
mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt 
quicktime readline samba sdl spell sqlite ssl tcltk tcpd tetex tiff truetype 
truetype-fonts type1-fonts vorbis xine xml2 xmms xv zeroconf zlib linguas_de 
userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2005-06-13 13:38:48 UTC
Please disable ccache, clean /var/tmp/portage and try again, there are chances 
that the error will disappear... 

*** This bug has been marked as a duplicate of 69475 ***
Comment 2 Thomas Schlesinger 2005-06-14 05:09:43 UTC
Disabling ccache in the make.conf and cleaning /var/tmp/portage doesn't help 
for me. I get always an error. I've tried an "emerge koffice-meta" and run into 
an error, too:  
  
/bin/sh ../../../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++   
-Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500  
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W  
-Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -march=pentium-m  
-fomit-frame-pointer -Wformat-security -Wmissing-format-attribute  
-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE  
-DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o  
libmswordimport.la -rpath /usr/lib/kde3 -module -avoid-version -module  
-no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/lib  
-R /usr/kde/3.4/lib -R /usr/qt/3/lib -R /usr/lib  mswordimport.lo document.lo  
conversion.lo texthandler.lo tablehandler.lo  
graphicshandler.lo ../../../lib/kofficeui/libkofficeui.la ../../../lib/kofficecore/libkofficecore.la ../../../lib/store/libkstore.la  
-L/usr/lib -lwv2 -lgsf-1 -lgobject-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0  
.libs/mswordimport.o: In function `MSWordImport::convert(QCString const&,  
QCString const&)':  
mswordimport.cpp:(.text+0x9d9): undefined reference to `std::basic_string<char,  
std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'  
mswordimport.cpp:(.text+0xd99): undefined reference to  
`__gnu_cxx::__exchange_and_add(int volatile*, int)'  
collect2: ld returned 1 exit status  
make[4]: *** [libmswordimport.la] Fehler 1  
  
Comment 3 Thomas Schlesinger 2005-06-14 05:28:52 UTC
I'll check, if the other components of koffice-meta will build without problems 
and if so, I'll try to compile the failing kword without march=pentium-m. 
Comment 4 Thomas Schlesinger 2005-06-14 08:13:22 UTC
All other components except kword are emerging well, but emerging kword shows 
always the same error. Using march="pentium-m" or not doesn't make a 
difference. 
Comment 5 Thomas Schlesinger 2005-06-14 11:46:25 UTC
I could compile kword finally, but with gcc i686-pc-linux-gnu-3.3.5, not with 
gcc-686-pc-linux-gnu-3.4.4.  
Comment 6 Thomas Schlesinger 2005-06-14 14:00:22 UTC
I close this bug now, as gcc 3.4.4 is not the default gcc version used by  
Gentoo. Who has the problem, can find the solution here. 
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2005-06-14 14:38:51 UTC
Well, it's not fixed.
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2005-06-14 14:43:57 UTC
Thomas: I bet the problem is mixing gcc-3.3 and 3.4. Their C++ ABI differs. When
you upgrade, you have to rebuild all C++ stuff on your box, otherwise you see
such breakages. 

When you want to stay with gcc-3.3, run `revdep-rebuild --soname
libstdc++.so.6`,  in case of gcc-3.4 `revdep-rebuild --soname libstdc++.so.5`
Comment 9 Thomas Schlesinger 2005-06-15 00:53:36 UTC
Which package must I emerge to have revdep-rebuild on my machine? 
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-15 02:36:59 UTC
app-portage/gentoolkit is what you need. 
Comment 11 Thomas Schlesinger 2005-06-16 08:33:40 UTC
Ok, after revdep-rebuild re-emerged dozens of packages, koffice-1.4.0_rc1 built 
fine with gcc 3.4.4. 
 
Thanks for your support!