Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40750 - KDevelop fails to compile
Summary: KDevelop fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-07 12:55 UTC by gareth
Modified: 2004-02-09 07:38 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 gareth 2004-02-07 12:55:19 UTC
while emerging Kdevelop 3.0.0 it consistenly fails at AdaParser.  I thought this was similar to bug #40404 but that was PascalParser.

Reproducible: Always
Steps to Reproduce:
1. emerge kdevelop
2.
3.
Actual Results:  
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H 
-I. -I. -I../.. -I../../lib/antlr -I../../lib/interfaces -I../../lib/util 
-I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include   
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef 
-Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG 
-O2 -O3 -mcpu=i686 -funroll-loops -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 -fexceptions -c -o AdaTreeParserSuper.lo `test -f 
'AdaTreeParserSuper.cpp' || echo './'`AdaTreeParserSuper.cpp 
{standard input}: Assembler messages: 
{standard input}:414480: Fatal error: Case value 0 unexpected at line 2289 of 
file "write.c" 
 
make[4]: *** [AdaParser.lo] Error 1 
make[4]: *** Waiting for unfinished jobs.... 
AdaTreeParserSuper.cpp: In member function `void 
   AdaTreeParserSuper::accept_stmt(antlr::ASTRefCount<antlr::AST>)': 
AdaTreeParserSuper.cpp:6610: internal error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://bugs.gentoo.org/> for instructions. 
{standard input}: Assembler messages: 
{standard input}:173134: Fatal error: Case value 0 unexpected at line 2289 of 
file "write.c" 
 
make[4]: *** [AdaTreeParserSuper.lo] Error 1 
make[4]: Leaving directory 
`/var/tmp/portage/kdevelop-3.0.0/work/kdevelop-3.0.0/languages/ada' 
make[3]: *** [all-recursive] Error 1 
make[3]: Leaving directory 
`/var/tmp/portage/kdevelop-3.0.0/work/kdevelop-3.0.0/languages/ada' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/kdevelop-3.0.0/work/kdevelop-3.0.0/languages' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/kdevelop-3.0.0/work/kdevelop-3.0.0' 
make: *** [all] Error 2 
 
!!! ERROR: dev-util/kdevelop-3.0.0 failed. 
!!! Function kde_src_compile, Line 127, Exitcode 2 
!!! died running emake, kde_src_compile:make 
 

Expected Results:  
A succesful emerge :-) 

I had just emerge kde 3.2. I therefore tried login on with kde 3.1.4 an 
compiling, and that did the same.  I've managed it before with an earlier 
version of kdevelop 3 - before my computer crashed !!
Comment 1 SpanKY gentoo-dev 2004-02-07 12:57:42 UTC
you neglected to provide `emerge info`
Comment 2 gareth 2004-02-07 13:00:36 UTC
Sorry, emerge info is as follows:-

Portage 2.0.50 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gaming-r3)
=================================================================
System uname: 2.4.20-gaming-r3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.5-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://194.83.57.3/sites/www.ibiblio.org/gentoo/ http://212.219.247.11/sites/www.ibiblio.org/gentoo/ http://212.219.247.15/sites/www.ibiblio.org/gentoo/ http://212.219.247.18/sites/www.ibiblio.org/gentoo/"
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="X aalib alsa apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gphoto2 gpm gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod motif mpeg nas ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xv zlib"

Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2004-02-07 13:18:53 UTC
You might want to try/consider different CFLAGS. You appear to be running a pentium 3, but your C(XX)FLAGS don't take advantage. You could try
CFLAGS="-O2 -march=pentium3 -mcpu=pentium3 -pipe". If you want to make packages compatible with other archs change the -march=pentium3 part into say -march=pentium. The -mcpu part will then ensure that packages are still optimized for pentium3 (but they will run anywhere)
Comment 4 gareth 2004-02-07 21:45:24 UTC
I used the CFLAGS that you suggested - and it compiled.  Many thanks.
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2004-02-09 07:38:00 UTC
cflags problem.