Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86567 - avifile-0.7.43.20050224 compile crashes
Summary: avifile-0.7.43.20050224 compile crashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 12:52 UTC by Andrew Park
Modified: 2006-03-20 01:00 UTC (History)
0 users

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 Andrew Park 2005-03-24 12:52:57 UTC
I tied to emerge / compile avifile (stable) version, but received a compile error that was noted in other bug reports.  I used ACCEPT_KEYWORDS="~x86" to grab latest development version and still had problems with compile.  I tried without CFLAGS="" (received compile error to other bug reports", with CFLAGS="" and with CFLAGS="-O2".  Both had the same result listed below.



Reproducible: Always
Steps to Reproduce:
1.ACCEPT_KEYWORDS="~x86" CFLAGS="" emerge avifile or
ACCEPT_KEYWORDS="~x86" CFLAGS="-O2" emerge avifile
2.
3.

Actual Results:  
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../include -Wall -Wno-unused
-I../../include -march=athlon-xp -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DFPM_INTEL -D_GNU_SOURCE -pipe -c mmx.cpp  -fPIC -DPIC
-o .libs/mmx.o
/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.
-I. -I../../include   -Wall -Wno-unused -I../../include  -march=athlon-xp -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFPM_INTEL -D_GNU_SOURCE -pipe -c
Registry.cpp
mmx.cpp: In function `void zoom_16_bpp(uint16_t*, const uint16_t*, int, int,
   int, int, int)':
mmx.cpp:112: error: can't find a register in class `GENERAL_REGS' while
   reloading `asm'
make[2]: *** [mmx.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../include -Wall -Wno-unused
-I../../include -march=athlon-xp -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DFPM_INTEL -D_GNU_SOURCE -pipe -c Registry.cpp  -fPIC
-DPIC -o .libs/Registry.o
make[2]: Leaving directory
`/var/tmp/portage/avifile-0.7.43.20050224/work/avifile-0.7-0.7.43/lib/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/avifile-0.7.43.20050224/work/avifile-0.7-0.7.43/lib'
make: *** [all-recursive] Error 1

!!! ERROR: media-video/avifile-0.7.43.20050224 failed.
!!! Function src_compile, Line 137, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



Expected Results:  
Successful emerge of avifile (for an emerge of "lives" video editor).

Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.4.23_pre6-gss-r1 i686)
=================================================================
System uname: 2.4.23_pre6-gss-r1 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4,dev-lang/python-2.2.3-r5 [2.3.4 (#1,
Oct 16 2004, 20:33:13)]
dev-lang/python:     2.3.4, 2.2.3-r5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.4.19-r1, 2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib alsa apm arts avi berkdb bitmap-fonts bonobo cdr cjk crypt cups
curl emboss encode esd fam flac font-server foomaticdb fortran gdbm gif gnome
gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 jack java jikes jpeg
libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg ncurses nls nocardbus
oggvorbis opengl oss pam pdflib perl png python quicktime readline scanner sdl
slang speex spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode
usb xml xml2 xmms xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS


My Gentoo:

I am running an older kernel (2.4.x) and am on Xorg 6.8.0 (not 6.8.2).  I use
Gnome only, but may have a few KDE files.  I know that this may not matter, but
just thought your might want to know some variables.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-24 14:15:42 UTC
Please use "New -> Gentoo Linux -> Component: Ebuilds" in future. Infrastructure is not the correct addressee.
Comment 2 Luca Barbato gentoo-dev 2005-03-26 04:41:01 UTC
add -fomit-frame-pointer and tell me if is working then
Comment 3 Andrew Park 2005-03-27 21:47:43 UTC
Executing:

ACCEPT_KEYWORDS="~x86" CFLAGS="-fomit-frame-pointer" emerge avifile

Resulted in:

