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

Bug 83017

Summary: pilot-link-0.11.8 emerge fails with undefined reference
Product: Gentoo Linux Reporter: Eric Andry <ericandry>
Component: Current packagesAssignee: Gentoo PDA project <pda>
Status: RESOLVED INVALID    
Severity: minor    
Priority: Low    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: pilot-link-0.11.8 failed emerge log

Description Eric Andry 2005-02-22 17:15:29 UTC
While trying to emerge gnome an emerge on pilot-link fails.  It is a dependency for gnome-pilot and evolution part of the gnome suite.

I have tried to emerge the latest stable (0.11.8) and testing (0.11.8-r1).  Both fail with the same undefined reference errors.  After searching for duplicate bug, I also tried emerging without extra language support (e.g. ACCEPT_KEYWORDS="-java -perl -python -tcltk" emerge pilot-link) as suggested by other previous bugs.  This fails too also.


Reproducible: Always
Steps to Reproduce:
1. Setup with following emerge parameters and toolchain

Output of "emerge info":

gundam root # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.20GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 17 2005, 02:36:26)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS=" -O3  -fweb  -frename-registers  -march=pentium4 -pipe  -mtune=pentium4  -fforce-addr  -momit-leaf-frame-pointer  -fomit-frame-pointer  -ftracer  -funroll-loops  -falign-functions  -fmerge-all-constants  -mfpmath=sse  -maccumulate-outgoing-args  -fprefetch-loop-arrays "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=" -O3  -fweb  -frename-registers  -march=pentium4 -pipe  -mtune=pentium4  -fforce-addr  -momit-leaf-frame-pointer  -fomit-frame-pointer  -ftracer  -funroll-loops  -falign-functions  -fmerge-all-constants  -mfpmath=sse  -maccumulate-outgoing-args  -fprefetch-loop-arrays  -fvisibility-inlines-hidden -fvisibility=hidden "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks newuse sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://www.gigaload.org/gentoo.org/ http://gentoo.osuosl.org"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit X Xaw3d a52 aac aalib acpi alsa apache2 avi bash-completion canna cdr cjk cross crypt cups curl dio directfb divx4linux dvd dvdr dvdread emacs emboss encode esd exif f77 fbcon foomaticdb fortran freetype freewnn gcj gdbm ggi gif gnome gnustep gphoto2 gpm gstreamer gtk gtk2 hal imlib ipv6 ithreads jack java jikes joystick jpeg junit libg++ libwww lm_sensors mad matroska memlimit mikmod mime mmx mozilla mp3 mpeg nas ncurses nls nptl ogg oggvorbis openal opengl pam pcmcia pda pdflib perl png pnp portaudio posix ppds profile pthreads python qt quicktime radeon readline samba sdl soap sockets source spell sse ssl svg svga tcltk tcpd threads tiff truetype truetype-fonts trusted type1-fonts unicode usb v4l vcd videos wifi xine xinerama xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid zlib video_cards_radeon"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

2.  Run "emerge pilot-link"
3.  See resulting errors

Actual Results:  
Emerge fails with multiple undefined reference errors (see uploaded attachment
log in subsequent comment)

Expected Results:  
"emerge pilot-link" should emerge without error.

gundam root # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.20GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 17 2005, 02:36:26)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS=" -O3  -fweb  -frename-registers  -march=pentium4 -pipe  -mtune=pentium4
 -fforce-addr  -momit-leaf-frame-pointer  -fomit-frame-pointer  -ftracer 
-funroll-loops  -falign-functions  -fmerge-all-constants  -mfpmath=sse 
-maccumulate-outgoing-args  -fprefetch-loop-arrays "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=" -O3  -fweb  -frename-registers  -march=pentium4 -pipe 
-mtune=pentium4  -fforce-addr  -momit-leaf-frame-pointer  -fomit-frame-pointer 
-ftracer  -funroll-loops  -falign-functions  -fmerge-all-constants  -mfpmath=sse
 -maccumulate-outgoing-args  -fprefetch-loop-arrays  -fvisibility-inlines-hidden
