Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 21233

Summary: pam-login fails to compile w/ gcc-3.3/glibc-2.3.2-r2 when CFLAGS contains -O3
Product: Gentoo Linux Reporter: Jason Rhinelander <gentoo>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jason Rhinelander 2003-05-19 03:16:08 UTC
pam-login fails to compile, with this mess:

if gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I. -I. -I.. -I.
-DLOCALEDIR=\"/usr/share/locale\"   -W -Wall -Wbad-function-cast -Wcast-align
-Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Werror -march=athlon-xp
-O3 -mmmx -msse -m3dnow -mfpmath=sse -pipe -fomit-frame-pointer -fforce-addr
-funroll-loops -frerun-loop-opt -march=athlon-xp -O3 -mmmx -msse -m3dnow
-mfpmath=sse -pipe -fomit-frame-pointer -fforce-addr -funroll-loops
-frerun-loop-opt -MT login.o -MD -MP -MF ".deps/login.Tpo" \
  -c -o login.o `test -f 'login.c' || echo './'`login.c; \
then mv ".deps/login.Tpo" ".deps/login.Po"; \
else rm -f ".deps/login.Tpo"; exit 1; \
fi
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:199: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:205: warning: called from here
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:178: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:180: warning: called from here
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:155: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:157: warning: called from here
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:132: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:134: warning: called from here
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:114: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:116: warning: called from here
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:199: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:205: warning: called from here
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:199: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:205: warning: called from here
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:178: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:180: warning: called from here
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:155: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:157: warning: called from here
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:132: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:134: warning: called from here
getdef.c:285: warning: inlining failed in call to `def_load'
getdef.c:114: warning: called from here
getdef.c:239: warning: inlining failed in call to `def_find'
getdef.c:116: warning: called from here
make[2]: *** [getdef.o] Error 1
make[2]: *** Waiting for unfinished jobs....
login.c:252: warning: inlining failed in call to `check_ttyname'
login.c:637: warning: called from here
login.c:212: warning: inlining failed in call to `opentty'
login.c:662: warning: called from here
login.c:416: warning: inlining failed in call to `new_pam_prompt'
login.c:700: warning: called from here
login.c:282: warning: inlining failed in call to `logbtmp'
login.c:756: warning: called from here
login.c:320: warning: inlining failed in call to `dolastlog'
login.c:1002: warning: called from here
login.c:374: warning: inlining failed in call to `ttytype'
login.c:1062: warning: called from here
login.c:158: warning: inlining failed in call to `motd'
login.c:1127: warning: called from here
login.c:416: warning: inlining failed in call to `new_pam_prompt'
login.c:700: warning: called from here
login.c:158: warning: inlining failed in call to `motd'
login.c:1127: warning: called from here
make[2]: *** [login.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/pam-login-3.11/work/pam_login-3.11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/pam-login-3.11/work/pam_login-3.11'
make: *** [all] Error 2
 
!!! ERROR: sys-apps/pam-login-3.11 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! (no error message)










Changing -O3 to -O2 fixes the problem - but this doesn't seem like the "right" fix.

[root@cytherea root]# emerge info
  Portage 2.0.48_pre6 (default-x86-1.4, gcc-3.3, glibc-2.3.2-r2)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm)
GENTOO_MIRRORS=""
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb"
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="/usr/local/portage"
USE="x86 avi crypt cups encode gif jpeg libg++ libwww mikmod mpeg ncurses pdflib
png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb readline
bonobo svga guile X sdl gpm tcpd pam ssl python esd imlib oggvorbis gtk opengl
cdr mmx 3dnow sse alsa dvd dga ggi -oss -apm -arts gnome gnome2 gtk2 -java -kde
-motif mozilla moznomail moznoirc mysql -nls nocardbus perl threads pic -qt
samba -slang tcltk tiff vim-with-x evms2 aavm"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -mmmx -msse -m3dnow -mfpmath=sse -pipe
-fomit-frame-pointer -fforce-addr -funroll-loops -frerun-loop-opt"
CXXFLAGS="-march=athlon-xp -O3 -mmmx -msse -m3dnow -mfpmath=sse -pipe
-fomit-frame-pointer -fforce-addr -funroll-loops -frerun-loop-opt"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://backup/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Andrew Bevitt 2003-05-24 21:01:48 UTC
Look at bug #21213
Comment 2 Jason Rhinelander 2003-05-24 21:22:52 UTC
Hmm, my search for pam-login didn't bring anything up when I posted. :-\

*** This bug has been marked as a duplicate of 21213 ***