/bin/sh ../../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include   -DHAVE_AV_CONFIG_H -I./.. -Wall -Wno-unused -I../../../include  -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFPM_INTEL -D_GNU_SOURCE  -c mpegvideo_mmx.c
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -DHAVE_AV_CONFIG_H -I./.. -Wall -Wno-unused -I../../../include -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFPM_INTEL -D_GNU_SOURCE -c mpegvideo_mmx.c  -fPIC -DPIC -o .libs/mpegvideo_mmx.o
dsputil_mmx.c: In function `dsputil_init_mmx':
dsputil_mmx.c:3076: warning: assignment from incompatible pointer type
dsputil_mmx.c:3077: warning: assignment from incompatible pointer type
/bin/sh ../../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include   -DHAVE_AV_CONFIG_H -I./.. -Wall -Wno-unused -I../../../include  -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFPM_INTEL -D_GNU_SOURCE  -c simple_idct_mmx.c
dsputil_mmx.c: In function `transpose4x4':
dsputil_mmx.c:615: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
make[3]: *** [dsputil_mmx.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -DHAVE_AV_CONFIG_H -I./.. -Wall -Wno-unused -I../../../include -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFPM_INTEL -D_GNU_SOURCE -c simple_idct_mmx.c  -fPIC -DPIC -o .libs/simple_idct_mmx.o
make[3]: Leaving directory `/var/tmp/portage/avifile-0.7.43.20050224-r1/work/avifile-0.7-0.7.43/ffmpeg/libavcodec/i386'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.43.20050224-r1/work/avifile-0.7-0.7.43/ffmpeg/libavcodec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.43.20050224-r1/work/avifile-0.7-0.7.43/ffmpeg'
make: *** [all-recursive] Error 1

!!! ERROR: media-video/avifile-0.7.43.20050224-r1 failed.
!!! Function src_compile, Line 140, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Comment 4 Andrew Park 2005-03-27 22:20:39 UTC
Executing:

ACCEPT_KEYWORDS="~x86" CFLAGS="-O2 -fomit-frame-pointer" emerge avifile

Resulted in:

/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../include   -Wall -Wno-unused -I../../include  -march=athlon-xp -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFPM_INTEL -D_GNU_SOURCE -pipe -c mmx.cpp
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../include -Wall -Wno-unused -I../../include -march=athlon-xp -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFPM_INTEL -D_GNU_SOURCE -pipe -c mmx.cpp  -fPIC -DPIC -o .libs/mmx.o
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../include -Wall -Wno-unused -I../../include -march=athlon-xp -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFPM_INTEL -D_GNU_SOURCE -pipe -c Locker.cpp  -fPIC -DPIC -o .libs/Locker.o
mmx.cpp: In function `void zoom_16_bpp(uint16_t*, const uint16_t*, int, int,
   int, int, int)':
mmx.cpp:112: error: can't find a register in class `GENERAL_REGS' while
   reloading `asm'
make[2]: *** [mmx.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.43.20050224-r1/work/avifile-0.7-0.7.43/lib/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.43.20050224-r1/work/avifile-0.7-0.7.43/lib'
make: *** [all-recursive] Error 1

!!! ERROR: media-video/avifile-0.7.43.20050224-r1 failed.
!!! Function src_compile, Line 140, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Comment 5 Andrew Park 2005-03-27 22:28:58 UTC
I forgot to note in the above TWO entries that I had upgraded to gcc 3.4.3.20050110-r1 to see if that would enable me to compile.  If you want I can downgrade.

Andrew
Comment 6 Luca Barbato gentoo-dev 2005-03-28 08:19:30 UTC
you aren't chainging your cflags...

edit the make.conf and put "-march=athlon-xp -pipe -O2 -fomit-frame-pointer"

Comment 7 Andrew Park 2005-03-28 20:12:50 UTC
SUCCESS!  I have successfully emerged avifile.

I am very sorry for wasting your time.  I thought you could replace the CFLAGS in the command line...


Andrew
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-21 17:57:01 UTC
As you seems to have fixed the problem, marking this as fixed.