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

Bug 24648

Summary: avidemux will not build, ADM_interlaced.cpp -> {standard input}:133: Error: symbol `admlloopp' is already defined
Product: Gentoo Linux Reporter: Stefan Andersen <spamfilter>
Component: Current packagesAssignee: Martin Holzer (RETIRED) <mholzer>
Status: VERIFIED FIXED    
Severity: normal CC: zypher
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefan Andersen 2003-07-17 02:36:39 UTC
When I try to emerge avidemux 2.0.10 I cant build it.
I get the folowing output:
[lots of build output removed]
source='ADM_interlaced.cpp' object='ADM_interlaced.o' libtool=no \
depfile='.deps/ADM_interlaced.Po' tmpdepfile='.deps/ADM_interlaced.TPo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/freetype2    -I.. -IADM_library
-I../ADM_library  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -W
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -O2 -O3 -march=pentium3 -pipe
-fomit-frame-pointer -funroll-loops -fforce-addr -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4 -fno-exceptions -fno-check-new -O2  -c -o
ADM_interlaced.o `test -f ADM_interlaced.cpp || echo './'`ADM_interlaced.cpp
ADM_interlaced.cpp: In function `long unsigned int 
   ADMVideo_interlaceCount(unsigned char*, long unsigned int, long unsigned 
   int)':
ADM_interlaced.cpp:112: warning: unused variable `long unsigned int x'
ADM_interlaced.cpp:118: warning: unused variable `long unsigned int stride'
ADM_interlaced.cpp: At top level:
ADM_interlaced.cpp:81: warning: `mmx_t _added' defined but not used
ADM_interlaced.cpp:82: warning: `mmx_t _l255' defined but not used
ADM_interlaced.cpp:83: warning: `mmx_t _l0' defined but not used
{standard input}: Assembler messages:
{standard input}:133: Error: symbol `admlloopp' is already defined
{standard input}:170: Error: symbol `admlloopp' is already defined
make[3]: *** [ADM_interlaced.o] Error 1


Reproducible: Always
Steps to Reproduce:
1.emerge avidemux


Actual Results:  
avidemux not installed...


Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/
http://mirrors.sunsite.dk/gentoo/ ftp://sunsite.dk/mirrors/gentoo/
http://distro.ibiblio.org/gentoo "
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config
/usr/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="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww
mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib directfb gtkhtml alsa gdbm berkdb slang readline aalib nas bonobo svga ggi
tcltk java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome
gtk qt motif opengl -arts dga dvd evo fbcon flash gphoto2 gtk2 imap ldap mozilla
samba sse tiff wmf xml kde"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops
-fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 "
CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops
-fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 "
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox userpriv usersandbox"
Comment 1 Marc Hildebrand (RETIRED) gentoo-dev 2003-07-17 06:23:47 UTC
Hi!
I'll try to reproduce that when I return from work.
In the meantime please try to reduce your CFLAGS a bit (just guessing).
Thanks for the report,
Marc.
Comment 2 Nick Hadaway 2003-07-19 10:48:42 UTC
avidemux-2.0.10-r1 is now in portage with lots of ebuild changes.  Please test.
Comment 3 Marc Hildebrand (RETIRED) gentoo-dev 2003-07-20 02:31:30 UTC
Yepp, works fine here.
The thing is, I build it (as my whole system) with: 
CFLAGS="-march=athlon-xp -Os -pipe -mfpmath=sse -mmmx -msse -m3dnow"

Maybe we could here a word from some of the excessive-cflags-users?
Comment 4 Stefan Andersen 2003-07-20 17:14:04 UTC
I still have the same problem (its my CFLAGS That are reported in the bugreport)
Comment 5 Marc Hildebrand (RETIRED) gentoo-dev 2003-07-20 22:29:54 UTC
Stefan: When I use your CFLAGS I get the same error.
It work with: 
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -falign-functions=4"
Just try to use these flags and post the results here.
Comment 6 Stefan Andersen 2003-07-21 02:28:42 UTC
It now works, using your CFLAGS
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -falign-functions=4"
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-07-21 12:03:13 UTC
fixed
Comment 8 Stefan Andersen 2003-08-19 12:17:08 UTC
I got this problem again when the package was upgraded (I only temorary changed my  CFLAGS)
So I did a little investigation of what flag got me the problem 
My orginal flags lookad like
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 "

And -funroll-loops seems to cause me the problem, Since 

CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 "

workd.

I will remove this flag from my CFLAGS for all builds, but I don't know if this is something that can/should be blocked in the ebuild for this product to avoid  this problem from other setup's. 

Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-08-19 13:34:46 UTC
see bug #26936