From owner-freebsd-ports-bugs Thu Feb 20 14:20:18 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9237A37B405 for ; Thu, 20 Feb 2003 14:20:13 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD3AE43FBD for ; Thu, 20 Feb 2003 14:20:11 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1KMKBNS044416 for ; Thu, 20 Feb 2003 14:20:11 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1KMKBX3044415; Thu, 20 Feb 2003 14:20:11 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E39BE37B401 for ; Thu, 20 Feb 2003 14:18:41 -0800 (PST) Received: from mail.inka.de (quechua.inka.de [193.197.184.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83ABE43FAF for ; Thu, 20 Feb 2003 14:18:40 -0800 (PST) (envelope-from naddy@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with gbsmtp id 18lz1a-000262-00; Thu, 20 Feb 2003 23:18:38 +0100 Received: from kemoauc.mips.inka.de (localhost [127.0.0.1]) by kemoauc.mips.inka.de (8.12.6/8.12.6) with ESMTP id h1KLT4t0082853 for ; Thu, 20 Feb 2003 22:29:04 +0100 (CET) (envelope-from naddy@localhost.mips.inka.de) Received: (from naddy@localhost) by kemoauc.mips.inka.de (8.12.6/8.12.6/Submit) id h1KLT4o9082852; Thu, 20 Feb 2003 22:29:04 +0100 (CET) Message-Id: <200302202129.h1KLT4o9082852@kemoauc.mips.inka.de> Date: Thu, 20 Feb 2003 22:29:04 +0100 (CET) From: Christian Weisgerber Reply-To: Christian Weisgerber To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/48506: multimedia/libmpeg2 mcpu build problem on alpha Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 48506 >Category: ports >Synopsis: multimedia/libmpeg2 mcpu build problem on alpha >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 20 14:20:11 PST 2003 >Closed-Date: >Last-Modified: >Originator: Christian Weisgerber >Release: FreeBSD 5.0-CURRENT alpha >Organization: >Environment: System: FreeBSD kemoauc.mips.inka.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Wed Feb 5 13:01:08 CET 2003 naddy@kemoauc.mips.inka.de:/usr/obj/usr/src/sys/KEMOAUC alpha >Description: 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. >How-To-Repeat: >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/multimedia/libmpeg2/Makefile,v retrieving revision 1.9 diff -u -r1.9 Makefile --- Makefile 14 Jan 2003 15:54:22 -0000 1.9 +++ Makefile 20 Feb 2003 21:14:58 -0000 @@ -39,6 +39,12 @@ CONFIGURE_ARGS+= --disable-sdl .endif +# We must be able to build EV6 code; actual CPU-type optimizations +# are chosen at runtime. +.if ${MACHINE_ARCH} == "alpha" +CFLAGS:= ${CFLAGS:N-mcpu=*} +.endif + pre-everything:: @${ECHO_MSG} "====>" .ifndef(WITH_SDL) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message