From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 17 12:40:10 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7371F1065694 for ; Mon, 17 Sep 2012 12:40:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4A96F8FC15 for ; Mon, 17 Sep 2012 12:40:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8HCeAKD024878 for ; Mon, 17 Sep 2012 12:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8HCeAXV024877; Mon, 17 Sep 2012 12:40:10 GMT (envelope-from gnats) Resent-Date: Mon, 17 Sep 2012 12:40:10 GMT Resent-Message-Id: <201209171240.q8HCeAXV024877@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, anonymous Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 172C81065674 for ; Mon, 17 Sep 2012 12:39:23 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id DDA048FC18 for ; Mon, 17 Sep 2012 12:39:22 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8HCdMeQ092287 for ; Mon, 17 Sep 2012 12:39:22 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q8HCdM24092286; Mon, 17 Sep 2012 12:39:22 GMT (envelope-from nobody) Message-Id: <201209171239.q8HCdM24092286@red.freebsd.org> Date: Mon, 17 Sep 2012 12:39:22 GMT From: anonymous To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/171707: multimedia/mplayer: i386 clang build error X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2012 12:40:10 -0000 >Number: 171707 >Category: ports >Synopsis: multimedia/mplayer: i386 clang build error >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Sep 17 12:40:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: anonymous >Release: FreeBSD 9.1-RC1 i368 >Organization: >Environment: FreeBSD FreeBSD 9.1-RC1 FreeBSD 9.1-RC1 #0: Thu Aug 23 10:16:04 PDT 2012 root@FreeBSD:/usr/obj/usr/src/sys/CUSTOM i386 >Description: Clang fails when building mp3lib on i386. clang -MD -MP -D_ISOC99_SOURCE -D_BSD_SOURCE -O2 -pipe -O3 -fomit-frame-pointer -ffast-math -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FILE_OFFSET_BITS=64 -Ilibdvdread4 -I. -Iffmpeg -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -fomit-frame-pointer -c -o mp3lib/decode_i586.o mp3lib/decode_i586.c mp3lib/decode_i586.c:65:23: error: unknown token in expression " pushl %%eax\n\t" ^ :22:18: note: instantiated into assembly here movl 4+(%esp),%edx ^ mp3lib/decode_i586.c:68:23: error: unknown token in expression " pushl %%eax\n\t" ^ :25:18: note: instantiated into assembly here movl 8+(%esp),%eax ^ 2 errors generated. gmake: *** [mp3lib/decode_i586.o] Error 1 gmake: *** Waiting for unfinished jobs.... 3 warnings generated. *** Error code 1 >How-To-Repeat: >Fix: "As part of the code cleanup efforts, the internal libfaad2 copy has been removed since the FFmpeg decoder is working well. Also the internal mp3lib copy is no longer used by default since the many alternatives (FFmpeg, libmpg123, libmad) avoid its recurring issues like incorrect decoding with newer compilers. However it can still be forced at runtime for easier tracking of regressions. Please do not rely on this since it will be removed in the future. If you do not actually need it consider disabling it at compile time with --disable-mp3lib." http://www.mplayerhq.hu/design7/news.html Patch attached with submission follows: diff -u mplayer.orig/Makefile mplayer/Makefile --- mplayer.orig/Makefile 2012-09-17 05:31:58.240233837 -0700 +++ mplayer/Makefile 2012-09-17 05:30:23.915234903 -0700 @@ -92,7 +92,8 @@ --disable-libdirac-lavc \ --disable-mencoder \ --disable-mpg123 \ - --disable-musepack + --disable-musepack \ + --disable-mp3lib .include "${.CURDIR}/Makefile.options" diff -u mplayer.orig/Makefile.options mplayer/Makefile.options --- mplayer.orig/Makefile.options 2012-09-17 05:32:13.174238904 -0700 +++ mplayer/Makefile.options 2012-09-17 05:31:25.148241954 -0700 @@ -52,7 +52,7 @@ .endif #WITH_DEBUG #Supported architectures for clang -.if ${ARCH} == "amd64" +.if ${ARCH} == "i386" || ${ARCH} == "amd64" MPLAYER_CLANG_SUPPORTED_ARCH= yes .endif >Release-Note: >Audit-Trail: >Unformatted: