Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 26692

Summary: Internal error in gcc while compiling k3b (from CVS)
Product: Gentoo Linux Reporter: Ronny Schoebel <ronny>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ronny Schoebel 2003-08-15 14:34:59 UTC
While compiling k3b from today's CVS gcc produces an internal error. Output of make 
is below, preprocessed source is attached. I'm using Dan Armak's live KDE CVS 
ebuilds, but the same thing happens when I manually try to compile k3b. 
 
/bin/sh ../../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H 
-I. -I. -I../../../..  -I./.. -I/usr/kde/cvs/include -I/usr/qt/3/include -I/usr/X11R6/include  
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -
Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -
D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-
subscripts -DNDEBUG -DNO_DEBUG -O2 -mcpu=i686 -march=pentium3 -O3 -pipe -
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  -c -o k3bdevice.lo `test -f 'k3bdevice.
cpp' || echo './'`k3bdevice.cpp 
k3bdevice.cpp: In member function `bool 
   K3bCdDevice::CdDevice::readModePage2A(K3bCdDevice::mm_cap_page_2A*) 
const': 
k3bdevice.cpp:1978: Attempt to delete prologue/epilogue insn: 
(insn/f 123 121 125 (set (mem:SI (plus:SI (reg/f:SI 6 ebp) 
                (const_int -8 [0xfffffff8])) [0 S4 A8]) 
        (reg:SI 3 ebx)) -1 (nil) 
    (nil)) 
k3bdevice.cpp:1978: Internal compiler error in propagate_one_insn, at flow.c: 
   1618 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://bugs.gentoo.org/> for instructions. 
make[5]: *** [k3bdevice.lo] Error 1 
make[5]: Leaving directory `/var/tmp/portage/k3b-5/work/kdeextragear-1/k3b/src/
core/device' 
make[4]: *** [all-recursive] Error 1 
make[4]: Leaving directory `/var/tmp/portage/k3b-5/work/kdeextragear-1/k3b/src/
core' 
make[3]: *** [all-recursive] Error 1 
make[3]: Leaving directory `/var/tmp/portage/k3b-5/work/kdeextragear-1/k3b/src' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/var/tmp/portage/k3b-5/work/kdeextragear-1/k3b' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/var/tmp/portage/k3b-5/work/kdeextragear-1' 
make: *** [all] Error 2 
 
!!! ERROR: app-cdr/k3b-5 failed. 
!!! Function kde_src_compile, Line 137, Exitcode 2 
!!! died running emake, kde_src_compile:make 
 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



ronny@kira ronny $ gcc --version 
gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) 
Copyright (C) 2002 Free Software Foundation, Inc. 
This is free software; see the source for copying conditions.  There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 
ronny@kira ronny $ emerge info 
Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) 
================================================================= 
System uname: 2.4.22_pre2-gss i686 Pentium III (Katmai) 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/
Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/
config /usr/X11R6/lib/X11/xkb /usr/kde/cvs/share/config /usr/share/texmf/tex/
generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="/usr/local/portage" 
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mmx mpeg 
ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb readline 
arts tetex mysql X sdl gpm pam libwww ssl perl python esd imlib oggvorbis qt kde 
opengl cdr acpi apache2 dga doc dvd gd lcms maildir samba sse tiff xinerama -3dnow 
-java -gnome -mikmod -motif -nls -svga -slang -tcpd -gtk" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-mcpu=i686 -march=pentium3 -O3 -pipe" 
CXXFLAGS="-mcpu=i686 -march=pentium3 -O3 -pipe" 
ACCEPT_KEYWORDS="x86 ~x86" 
MAKEOPTS="-j3" 
AUTOCLEAN="yes" 
SYNC="rsync://servus/gentoo-portage" 
FEATURES="sandbox ccache digest"
Comment 1 SpanKY gentoo-dev 2003-08-15 14:50:18 UTC
try turning down your CFLAGS 
Comment 2 Ronny Schoebel 2003-08-15 14:52:47 UTC
Hm.  
I have not attached the preprocessed source, but I just figured out that the  
bug only shows when the file is compiled with libtool.  
Taking the original command line that make calls and removing the libtool  
stuff results in:  
  
kira device # g++ -DHAVE_CONFIG_H -I. -I. -I../../../..  -I./.. -I/usr/kde/cvs/ 
include -I/usr/qt/3/include -I/usr/X11R6/include  -DQT_THREAD_SUPPORT   
-D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall - 
pedantic -W -Wpointer-arith -Wwrite-strings -ansi - 
D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion - 
Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -mcpu=i686 - 
march=pentium3 -O3 -pipe -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  -c -o k3bdevice.lo `test -f 'k3bdevice.cpp' || echo  
'./'`k3bdevice.cpp  
kira device #  
  
So, compilation works. After thaqt I can call make and it will happily finnish  
compiling k3b.  
  
Comment 3 Ronny Schoebel 2003-08-15 14:57:29 UTC
CFLAGS="" in make.conf: Same result. 
 
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2003-10-02 08:47:31 UTC
This is some strange compilation error.

I dunno what the resolution is here, but I don't think we can fix it.  You
may want to report hte bug to gcc developers so it gets fixed in a future
version of gcc?