Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48805 - kdeedu-3.2.2 ebuild failed with gcc-3.4.0 prerelease
Summary: kdeedu-3.2.2 ebuild failed with gcc-3.4.0 prerelease
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-04-23 11:16 UTC by Tuan Van (RETIRED)
Modified: 2004-04-30 03:35 UTC (History)
0 users

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


Attachments
compilation fix for kdeedu-3.2.2 with gcc-3.4 (kdeedu-3.2.2-gcc34-compile.patch,3.53 KB, patch)
2004-04-24 12:18 UTC, Igor V. Kovalenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tuan Van (RETIRED) gentoo-dev 2004-04-23 11:16:21 UTC
I report this in the hope that someone can patch kdeedu-3.2.2 for gcc-3.4.0.

Reproducible: Always
Steps to Reproduce:
1. emerge gcc-3.4.0_pre20040416
2. emerge kdeedu-3.2.2
3.

Actual Results:  
Making all in indi
make[4]: Entering directory
`/var/tmp/portage/kdeedu-3.2.2/work/kdeedu-3.2.2/kstars/kstars/indi'
gcc -DHAVE_CONFIG_H -I. -I. -I../../..   -DQT_THREAD_SUPPORT  -D_REENTRANT 
-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -O3
-march=pentium4 -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays
-falign-functions=4  -Wformat-security -Wmissing-format-attribute -c lilxml.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../..   -DQT_THREAD_SUPPORT  -D_REENTRANT 
-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -O3
-march=pentium4 -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays
-falign-functions=4  -Wformat-security -Wmissing-format-attribute -c indicom.c
indicom.c:40:1: warning: "M_PI" redefined
In file included from indicom.c:30:
/usr/include/math.h:323:1: warning: this is the location of the previous definition
gcc -DHAVE_CONFIG_H -I. -I. -I../../..   -DQT_THREAD_SUPPORT  -D_REENTRANT 
-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -O3
-march=pentium4 -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays
-falign-functions=4  -Wformat-security -Wmissing-format-attribute -c indiserver.c
lilxml.c: In function `findXMLAttValu':
lilxml.c:351: warning: return discards qualifiers from pointer target type
lilxml.c: At top level:
lilxml.c:745: warning: initialization discards qualifiers from pointer target type
gcc -DHAVE_CONFIG_H -I. -I. -I../../..   -DQT_THREAD_SUPPORT  -D_REENTRANT 
-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -O3
-march=pentium4 -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays
-falign-functions=4  -Wformat-security -Wmissing-format-attribute -c
indidrivermain.c
indidrivermain.c: In function `IDDefText':
indidrivermain.c:115: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IDDefNumber':
indidrivermain.c:153: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IDDefSwitch':
indidrivermain.c:196: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IDDefLight':
indidrivermain.c:232: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IDSetText':
indidrivermain.c:267: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IDSetNumber':
indidrivermain.c:301: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IDSetSwitch':
indidrivermain.c:341: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IDSetLight':
indidrivermain.c:373: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IDMessage':
indidrivermain.c:402: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IDDelete':
indidrivermain.c:424: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IDLog':
indidrivermain.c:441: warning: function might be possible candidate for `printf'
format attribute
indidrivermain.c: In function `IUUpdateSwitches':
indidrivermain.c:561: error: assignment of read-only member `s'
indidrivermain.c: In function `IUUpdateNumbers':
indidrivermain.c:585: error: assignment of read-only member `s'
indidrivermain.c:592: error: assignment of read-only member `s'
indidrivermain.c: In function `dispatch':
indidrivermain.c:705: warning: implicit declaration of function `f_scansexa'
indidrivermain.c:727: warning: declaration of 'ep' shadows a previous local
indidrivermain.c:673: warning: shadowed declaration is here
indidrivermain.c: In function `pstateStr':
indidrivermain.c:863: warning: return discards qualifiers from pointer target type
indidrivermain.c:864: warning: return discards qualifiers from pointer target type
indidrivermain.c:865: warning: return discards qualifiers from pointer target type
indidrivermain.c:866: warning: return discards qualifiers from pointer target type
indidrivermain.c: In function `sstateStr':
indidrivermain.c:878: warning: return discards qualifiers from pointer target type
indidrivermain.c:879: warning: return discards qualifiers from pointer target type
indidrivermain.c: In function `ruleStr':
indidrivermain.c:891: warning: return discards qualifiers from pointer target type
indidrivermain.c:892: warning: return discards qualifiers from pointer target type
indidrivermain.c:893: warning: return discards qualifiers from pointer target type
indidrivermain.c: In function `permStr':
indidrivermain.c:905: warning: return discards qualifiers from pointer target type
indidrivermain.c:906: warning: return discards qualifiers from pointer target type
indidrivermain.c:907: warning: return discards qualifiers from pointer target type
indidrivermain.c: At top level:
indidrivermain.c:929: warning: initialization discards qualifiers from pointer
target type
indidrivermain.c: In function `clientMsgCB':
indidrivermain.c:637: warning: unused parameter 'arg'
make[4]: *** [indidrivermain.o] Error 1
make[4]: *** Waiting for unfinished jobs....
indiserver.c:593: warning: initialization discards qualifiers from pointer
target type
indiserver.c: In function `main':
indiserver.c:381: warning: 'cp' might be used uninitialized in this function
indiserver.c:381: warning: 'cp' might be used uninitialized in this function
make[4]: Leaving directory
`/var/tmp/portage/kdeedu-3.2.2/work/kdeedu-3.2.2/kstars/kstars/indi'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/kdeedu-3.2.2/work/kdeedu-3.2.2/kstars/kstars'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdeedu-3.2.2/work/kdeedu-3.2.2/kstars'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdeedu-3.2.2/work/kdeedu-3.2.2'
make: *** [all] Error 2

!!! ERROR: kde-base/kdeedu-3.2.2 failed.
!!! Function kde_src_compile, Line 128, Exitcode 2
!!! died running emake, kde_src_compile:make



emerge info

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.4.0, glibc-2.3.3_pre20040207-r0,
2.6.3-gentoo-r2)
=================================================================
System uname: 2.6.3-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.9
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -fforce-addr
-fprefetch-loop-arrays -falign-functions=4 "
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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -fforce-addr
-fprefetch-loop-arrays -falign-functions=4 "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acpi acpi4linux alsa apm autofs avi berkdb cdr cjk composite crypt cups
directfb dnd dvd dvdr encode fam fbcon fbdev foomaticdb gdbm gif gnome gpm
gstreamer gtk gtk2 imlib ipv6 java javascript jpeg kde libg++ libwww mad md5sum
mikmod mmx motif mozilla mpeg mysql ncurses nls nptl oggvorbis oss pam pdflib
perl png python qt quicktime readline samba sdl slang spell sse ssl stroke svga
tcltk tcpd truetype usb x86 xine xml xml2 xmms xosd xv xvid zlib"
Comment 1 Igor V. Kovalenko 2004-04-24 12:18:16 UTC
Created attachment 29968 [details, diff]
compilation fix for kdeedu-3.2.2 with gcc-3.4

I successfully emerged kdeedu-3.2.2 using gcc-3.4 with this patch applied.
There are two parts: the one changing function parameter to be rw is to fix
compile error, and the other to fix warnings I see should be fixed.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2004-04-26 17:52:15 UTC
Now in portage - thanks for the report.  

It would be very handy if you would report this at bugs.kde.org so that it gets fixed in the 3.2 branch of kde.