Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68052 - media-video/avidemux-2.0.30 fails to build
Summary: media-video/avidemux-2.0.30 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-18 13:40 UTC by Jörg Spanke
Modified: 2004-10-19 13:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Spanke 2004-10-18 13:40:25 UTC
media-video/avidemux-2.0.30 does not build on amd64 with gcc 3.4.

Reproducible: Always
Steps to Reproduce:
1. emerge avidmux
2.
3.

Actual Results:  
make[3]: Leaving directory 
`/var/tmp/portage/avidemux-2.0.30/work/avidemux-2.0.30/adm_lavcodec/libpostproc' 
Making all in i386 
make[3]: Entering directory 
`/var/tmp/portage/avidemux-2.0.30/work/avidemux-2.0.30/adm_lavcodec/i386' 
make[3]: Nothing to be done for `all'. 
make[3]: Leaving directory 
`/var/tmp/portage/avidemux-2.0.30/work/avidemux-2.0.30/adm_lavcodec/i386' 
Making all in ppc 
make[3]: Entering directory 
`/var/tmp/portage/avidemux-2.0.30/work/avidemux-2.0.30/adm_lavcodec/ppc' 
make[3]: Nothing to be done for `all'. 
make[3]: Leaving directory 
`/var/tmp/portage/avidemux-2.0.30/work/avidemux-2.0.30/adm_lavcodec/ppc' 
make[3]: Entering directory 
`/var/tmp/portage/avidemux-2.0.30/work/avidemux-2.0.30/adm_lavcodec' 
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -I.. 
-DHAVE_AV_CONFIG_H -DHAVE_MMX -msse -O3  -I/usr/include/malloc 
-I/usr/include/SDL -D_REENTRANT  -fPIC -O2 -pipe -O2 -MT cputest.o -MD -MP 
-MF".deps/cputest.Tpo" -c -o cputest.o `test -f 'i386/cputest.c' || echo 
'./'`i386/cputest.c; \ 
then mv -f ".deps/cputest.Tpo" ".deps/cputest.Po"; else rm -f 
".deps/cputest.Tpo"; exit 1; fi 
{standard input}: Assembler messages: 
{standard input}:10: Error: suffix or operands invalid for `pop' 
{standard input}:13: Error: suffix or operands invalid for `push' 
{standard input}:16: Error: suffix or operands invalid for `pop' 
make[3]: *** [cputest.o] Error 1 
make[3]: Leaving directory 
`/var/tmp/portage/avidemux-2.0.30/work/avidemux-2.0.30/adm_lavcodec' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/avidemux-2.0.30/work/avidemux-2.0.30/adm_lavcodec' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/avidemux-2.0.30/work/avidemux-2.0.30' 
make: *** [all] Error 2 
 
!!! ERROR: media-video/avidemux-2.0.30 failed. 
!!! Function src_compile, Line 63, Exitcode 2 
!!! make failed 
!!! If you need support, post the topmost build error, NOT this status message. 
 

Expected Results:  
A nice build of avidemux 

Portage 2.0.51_rc9 (gcc34-amd64-2004.1, gcc-3.4.2, glibc-2.3.4.20041006-r0, 
2.6.8-gentoo-r6 x86_64) 
================================================================= 
System uname: 2.6.8-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+ 
Gentoo Base System version 1.5.3 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-fPIC -O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-fPIC -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distlocks" 
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ http://gentoo.inode.at/ 
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ 
http://ftp.easynet.nl/mirror/gentoo/ 
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ 
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distrib 
utions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" 
USE="X acpi acpi4linux alsa amd64 apache2 arts artswrappersuid audiofile avi 
berkdb bitmap-fonts cdparanoia cdr crypt cups dga doc dvb dvd dvdr encode f77 
faad fbcon ffmpeg flac foomaticdb freetype gdbm gif gimp gimpprint gpm gtk gtk2 
guile imagemagick imlib innodb java jpeg kde libg++ libwww md5sum mikmod mpeg 
mssql mysql mysqli nas ncurses nls nvidia odbc offensive oggvorbis opengl opie 
pam pda pdflib perlpng python qt quicktime readline scanner sdl slang slp spell 
ssl tcltk tcpd tetex tiff transcode truetype unicode usb wmf xine xml xml2 xmms 
xprint xv zeo zlib linguas_de"
Comment 1 Jörg Spanke 2004-10-18 13:50:59 UTC
I guess here comes the not working part of avidemux-2.0.30/adm_lavcodec/i386/cputest.c:

/* Function to test if multimedia instructions are supported...  */
int mm_support(void)
{
    int rval;
    int eax, ebx, ecx, edx;

    __asm__ __volatile__ (
                          /* See if CPUID instruction is supported ... */
                          /* ... Get copies of EFLAGS into eax and ecx */
                          "pushf\n\t"
                          "pop %0\n\t"
                          "movl %0, %1\n\t"

                          /* ... Toggle the ID bit in one copy and store */
                          /*     to the EFLAGS reg */
                          "xorl $0x200000, %0\n\t"
                          "push %0\n\t"
                          "popf\n\t"

                          /* ... Get the (hopefully modified) EFLAGS */
                          "pushf\n\t"
                          "pop %0\n\t"
                          : "=a" (eax), "=c" (ecx)
                          :
                          : "cc"
                          );

    if (eax == ecx)
Comment 2 Marc Hildebrand (RETIRED) gentoo-dev 2004-10-19 13:38:56 UTC
I added a patch that should fix the problem.
Wait some time, resync and try again.
Please reopen if the bug still occurs.
Thanks for the report!