Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41370 - korganizer component of kdepim does not behave correctly with certain CFLAGS
Summary: korganizer component of kdepim does not behave correctly with certain CFLAGS
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL: http://bugs.kde.org/show_bug.cgi?id=7...
Whiteboard:
Keywords:
: 57944 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-12 07:03 UTC by Wilbur Pan
Modified: 2006-05-24 07:09 UTC (History)
2 users (show)

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 Wilbur Pan 2004-02-12 07:03:48 UTC
I've also filed a bug at the KDE Bugzilla.  Here's the URL:

http://bugs.kde.org/show_bug.cgi?id=73718

My regular CFLAGS settings in make.conf are CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer -fforce-mem -fforce-addr -s".  I'm using KDE 3.2.0.   kdepim emerges without errors during the install.  However, when I use korganizer, I get errors in the display of event start and stop times in the 1, 3, 5, and week views.

At the suggestion of Stefan Roth, I tried different CFLAGS settings.  When I emerger kdepim with CFLAGS="-march=pentium3 -O2 -pipe", korganizer behaves better, and the problem with the display of event blocks appears to have been resolved.

I haven't tested other CFLAGS changes yet -- I only have a 700 MHz P3 and it takes a few hours to reemerge kdepim.

If caleb sees this bug, which I expect he will, could you report what CFLAGS you have been using to test the kde packages?

Reproducible: Always
Steps to Reproduce:
1. Set CFLAGS to "-march=pentium3 -Os -pipe -fomit-frame-pointer -fforce-mem -fforce-addr -s"
2. emerge kdepim-3.2.0
3. See event blocks not being displayed correctly.



Expected Results:  
Probably the kdepim-3.2.0 ebuild should filter out certain CFLAGS settings. 

emerge info 
 
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 
2.6.3-rc1-mm1) 
================================================================= 
System uname: 2.6.3-rc1-mm1 i686 Pentium III (Coppermine) 
Gentoo Base System version 1.4.3.13 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59 
Automake: sys-devel/automake-1.8.2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium3 -O2 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=pentium3 -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ 
http://gentoo.mirrors.pair.com/ 
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ 
http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
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 arts avi berkdb bindist cdr crypt cups encode 
esd foomaticdb gdbm gif gimpprint gpm gtk2 imap imlib imlib2 java javamail 
jpeg kde ldap libg++ libwww mad mikmod mmx motif mpeg music ncurses nls 
oggvorbis opengl oss pam pcmcia pda pdflib perl pic png python qt quicktime 
rage128 readline samba sdl slang slp spell sse ssl svga tcpd tiff truetype usb 
x86 xml2 xmms xv zlib"
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-02-12 07:53:12 UTC
I use -march=pentium4 -O3 -fomit-frame-pointer

Anything more aggressive is use at your own risk.
Comment 2 Wilbur Pan 2004-02-13 13:01:32 UTC
Here's my experience with emerging kdepim-3.2.0-r2 using different sets of CFLAGS:

CFLAGS="-march=pentium3 -O2 -pipe" -- works as expected.  This is the same setting that iamlarryboy uses for his KDE-cvs builds.

The following CFLAGS give me the same display error with korganizer:

CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer -fforce-mem -fforce-addr -s"
CFLAGS="-march=pentium3 -Os -fomit-frame-pointer -fforce-mem -fforce-addr -s"
CFLAGS="-march=pentium3 -Os -pipe"
CFLAGS="-march=pentium3 -Os -fomit-frame-pointer"
CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer"

It looks like kdepim really does not like -Os.

I'm kind of surprised that "-O2 -fomit-frame-pointer" didn't work, since "-O3 -fomit-frame-pointer" seems to work for caleb.  

I did build all of the other components of KDE-3.2.0 with fairly aggressive CFLAGS: 
 
CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer -fforce-mem -fforce-addr -s" 

and have not seen any problems so far.

Perhaps KDE needs some filters in the ebuilds to filter out CFLAGS, like OpenOffice does?  Probably more data needs to be collected.  At the very least, it looks like the kdepim ebuild should filter out -Os.
Comment 3 meyerm 2004-04-20 11:40:05 UTC
Same problem here. Compiled KDEPIM with "-Os -mcpu=i686 -fomit-frame-pointer -pipe".
Comment 4 meyerm 2004-07-22 03:06:20 UTC
*** Bug 57944 has been marked as a duplicate of this bug. ***
Comment 5 Gregorio Guidi (RETIRED) gentoo-dev 2004-12-27 02:32:10 UTC
Is this still the same for kde-3.3.x?
Comment 6 Wilbur Pan 2004-12-27 14:47:07 UTC
I haven't tried out KDE 3.3 yet.  My system died on me a while back and I took the opportunity to try out Gnome, so my laptop doesn't have KDE 3.3 on it now.

Although it should be fairly easy to test.  Set your CFLAGS to include "-Os", emerge kdepim, and see what happens.
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-16 08:56:05 UTC
I tried, and everything worked fine.
Please reopen if you can reproduce it again.
Comment 8 Tim Weber 2006-05-24 07:09:09 UTC
Please reopen. It's still alive. Tested with kde-base/korganizer-3.5.2.

CFLAGS with bug: -Os -march=i686 -pipe -fomit-frame-pointer
CFLAGS without bug: -O2 -march=i686 -pipe -fomit-frame-pointer

emerge --info:
Portage 2.1_rc1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-suspend2-r5 i686)
=================================================================
System uname: 2.6.16-suspend2-r5 i686 Genuine Intel(R) CPU           L2400  @ 1.66GHz
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa apache2 apm arts avi berkdb bitmap-fonts bluetooth bzip2 cli cpudetection crypt cups dga dri dvd dvdread eds emboss encode esd exif firefox foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 i8x0 imlib ipod ipv6 irmc isdnlog jpeg kde kdeenablefinal kipi libcaca libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg mplayer musicbrainz ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline real reflection rtc samba sdl session spell spl sqlite sse ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode userlocales visualization vorbis win32codecs xinerama xml xorg xscreensaver xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_de userland_GNU video_cards_i810 video_cards_nv video_cards_radeon video_cards_vesa video_cards_via"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY