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

Bug 114823

Summary: faad2-2.0-r3 fails to compile after mpeg4atom with gcc-4.0.x
Product: Gentoo Linux Reporter: Garrett Cooper <yanegomi>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Garrett Cooper 2005-12-07 18:55:21 UTC
faad2 refuses to compile after this branch with lowered CFLAGS or my atypical
CFLAGS. I tried removing my lone CXXFLAG as well and it doesn't matter; it just
seems to not like building with gcc-4.0 / glibc-2.3.6. However, if I try and
emerge faad2 with gcc-3.4.4, the compile completes as expected.

Reproducible: Always
Steps to Reproduce:
1. Run emerge faad2
Actual Results:  
make[3]: Leaving directory `/var/tmp/portage/faad2-2.0-r3/work/faad2/common/mp4v2'
Making all in mp4ff
make[3]: Entering directory `/var/tmp/portage/faad2-2.0-r3/work/faad2/common/mp4ff'
if /bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H
-I. -I. -I../..    -O2 -g -DUSE_TAGGING=1 -O3 -march=pentium4 -mtune=pentium4
-mmmx -msse -msse2 -mfpmath=sse,387 -momit-leaf-frame-pointer -ftracer
-fforce-addr -funroll-loops -pipe -MT mp4ff.lo -MD -MP -MF ".deps/mp4ff.Tpo" \
  -c -o mp4ff.lo `test -f 'mp4ff.c' || echo './'`mp4ff.c; \
then mv -f ".deps/mp4ff.Tpo" ".deps/mp4ff.Plo"; \
else rm -f ".deps/mp4ff.Tpo"; exit 1; \
fi
if /bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H
-I. -I. -I../..    -O2 -g -DUSE_TAGGING=1 -O3 -march=pentium4 -mtune=pentium4
-mmmx -msse -msse2 -mfpmath=sse,387 -momit-leaf-frame-pointer -ftracer
-fforce-addr -funroll-loops -pipe -MT mp4atom.lo -MD -MP -MF ".deps/mp4atom.Tpo" \
  -c -o mp4atom.lo `test -f 'mp4atom.c' || echo './'`mp4atom.c; \
then mv -f ".deps/mp4atom.Tpo" ".deps/mp4atom.Plo"; \
else rm -f ".deps/mp4atom.Tpo"; exit 1; \
fi
mkdir .libs
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -O2 -g -DUSE_TAGGING=1
-O3 -march=pentium4 -mtune=pentium4 -mmmx -msse -msse2 -mfpmath=sse,387
-momit-leaf-frame-pointer -ftracer -fforce-addr -funroll-loops -pipe -MT
mp4atom.lo -MD -MP -MF .deps/mp4atom.Tpo -c mp4atom.c  -fPIC -DPIC -o
.libs/mp4atom.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -O2 -g -DUSE_TAGGING=1
-O3 -march=pentium4 -mtune=pentium4 -mmmx -msse -msse2 -mfpmath=sse,387
-momit-leaf-frame-pointer -ftracer -fforce-addr -funroll-loops -pipe -MT
mp4ff.lo -MD -MP -MF .deps/mp4ff.Tpo -c mp4ff.c  -fPIC -DPIC -o .libs/mp4ff.o
In file included from mp4ffint.h:35,
                 from mp4atom.c:29:
mp4ff_int_types.h:23:7: warning: no newline at end of file
In file included from mp4atom.c:29:
mp4ffint.h:329:7: warning: no newline at end of file
mp4atom.c: In function 'mp4ff_read_esds':
mp4atom.c:283: warning: pointer targets in passing argument 2 of
'mp4ff_read_data' differ in signedness
In file included from mp4ffint.h:35,
                 from mp4ff.c:30:
mp4ff_int_types.h:23:7: warning: no newline at end of file
In file included from mp4ff.c:30:
mp4ffint.h:329:7: warning: no newline at end of file
mp4ff.c:91: error: static declaration of 'mp4ff_track_add' follows non-static
declaration
mp4ffint.h:304: error: previous declaration of 'mp4ff_track_add' was here
mp4ff.c: In function 'mp4ff_read_sample':
mp4ff.c:385: warning: pointer targets in passing argument 2 of 'mp4ff_read_data'
differ in signedness
mp4ff.c: In function 'mp4ff_read_sample_v2':
mp4ff.c:411: warning: pointer targets in passing argument 2 of 'mp4ff_read_data'
differ in signedness
make[3]: *** [mp4ff.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -O2 -g -DUSE_TAGGING=1
-O3 -march=pentium4 -mtune=pentium4 -mmmx -msse -msse2 -mfpmath=sse,387
-momit-leaf-frame-pointer -ftracer -fforce-addr -funroll-loops -pipe -MT
mp4atom.lo -MD -MP -MF .deps/mp4atom.Tpo -c mp4atom.c -o mp4atom.o >/dev/null 2>&1
make[3]: Leaving directory `/var/tmp/portage/faad2-2.0-r3/work/faad2/common/mp4ff'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/faad2-2.0-r3/work/faad2/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/faad2-2.0-r3/work/faad2'
make: *** [all] Error 2

Expected Results:  
Proper compilation.

gcooper@sprsd / $ emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r1,
2.6.14-nitro2 i686)
=================================================================
System uname: 2.6.14-nitro2 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.13
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -mtune=pentium4 -mmmx -msse -msse2 -mfpmath=sse,387
-momit-leaf-frame-pointer -ftracer -fforce-addr -funroll-loops -pipe"
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 -march=pentium4 -mtune=pentium4 -mmmx -msse -msse2
-mfpmath=sse,387 -momit-leaf-frame-pointer -ftracer -fforce-addr -funroll-loops
-pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en_US ja_JP"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/lcl/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac alsa apm audiofile avi bitmap-fonts bzip2 cdr cjk crypt cups curl
dvdr emboss encode exif expat flac fortran gdbm gif glut gmp gpm gstreamer gtk
gtk2 imagemagick imlib ipv6 java jpeg lcms libwww mmx mmxext mng mozilla mp3
mpeg ncurses nls nptl nsplugin nvidia ogg oggvorbis opengl oss pam pcre pdflib
perl png python quicktime readline samba sdl slang spell sse sse2 ssl tcpd tiff
truetype truetype-fonts type1-fonts udev unicode vorbis xml2 xmms xv xvid zlib
linguas_en_US linguas_ja_JP userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-08 00:30:29 UTC

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