Bug 26576 - lsof 4.68 compile with -fstack-protector fails on Alpha
Bug#: 26576 Product:  Gentoo Linux Version: unspecified Platform: Alpha
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: LATER Assigned To: alpha@gentoo.org Reported By: killsoft@gentoo.org
Component: Applications
URL: 
Summary: lsof 4.68 compile with -fstack-protector fails on Alpha
Keywords:  
Status Whiteboard: 
Opened: 2003-08-13 15:47 0000
Description:   Opened: 2003-08-13 15:47 0000
make[1]: Leaving directory
`/var/tmp/portage/lsof-4.68/work/lsof_4.68/lsof_4.68_src/lib' 
cc  -mcpu=ev56 -O3 -pipe -fstack-protector -DLINUXV=24021 -DGLIBCV=203
-DHASIPv6 
-D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.4.21-alpha-r1\"    -O   -c -o dfile.o
dfile.c 
cc  -mcpu=ev56 -O3 -pipe -fstack-protector -DLINUXV=24021 -DGLIBCV=203
-DHASIPv6 
-D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.4.21-alpha-r1\"    -O   -c -o dmnt.o
dmnt.c 
cc  -mcpu=ev56 -O3 -pipe -fstack-protector -DLINUXV=24021 -DGLIBCV=203
-DHASIPv6 
-D_FILE_OFFSET_BITS=64 -DLSOF_VSTR=\"2.4.21-alpha-r1\"    -O   -c -o dnode.o
dnode.c 
dnode.c: In function `get_locks': 
dnode.c:304: push_frame_in_operand 
(insn 191 189 192 (set (reg:DI 18 $18) 
        (reg/f:DI 63 FP)) 255 {*movdi_er_nofix} (nil) 
    (nil)) 
dnode.c:304: Internal compiler error in push_frame_in_operand, at
protector.c:2302 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://bugs.gentoo.org/> for instructions. 
make: *** [dnode.o] Error 1 

!!! ERROR: sys-apps/lsof-4.68 failed. 
!!! Function src_compile, Line 38, Exitcode 2 
!!! (no error message) 

alpha root # epm -q gcc 
gcc-3.2.3-r2 

USE="-X -gtk -gnome crypt jpeg ncurses pam readline tcpd -apm -nls zlib ssl
ev56 alpha -x86" 
CFLAGS="-mcpu=ev56 -O3 -pipe -fstack-protector" 


Reproducible: Always
Steps to Reproduce:
1. enable ProPolice via -fstack-protector 
2. emerge lsof 
3. 
Actual Results:  
compile fails, as above 

Expected Results:  
emerge lsof should succeed. 

alpha root # emerge info 
Portage 2.0.48-r7 (default-alpha-1.4, gcc-3.2.3, glibc-2.3.2-r1) 
================================================================= 
System uname: 2.4.21-alpha-r1 alpha EV56 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config 
/usr/kde/3/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="" 
USE="cups encode foomaticdb gif gpm imlib kde libg++ libwww mikmod motif
oggvorbis 
opengl oss pdflib png qt quicktime sdl slang spell truetype xml2 xmms xv gdbm
berkdb perl 
python -X -gtk -gnome crypt jpeg ncurses pam readline tcpd -apm -nls zlib ssl
ev56 alpha 
-x86" 
COMPILER="gcc3" 
CHOST="alpha-unknown-linux-gnu" 
CFLAGS="-mcpu=ev56 -O3 -pipe -fstack-protector" 
CXXFLAGS="-mcpu=ev56 -O3 -pipe -fstack-protector" 
ACCEPT_KEYWORDS="alpha ~alpha" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="ccache"

------- Comment #1 From Tavis Ormandy (RETIRED) 2003-08-15 06:24:36 0000 -------
Im filtering -fstack-protector for now, i'll investigate how to solve the
problem.