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

Bug 58956

Summary: xine-libs-1_rc4-r1 failes to obey CFLAGS
Product: Gentoo Linux Reporter: Daniel Black (RETIRED) <dragonheart>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 59506    

Description Daniel Black (RETIRED) gentoo-dev 2004-07-30 18:07:20 UTC
# emerge xine-lib

xine-extra.lo -MD -MP -MF ".deps/xine-extra.Tpo" \
  -c -o xine-extra.lo `test -f 'xine-extra.c' || echo './'`xine-extra.c; \
then mv -f ".deps/xine-extra.Tpo" ".deps/xine-extra.Plo"; \
else rm -f ".deps/xine-extra.Tpo"; exit 1; \
fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../include -I../../../include -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input -O2 -march=athlon-xp -fomit-frame-pointer -pipe -fno-stack-protector -O1 -mno-sse2 -mno-sse3 -ffunction-sections -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -O2 -march=athlon-xp -fomit-frame-pointer -pipe -fno-stack-protector -O1 -mno-sse2 -mno-sse3 -ffunction-sections -MT xine-extra.lo -MD -MP -MF .deps/xine-extra.Tpo -c xine-extra.c -o .libs/xine-extra.o
/bin/sh ../../../libtool-nofpic --mode=link gcc   -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -O2 -march=athlon-xp -fomit-frame-pointer -pipe -fno-stack-protector -O1 -mno-sse2 -mno-sse3 -ffunction-sections   -o xineplug_inp_vcd.la -rpath /usr/lib/xine/plugins/1.0.0 -avoid-version -module xineplug_inp_vcd.lo vcdplayer.lo vcdio.lo xine-extra.lo ../../../src/xine-engine/libxine.la -lvcdinfo -lvcd -liso9660 -lcdio
libtool-nofpic: link: warning: library `/usr/lib/libvcdinfo.la' was moved.
libtool-nofpic: link: warning: library `/usr/lib/libvcd.la' was moved.
grep: /var/tmp/portage/libcdio-0.64/image//usr/lib/libiso9660.la: No such file or directory
/bin/sed: can't read /var/tmp/portage/libcdio-0.64/image//usr/lib/libiso9660.la: No such file or directory
libtool-nofpic: link: `/var/tmp/portage/libcdio-0.64/image//usr/lib/libiso9660.la' is not a valid libtool archive
make[5]: *** [xineplug_inp_vcd.la] Error 1
make[5]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4-r1/work/xine-lib-1-rc4a/src/input/vcd'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4-r1/work/xine-lib-1-rc4a/src/input/vcd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4-r1/work/xine-lib-1-rc4a/src/input'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4-r1/work/xine-lib-1-rc4a/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4-r1/work/xine-lib-1-rc4a'
make: *** [all] Error 2

!!! ERROR: media-libs/xine-lib-1_rc4-r1 failed.
!!! Function src_compile, Line 137, Exitcode 2
!!! Parallel make failed
!!! If you need support, post the topmost build error, NOT this status messag

emerge info
Portage 2.0.51_pre131 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r11 i686 AMD Athlon(tm) XP 2500+)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
Binutils: sys-devel/binutils-2.14.90.0.8-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow X aalib acpi4linux aim alsa apm arts artswrappersuid avi berkdb cddb cdr cle266 crypt cups curl dga directfb divx4linux djbfft dnd dvb dvd dvdr encode esd fam fbcon ffmpeg flash fltk fmod foomaticdb gdbm gif gimpprint glut gphoto2 gpm gstreamer gtk2 icq idea imap imlib jabber java javascript jbig jikes jpeg kde ldap libg++ libwww mad mbox memlimit mikmod mmx motif mozilla mozsvg mpeg msdav msn music mysql nas ncurses net nls nptl nvidia oav oggvorbis openal opengl oss pam pcap pda pdflib perl php pic png python qt quicktime readline samba sdl slang slp socks5 spell sse ssl svga tcltk tcpd transcode transparent-proxy truetype vhosts x86 xinerama xml2 xmms xv zlib"

I tried without distcc and still the same error.
MAKEOPTS=-j1 failed also.

Other suggestions?
Comment 1 Chris White (RETIRED) gentoo-dev 2004-07-30 21:35:30 UTC
Dragonheart:  This is going to be my "fix" if you will:

Archs:

Xine-lib _rc5-r2 fixes many bugs existant in previous versions.  Because
of this, I'd like to push the stable marking of _rc5-r2.  Thanks ahead of
time.
Comment 2 Daniel Black (RETIRED) gentoo-dev 2004-07-31 01:59:24 UTC
For version media-libs/xine-lib-1_rc5-r2 - same error

/bin/sh ../../../libtool-nofpic --mode=link gcc   -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -O2 -march=athlon-xp -fomit-frame-pointer -pipe -fno-stack-protector -O1 -mno-sse2 -mno-sse3 -ffunction-sections   -o xineplug_inp_vcd.la -rpath /usr/lib/xine/plugins/1.0.0 -avoid-version -module xineplug_inp_vcd.lo vcdplayer.lo vcdio.lo xine-extra.lo ../../../src/xine-engine/libxine.la -lvcdinfo -lvcd -liso9660 -lcdio
libtool-nofpic: link: warning: library `/usr/lib/libvcdinfo.la' was moved.
libtool-nofpic: link: warning: library `/usr/lib/libvcd.la' was moved.
grep: /var/tmp/portage/libcdio-0.64/image//usr/lib/libiso9660.la: No such file or directory
/bin/sed: can't read /var/tmp/portage/libcdio-0.64/image//usr/lib/libiso9660.la: No such file or directory
libtool-nofpic: link: `/var/tmp/portage/libcdio-0.64/image//usr/lib/libiso9660.la' is not a valid libtool archive
make[5]: *** [xineplug_inp_vcd.la] Error 1
make[5]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-rc5/src/input/vcd'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-rc5/src/input/vcd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-rc5/src/input'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-rc5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc5-r2/work/xine-lib-1-rc5'
make: *** [all] Error 2

!!! ERROR: media-libs/xine-lib-1_rc5-r2 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! Parallel make failed
!!! If you need support, post the topmost build error, NOT this status message.

beer root # ls -la /usr/lib/libvcdinfo.la
-rwxr-xr-x  1 root root 764 Apr 30 18:59 /usr/lib/libvcdinfo.la
beer root # ls -la /usr/lib/libvcd.la
-rwxr-xr-x  1 root root 851 Apr 30 18:59 /usr/lib/libvcd.la
beer root # qpkg -f -nc /usr/lib/libvcdinfo.la ; qpkg -f -nc /usr/lib/libvcd.la
media-video/vcdimager
media-video/vcdimager
beer root # qpkg -f -nc -v /usr/lib/libvcd.la
media-video/vcdimager-0.7.19

Upgrading to media-video/vcdimager-0.7.20-r1
failed - see bug 58977
Comment 3 Daniel Black (RETIRED) gentoo-dev 2004-07-31 02:01:54 UTC
Also this is using -O3 optisation although I specified -O2
Comment 4 Chris White (RETIRED) gentoo-dev 2004-07-31 11:42:44 UTC
What were the USE flags you had when you emerge-ed it?  I'd like to check
and see if it's some weird flag logic.
Comment 5 Daniel Black (RETIRED) gentoo-dev 2004-07-31 16:50:13 UTC
comment 3 - its using -O1 rather than -O2.

USE flags are per emerge info.

use logic? its trying to link to the ${D} directory of the installed package libcdio-0.64

The bug is spreading:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..  -I../lib/ -I../include/     -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -c `test -f 'cd-info.c' || echo './'`cd-info.c
source='util.c' object='util.o' libtool=no \
depfile='.deps/util.Po' tmpdepfile='.deps/util.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..  -I../lib/ -I../include/     -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -c `test -f 'util.c' || echo './'`util.c
source='cd-read.c' object='cd-read.o' libtool=no \
depfile='.deps/cd-read.Po' tmpdepfile='.deps/cd-read.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..  -I../lib/ -I../include/     -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -c `test -f 'cd-read.c' || echo './'`cd-read.c
/bin/sh ../libtool --mode=link gcc  -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare   -o cd-info  cd-info.o util.o ../lib/libiso9660.la ../lib/libcdio.la -lpopt -lcddb   -lvcdinfo -lvcd -liso9660 -lcdio   -lm
mkdir .libs
libtool: link: cannot find the library `/var/tmp/portage/libcdio-0.64/image/usr/lib/libcdio.la'
make[2]: *** [cd-info] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/libcdio-0.64/work/libcdio-0.64/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libcdio-0.64/work/libcdio-0.64'
make: *** [all] Error 2

!!! ERROR: dev-libs/libcdio-0.64 failed.
!!! Function src_compile, Line 18, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


This was a clean recompile of dev-libs/libcdio. The directory /var/tmp/portage/libcdio-0.64/ did not contain the string "image/" except as a value for ${D} in temp/environment.

I don't know and my head hurts. I'm kind of thinking this is a local problem for me. Will let you know if it isn't.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-31 18:10:26 UTC
Dragonheart, figure out what .la file is trying to link to that... it's a libtool bug, and the package that made it probably needs an elibtoolize... just grep through /usr/lib/*.la for '/var/tmp/portage'...
Comment 7 Gregory P. Smith 2004-08-01 17:02:37 UTC
I consistently hit this xine-lib compile error as well.  Nothing in /usr/lib/*.la contains /var/tmp/portage according to grep.
Comment 8 Daniel Black (RETIRED) gentoo-dev 2004-08-01 17:19:55 UTC
Jeremy is great ;-)

recompiled some dependancies based that had libraries with /var/tmp/portage in them.  Compiled fine then.

Leaving this open based on it using CFLAGS not specified by user:

I appreciate some options need stripping but some are added:
-O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4  -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions 

Only CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
was entered.
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2004-08-01 23:43:23 UTC
arches really don't need to be CCd on something like this...  removing them from CC
Comment 10 Gregory P. Smith 2004-08-02 00:24:13 UTC
after unmerging and remerging anything with /var/tmp/portage in the /usr/lib/*.la files my xine-lib emerge succeeded.  (i believe i goofed earlier when grpping for /var/tmp/portage in /usr/lib/*.la and not finding anything).  un-ccing myself.
Comment 11 Chris White (RETIRED) gentoo-dev 2004-10-05 22:00:22 UTC
Note to self...
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-22 19:33:29 UTC
Please test with current xine-lib-1.0-r2 as this is the target stable.
Comment 13 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-26 08:28:26 UTC
This bug seems to be more of noise as it has two main problems, probably both fixed.
Please open a cleaner bug if there are still issues with it.