Bug 48506 - multimedia/libmpeg2 mcpu build problem on alpha
Summary: multimedia/libmpeg2 mcpu build problem on alpha
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Mario Sergio Fujikawa Ferreira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-20 22:20 UTC by Christian Weisgerber
Modified: 2003-09-08 01:54 UTC (History)
0 users

See Also:


Attachments
file.diff (558 bytes, patch)
2003-02-20 22:20 UTC, Christian Weisgerber
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!