Bug 48506

Summary: multimedia/libmpeg2 mcpu build problem on alpha
Product: Ports & Packages Reporter: Christian Weisgerber <naddy>
Component: Individual Port(s)Assignee: Mario Sergio Fujikawa Ferreira <lioux>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Christian Weisgerber freebsd_committer freebsd_triage 2003-02-20 22:20:11 UTC
On alpha, multimedia/libmpeg2 passes -Wa,-mev6 to the compiler in
order to be able to build MVI code.  However, if -mcpu=XXX is passed
in CFLAGS (e.g. from setting CPUTYPE in /etc/mk.conf), it will
override the CPU type.  If that CPU model does not support MVI, the
build will fail:

cc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -pipe -mcpu=ev56 -Wall -fomit-frame-pointer -Wa,-mev6 -MT idct_alpha.lo -MD -MP -MF .deps/idct_alpha.Tpo -c idct_alpha.c -o .libs/idct_alpha.lo
../include/alpha_asm.h:69: warning: `WORD_VEC' defined but not used
{standard input}: Assembler messages:
{standard input}:969: Error: opcode `maxsw4' not supported for target ev56
{standard input}:975: Error: opcode `minsw4' not supported for target ev56
{standard input}:981: Error: opcode `pkwb' not supported for target ev56
[...]

Whether MVI code is actually used is chosen at run time.  This is
strictly a build time issue.
Comment 1 Christian Weisgerber freebsd_committer freebsd_triage 2003-02-20 23:39:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lioux

Over to maintainer.
Comment 2 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2003-09-08 01:54:22 UTC
State Changed
From-To: open->closed

Committed, thanks!