Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2005 17:08:07 -0300
From:      Elifarley Callado Coelho Cruz <elifarley@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Error installing 'avifile-0.7.41,2' (in function `transpose4x4', dsputil_mmx.c:615).
Message-ID:  <6a219efc0503151208a3b2b79@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I get an error when I try to install avifile (In function
`transpose4x4', dsputil_mmx.c:615: error: can't find a register in
class `GENERAL_REGS' while reloading `asm')

The closest problem I could find using google was this:

http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/017563.html

On that thread, Michael Nottebrock suggested "-march and inline asm
don't always place nice. Tried without yet?"

So, I removed the line "CPUTYPE=i686" from make.conf, to get rid of
the "-march" option, but it didn`t help.

More info below:

% uname -a 
FreeBSD dexter.lab 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5
04:19:18 UTC 2004    
root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

/etc/make.conf excerpt (I have a pentium 4):

--
#CPUTYPE=i686

CFLAGS= -pipe -funroll-loops -O2 #-fno-unit-at-a-time
# -fdisable-runtime-cpudetection
COPTFLAGS= -pipe -funroll-loops -O2
--

error log:

Installing 'avifile-0.7.41,2' from a port (multimedia/avifile)

[...]

/bin/sh ../../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I.
-I../../../include   -D
HAVE_AV_CONFIG_H -I./.. -I/usr/local/include -I/usr/local/include 
-I/usr/X11R6/include -D
_GETOPT_H -Wall -Wno-unused -I../../../include  -pipe -funroll-loops 
-ffast-math  -D_LARG
EFILE_SOURCE -D_FILE_OFFSET_BITS=64  -c dsputil_mmx.c
 cc -DHAVE_CONFIG_H -I. -I. -I../../../include -DHAVE_AV_CONFIG_H
-I./.. -I/usr/local/incl
ude -I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -Wall
-Wno-unused -I../../../inc
lude -pipe -funroll-loops -ffast-math -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -c dsputi
l_mmx.c  -fPIC -DPIC -o .libs/dsputil_mmx.o
dsputil_mmx.c: In function `transpose4x4':
dsputil_mmx.c:615: error: can't find a register in class
`GENERAL_REGS' while reloading `a
sm'
dsputil_mmx.c: In function `dsputil_init_mmx':
dsputil_mmx.c:3081: warning: assignment from incompatible pointer type
dsputil_mmx.c:3082: warning: assignment from incompatible pointer type
gmake[3]: *** [dsputil_mmx.lo] Error 1
gmake[3]: Leaving directory
`/volumes/smallFiles/usr-ports/multimedia/avifile/work/avifile
-0.7-0.7.41/ffmpeg/libavcodec/i386'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/volumes/smallFiles/usr-ports/multimedia/avifile/work/avifile
-0.7-0.7.41/ffmpeg/libavcodec'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/volumes/smallFiles/usr-ports/multimedia/avifile/work/avifile
-0.7-0.7.41/ffmpeg'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop in /volumes/smallFiles/usr-ports/multimedia/avifile.
*** Error code 1
:
Stop in /volumes/smallFiles/usr-ports/multimedia/avifile.
        ! multimedia/avifile    (new compiler error)

-- 
There are 10 types of people in the world:
Those who understand binary and those who don't



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a219efc0503151208a3b2b79>