Bug 67398

Summary: some ports (mplayer, faad, libxine and ffmpeg) will not compile under 5.2 current
Product: Ports & Packages Reporter: Tom Proett <proett>
Component: Individual Port(s)Assignee: Michael Johnson <ahze>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Tom Proett 2004-05-30 23:30:18 UTC
Some ports generate an error:

can't find a register in class `GENERAL_REGS' while reloading `asm'

This does not seem to happen under 4.9

How-To-Repeat: On a 5.2 machine, try to build faad or mplayer.
Comment 1 Michael Johnson 2004-05-30 23:57:52 UTC
>
>
> can't find a register in class `GENERAL_REGS' while reloading `asm'
>
> This does not seem to happen under 4.9
>> How-To-Repeat:
> On a 5.2 machine, try to build faad or mplayer
can you send more info with faad?
Comment 2 azure 2004-05-31 08:01:03 UTC
I didn't look closely where it failed.  It turns out the faad port
caused the mpeg4ip port to be built:

cc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../include
-I/usr/local/include/SDL11 -I/usr/local/include -D_THREAD_SAFE -DHAVE_MMX
-fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2
-g -mcpu=pentiumpro -DUSE_MMX -DMPEG4IP -c output.c -MT output.lo -MD -MP
-MF .deps/output.TPlo  -fPIC -DPIC -o .libs/output.lo
output.c: In function `mpeg3video_rgb16_mmx':
output.c:57: error: can't find a register in class `GENERAL_REGS' while
reloading `asm'
gmake[5]: *** [output.lo] Error 1
gmake[5]: Leaving directory
`/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.0/common/video/libmpeg32/video'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory
`/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.0/common/video/libmpeg32'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.0/common/video'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.0/common'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.0'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/multimedia/mpeg4ip.
*** Error code 1

Stop in /usr/ports/audio/faad.


On Sun, 30 May 2004, Michael Johnson wrote:

> >
> >
> > can't find a register in class `GENERAL_REGS' while reloading `asm'
> >
> > This does not seem to happen under 4.9
> >> How-To-Repeat:
> > On a 5.2 machine, try to build faad or mplayer
> can you send more info with faad?
>
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2004-06-01 03:14:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lioux

Over to maintainer of multimedia/mpeg4ip.
Comment 4 Thomas E. Zander 2004-06-14 15:05:11 UTC
This is problably not a mplayer/faad/xine problem.
It's a gcc problem which turns up when trying to use some optimizations
together with special SIMD functions like -funroll-loops and 3DNow!.

Normally it disappears when just using the standard CFLAGS with less
special optimizations, for example -O -pipe -march=<something>.

In the mentioned case (compiling faad), my blind guess is that
-fomit-frame-pointer or the --falign* cause problems.

Regards,
Riggs

-- 
- "[...] I talked to the computer at great length and
-- explained my view of the Universe to it" said Marvin.
--- And what happened?" pressed Ford.
---- "It committed suicide." said Marvin.
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2005-03-11 09:37:52 UTC
Responsible Changed
From-To: lioux->ahze

Over to new maintainer to see if this is still a problem.
Comment 6 Michael Johnson freebsd_committer freebsd_triage 2005-03-11 11:03:21 UTC
State Changed
From-To: open->closed

This should be fixed with latest ffmpeg