Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42224 - Using the -fPIC CFLAG on kdevelop3 causes crashes when closing files
Summary: Using the -fPIC CFLAG on kdevelop3 causes crashes when closing files
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-19 23:58 UTC by Simon Hogg
Modified: 2004-07-22 13:17 UTC (History)
1 user (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 Simon Hogg 2004-02-19 23:58:02 UTC
After a successful compile of kdevelop 3 (and 3.0.1) with the -fPIC flag in CFLAGS and CPPFLAGS in make.conf any attempt to close a file or project in kdevelop causes the application to segfault. The solution is to remove the flag before emerging.

Reproducible: Always
Steps to Reproduce:
1. Add -fPIC to the CFLAGS in /etc/make.conf
2. emerge kdevelop
3. run kdevelop, create a file, close it



Expected Results:  
 

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 
2.6.2-mm1) 
================================================================= 
System uname: 2.6.2-mm1 i686 AMD Athlon(tm) XP 2200+ 
Gentoo Base System version 1.4.3.13 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe 
-mfpmath=sse -fPIC" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/lib/jboss /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe 
-mfpmath=sse -fPIC" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache prelink sandbox userpriv" 
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.linux.no/ 
http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="3dnow X aalib alsa apache2 apm arts avi berkdb cdr crypt cups curl doc 
dvd encode evo gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg junit kde 
kerberos ldap libg++ libwww linguas_en_GB mad mikmod mmx motif mozilla mozsvg 
mpeg mysql nas ncurses nls nowin nptl oci8 oggvorbis opengl oss pam pdflib 
perl pic png postgres postgresql python qt quicktime readline samba sdl slang 
spell sse ssl stroke svga tcpd tetex truetype vim-with-x x86 xml xml2 xmms xv 
zlib"
Comment 1 Dominik Stadler (RETIRED) gentoo-dev 2004-03-08 09:58:40 UTC
Why do you want to specify -fPIC in the first place? Normally it should not be needed in the global CFLAGS.
Comment 2 Simon Hogg 2004-03-09 09:51:38 UTC
I added the -fPIC flag to enable prelinking support on my PC. Although at the time neither kdevelop nor the rest of KDE were prelinked.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2004-07-22 13:17:39 UTC
only libs should be compiled with -fpic on x86
-> http://www.gentoo.org/proj/en/hardened/pic-internals.xml