Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34005 - compilation of mjpegtools fails
Summary: compilation of mjpegtools fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-21 04:50 UTC by meyerm
Modified: 2003-11-29 14:51 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 meyerm 2003-11-21 04:50:10 UTC
mjpegtools-1.6.1.90-r1 fails with 
 
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools
\" -DLAVPLAY_VERSION=\"1.6.1.90\" -I/usr/include -I/usr/include/glib-1.2 -I/
usr/lib/glib/include -I/usr/local/include  -I/usr/X11R6/include -I /usr/X11R6/
include -I../utils -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/
glib/include -I/usr/X11R6/include -I/usr/local/src/jpeg-mmx    -mcpu=i686 
-march=i686 -march=pentium3  -O2 -msse2 -fomit-frame-pointer -Wall -Wunused -c 
`test -f 'yuvcorrect_functions.c' || echo './'`yuvcorrect_functions.c 
/var/tmp/portage/mjpegtools-1.6.1.90-r1/temp/ccuXy7kT.s: Assembler messages: 
/var/tmp/portage/mjpegtools-1.6.1.90-r1/temp/ccuXy7kT.s:284: Error: suffix or 
operands invalid for `movd' 
/var/tmp/portage/mjpegtools-1.6.1.90-r1/temp/ccuXy7kT.s:525: Error: suffix or 
operands invalid for `movd' 
make[2]: *** [yuvscaler_resample.o] Fehler 1 
make[2]: *** Warte auf noch nicht beendete Prozesse... 
yuvcorrect_functions.c: In function `yuvcorrect_luminance_treatment': 
yuvcorrect_functions.c:745: warning: operation on `u_c_p' may be undefined 
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.1.90-r1/work/
mjpegtools-1.6.1.90/lavtools' 
make[1]: *** [all-recursive] Fehler 1 
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.1.90-r1/work/
mjpegtools-1.6.1.90' 
make: *** [all] Fehler 2 
 

Reproducible: Always
Steps to Reproduce:
1. emerge -u mjpegtools 



yavin root # nasm -v 
NASM version 0.98.38 compiled on Nov 11 2003 
 
yavin root # gcc --version 
gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) 
 
yavin root # emerge info 
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22) 
================================================================= 
System uname: 2.4.22 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz 
Gentoo Base System version 1.4.3.10p1 
distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.2 [enabled] 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium4 -O2 -mfpmath=sse -msse2 -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/
share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/
texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/
config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=pentium4 -O2 -mfpmath=sse -msse2 -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox ccache autoaddcvs" 
GENTOO_MIRRORS=" http://mirror.fachschaften.tu-muenchen.de/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://mirror.fachschaften.tu-muenchen.de/gentoo-portage" 
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad 
mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib 
alsa gdbm berkdb slang readline arts tetex bonobo svga ggi tcltk java mysql X 
sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif 
opengl gphoto2 ldap cdr pda aalib apache2 video_cards_radeon linguas_de"
Comment 1 SpanKY gentoo-dev 2003-11-21 07:04:11 UTC
append -mno-sse and -mno-sse2 in your CFLAGS and see if it fixes this ... looks like a bug with gcc 3.2.3 ... works fine with 3.3.x
Comment 2 meyerm 2003-11-21 07:43:24 UTC
Yes, without sse/sse2 it works. I think I should start using ~x86 as standard... :-/
Comment 3 Eldad Zack (RETIRED) gentoo-dev 2003-11-26 09:21:07 UTC
I've hit another problem. compiled for i686, without SSE, but with stack-protector. (it compiles ok without the stack-protector flag)

here's the output - it pukes with "Internal compiler error"

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.1.90\" -I/usr/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/local/include -I/usr/include/quicktime -I/usr/X11R6/include -I /usr/X11R6/include -I../utils -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include     -mcpu=i686 -march=i686 -O3 -march=i686 -funroll-loops -pipe -fstack-protector -fomit-frame-pointer -Wall -Wunused -c `test -f 'yuvscaler.c' || echo './'`yuvscaler.c
yuvscaler.c: In function `yuvscaler_print_information':
yuvscaler.c:338: Internal compiler error in instantiate_virtual_regs_1, at function.c:3989
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [yuvscaler.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.1.90-r1/work/mjpegtools-1.6.1.90/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.1.90-r1/work/mjpegtools-1.6.1.90'
make: *** [all] Error 2

!!! ERROR: media-video/mjpegtools-1.6.1.90-r1 failed.
!!! Function src_compile, Line 66, Exitcode 2
!!! compile problem




emerge info:

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22)
=================================================================
System uname: 2.4.22 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.3.10
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe -fstack-protector -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe -fstack-protector -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache autoaddcvs sandbox buildpkg"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
MAKEOPTS=""
PKGDIR="/home/httpd/html/gentoo/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm encode foomaticdb libg++ mikmod ncurses nls pdflib quicktime truetype xml2 xv slang ggi tcltk gpm pam libwww ssl perl python imlib motif X -gtk -gtk2 qt kde -gnome alsa cups avi crypt cdr curl gd gif png imap jack jpeg -ldap -lirc mad mpeg oggvorbis opengl readline sdl -svga java -tcpd xmms zlib -arts maildir -doc -berkdb memlimit -esd mozilla -spell -tetex -gdbm moznoirc moznomail moznocompose"


Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-11-27 14:10:56 UTC
please try 1.6.1.91
&
1.6.1.92 (which is not in cvs cause of broken gcc2 support)
Comment 5 Eldad Zack (RETIRED) gentoo-dev 2003-11-27 20:25:57 UTC
both failing because of the same error: "yuvscaler.c:338: Internal compiler error in instantiate_virtual_regs_1, at function.c:3989"
Comment 6 SpanKY gentoo-dev 2003-11-29 14:31:05 UTC
eldad, file a new bug

your issue is completely unrelated to the original bug report

i've updated the ebuild to disable sse2 support for now
Comment 7 Eldad Zack (RETIRED) gentoo-dev 2003-11-29 14:51:24 UTC
OK mike.

opened bug 34726.