-fvisibility=hidden "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks newuse sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo http://mirrors.tds.net/gentoo
ftp://mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo http://www.gigaload.org/gentoo.org/
http://gentoo.osuosl.org"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit X Xaw3d a52 aac aalib acpi alsa apache2 avi bash-completion canna
cdr cjk cross crypt cups curl dio directfb divx4linux dvd dvdr dvdread emacs
emboss encode esd exif f77 fbcon foomaticdb fortran freetype freewnn gcj gdbm
ggi gif gnome gnustep gphoto2 gpm gstreamer gtk gtk2 hal imlib ipv6 ithreads
jack java jikes joystick jpeg junit libg++ libwww lm_sensors mad matroska
memlimit mikmod mime mmx mozilla mp3 mpeg nas ncurses nls nptl ogg oggvorbis
openal opengl pam pcmcia pda pdflib perl png pnp portaudio posix ppds profile
pthreads python qt quicktime radeon readline samba sdl soap sockets source spell
sse ssl svg svga tcltk tcpd threads tiff truetype truetype-fonts trusted
type1-fonts unicode usb v4l vcd videos wifi xine xinerama xml2 xmlrpc xmms xosd
xpm xprint xsl xv xvid zlib video_cards_radeon"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

gundam root # cat /proc/meminfo
MemTotal:       906264 kB
MemFree:        693252 kB
Buffers:         44012 kB
Cached:         143296 kB
SwapCached:          0 kB
Active:         126172 kB
Inactive:        63880 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       906264 kB
LowFree:        693252 kB
SwapTotal:      996020 kB
SwapFree:       996020 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:           5568 kB
Slab:            16112 kB
CommitLimit:   1449152 kB
Committed_AS:    10632 kB
PageTables:        296 kB
VmallocTotal:   122836 kB
VmallocUsed:     20208 kB
VmallocChunk:   102496 kB
Comment 1 Eric Andry 2005-02-22 17:18:45 UTC
Created attachment 51914 [details]
pilot-link-0.11.8 failed emerge log

Was running the following to produce this particular log:

ACCEPT_KEYWORDS="-java -perl -python -tcltk" emerge pilot-link

Same results otherwise when trying to use additional language support.
Comment 2 Eric Andry 2005-02-26 21:10:36 UTC
Is this bug not considered "critical" because the C[XX]FLAGS that I used to produce the error?  I'm guessing most packages can't handle compiling in the environment I created?
Comment 3 Eric Andry 2005-03-01 08:46:06 UTC
Per suggestions from another bug I posted, I toned down my CXXFLAGS and am left with the following:

cat /etc/make.conf | grep -v '#' | grep FLAG
CFLAGS="${CFLAGS} -O3 "
CFLAGS="${CFLAGS} -fweb "
CFLAGS="${CFLAGS} -frename-registers "
CFLAGS="${CFLAGS} -march=pentium4 -pipe "
CFLAGS="${CFLAGS} -mtune=pentium4 "
CFLAGS="${CFLAGS} -fforce-addr "
CFLAGS="${CFLAGS} -momit-leaf-frame-pointer "
CFLAGS="${CFLAGS} -fomit-frame-pointer "
CFLAGS="${CFLAGS} -ftracer "
CFLAGS="${CFLAGS} -funroll-loops "
CFLAGS="${CFLAGS} -falign-functions "
CFLAGS="${CFLAGS} -fmerge-all-constants "
CFLAGS="${CFLAGS} -mfpmath=sse "
CFLAGS="${CFLAGS} -maccumulate-outgoing-args "
CFLAGS="${CFLAGS} -fprefetch-loop-arrays "
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden "


pilot-link-0.11.8 now emerges successfully.  I would still like to know why that the flags I was using before did not work.
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2005-07-08 03:54:11 UTC
i'm not even going to waste time debugging your CFLAGS. those are some pretty extreme optimisations, 
you should know what you're doing if you're changing CFLAGS like that.