Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7087 - emerge kdemultimedia fails with gcc and g++ 3.2
Summary: emerge kdemultimedia fails with gcc and g++ 3.2
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Matthew Kennedy (RETIRED)
Depends on:
Reported: 2002-08-26 20:06 UTC by Mark
Modified: 2003-02-04 19:42 UTC (History)
0 users

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

output of emerge kdemultimedia with gcc 3.2 (kdemultimedia-error,3.36 KB, text/plain)
2002-08-26 20:07 UTC, Mark

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2002-08-26 20:06:48 UTC
Same goes for kdeaddons etc.
please also look at bug 6878
output of emerge in attachment

CFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -frerun-loop-opt -frerun-cse-after-loop"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -frerun-loop-opt -frerun-cse-after-loop -Wno-deprecated"

gcc -v:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: /var/tmp/portage/gcc-3.2/work/gcc-3.2/configure --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info --enable-shared
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i686-pc-linux-gnu
--with-system-zlib --enable-languages=c,c++,ada,f77,objc,java
--enable-threads=posix --enable-long-long --disable-checking
--enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit
--with-gxx-include-dir=/usr/include/g++-v32 --with-local-prefix=/usr/local
--enable-shared --enable-nls --without-included-gettext
Thread model: posix
gcc version 3.2
Comment 1 Mark 2002-08-26 20:07:47 UTC
Created attachment 3459 [details]
output of emerge kdemultimedia with gcc 3.2
Comment 2 Nicholas Wourms 2002-08-27 04:35:44 UTC
Ditch all that crap after the -pipe and try again.  Some of those optimizations
are *experimental* and obviously won't work with every piece of code.  I mean do
you actually know what these optimizations do??  For instance, if you use
-funroll-loops you don't need to use -frerun-cse-after-loop because it is
already implied.  More than likely you are confusing the compiler, thus the
compiler craps out.  If you insist on having some of them, then experiment by
removing one at a time and see what happens.  My suggestion would be to start
with dumping "-funroll-loops -frerun-loop-opt -frerun-cse-after-loop", as these
are not intended for general, everyday use.  They should only be used when you
know what you are doing and the code can handle it(this is covered in the gcc
manual BTW).  I don't know who told you to use them [because I know these aren't
suggested by the gentoo documentation], but they were wrong.  Proof in point is
the fact that I have no issues building any of the kde packages with gcc-3.2 and
"-march=athlon-xp -O3 -pipe".
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2002-08-27 10:02:00 UTC
if you can isolate which compiler optimization flags cause the build to break,
let me know and I'll filter them from within the ebuild.

Comment 4 Mark 2002-08-27 10:13:00 UTC
Nicholas: your method does not work -- it still fails. I'll see if it's a
qt-problem. In the mean time, please look at bug 6878.

Comment 5 Nicholas Wourms 2002-08-27 16:20:45 UTC
I guess somehow my configuration differs?  FWIW, I knew gcc-3.2 was gonna be
trouble, so I nuked my system when gcc-3.2 went final and rebuilt based on it. 
However, bug 7071 does cause some concern, but I suppose it is resolved.
Comment 6 Mark 2002-08-29 06:31:15 UTC
This night I have recompiled a lot (using rmerge2 and the -e -f option -- great
tool!), but still it does not work. besides errors like loading extension from
'/usr/kde/3/lib/' failed: cannot open
shared object file: No such file or directory (when trying to run artsd), the
emerge process probibly gives a bit more info now.

*note: this is another output, it differs from the attachment!!

-- // --

/bin/install -c -p -m 644 ./piano+guitar /var/tmp/portage/kdemultimedia-3.0.3/im
/bin/install -c -p -m 644 ./drums /var/tmp/portage/kdemultimedia-3.0.3/image//us
if [ ! -f "/usr/kde/3/share/apps/kmidi/config/tclIndex" -a -f "/usr/kde/3/share/
apps/kmidi/config/misc.tcl" ] ; then  \
(cd /var/tmp/portage/kdemultimedia-3.0.3/image///usr/kde/3/share/apps/kmidi/conf
ig; sed -e s@%TCL_DIR%@/usr/kde/3/share/apps/kmidi/config@g ./tkmidity.ptcl > tk
midity.tcl ) ; \
(cd /var/tmp/portage/kdemultimedia-3.0.3/image///usr/kde/3/share/apps/kmidi/conf
ig; echo 'auto_mkindex . *.tcl; exit' | tclsh ) ; \
sed: can't read ./tkmidity.ptcl: No such file or directory
/bin/sh: tclsh: command not found
make[4]: *** [install-data-local] Error 127
make[4]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0.3/work/kdemultime
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0.3/work/kdemultime
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0.3/work/kdemultime
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0.3/work/kdemultime
make: *** [install-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function kde_src_install, Line -6629, Exitcode 2
!!! died running make install, kde_src_install:make

!!! emerge aborting on  /usr/portage/kde-base/kdemultimedia/kdemultimedia-3.0.3.
ebuild .
Comment 7 Mark 2002-08-29 11:02:25 UTC
Hello Matthew,

I'd like to bring the following to your attention:

ig; echo 'auto_mkindex . *.tcl; exit' | tclsh ) ; \
sed: can't read ./tkmidity.ptcl: No such file or directory
/bin/sh: tclsh: command not found

Comment 8 Mark 2002-09-04 06:48:30 UTC
I had a broken system myself. My apoligies.