From owner-freebsd-ports@FreeBSD.ORG Mon Sep 3 13:19:36 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D90811065670 for ; Mon, 3 Sep 2012 13:19:35 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 918C58FC18 for ; Mon, 3 Sep 2012 13:19:35 +0000 (UTC) Received: by vbmv11 with SMTP id v11so7012759vbm.13 for ; Mon, 03 Sep 2012 06:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cqpLcFlUn+JIglt1tLewvlfj5ocZyEk22oN9xSXsRbo=; b=XSVUMEwZ9cwCy+BZBxs8dCPIAhqXx4AWBzA4hY/t3WTp/iWPZ+d1u+Wajq18mwNUiy sguCNSB++Ee/EbMilZhhLX7OsfdmYnGKcguxklcqwbSdvuUl9UR/XcpaKlfGgGybykdF Gw/UulDPkVdegYEEsZ9wxBNoyYRiX89BuRCdQ0V5DCcv5YtpzgAwYRDnUewQ3O2yy0kS 320hVFc+s2lP/N022vRt+oL2qkE/Z4yzm1yG1lDZIFqHuS45CUMC3/xEDnVTFZZggeCD Nw35cIpgrcM7HamzavNv++L6RwsfLwRC+mIa080q8k5JFSUBBi69FLfYhXKg7yZxPnDd 5mlw== MIME-Version: 1.0 Received: by 10.220.155.203 with SMTP id t11mr12281066vcw.36.1346678369145; Mon, 03 Sep 2012 06:19:29 -0700 (PDT) Received: by 10.58.230.134 with HTTP; Mon, 3 Sep 2012 06:19:28 -0700 (PDT) In-Reply-To: References: Date: Mon, 3 Sep 2012 16:19:28 +0300 Message-ID: From: Kimmo Paasiala To: Frank Seltzer Content-Type: text/plain; charset=UTF-8 Cc: freebsd-ports , HU Dong Subject: Re: mplayer-1.1.r20120721 doesn't compile with clang release_30 142614 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2012 13:19:36 -0000 On Mon, Sep 3, 2012 at 3:42 PM, Frank Seltzer wrote: > I am experiencing similar problems with mplayer and vlc. > > > On Mon, 3 Sep 2012, HU Dong wrote: > >> Hi! >> The latest multimedia/mplayer port seems to be broken on freebsd >> 9.0 i386 release. It fails to compile with clang release_30 142614. >> Hope someone could fix it. >> >> 1. ENV: >> % uname -a >> FreeBSD hostname 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 >> 07:15:25 UTC 2012 >> root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >> % clang --version >> FreeBSD clang version 3.0 (branches/release_30 142614) 20111021 >> Target: i386-unknown-freebsd9.0 >> Thread model: posix > > > Ace /home/frank_s % uname -a > FreeBSD Ace.nina.org 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Sun Sep 2 > 15:28:46 EDT 2012 root@Ace.nina.org:/usr/obj/usr/src/sys/GENERIC i386 > > Ace /home/frank_s % clang --version > FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 > > Target: i386-unknown-freebsd9.0 > Thread model: posix > > Mplayer's compile begins with: > > ===> Configuring for mplayer-1.1.r20120721 > Unknown parameter: --win32codecsdir=/usr/local/lib/win32 > Unknown parameter: --x-libraries=/usr/local/lib > Unknown parameter: --x-includes=/usr/local/include > Unknown parameter: --build=i386-portbld-freebsd9.1 > > and ends with: > > > 2 errors generated. > gmake: *** [mp3lib/decode_i586.o] Error 1 > gmake: *** Waiting for unfinished jobs.... > 3 warnings generated. > *** [do-build] Error code 1 > > Stop in /usr/ports/multimedia/mplayer. > *** [build] Error code 1 > > Stop in /usr/ports/multimedia/mplayer. > ** Command failed [exit code 1]: /usr/bin/script -qa > /tmp/portupgrade20120903-14811-1ifs4ot env UPGRADE_TOOL=portupgrade > UPGRADE_PORT=mplayer-1.0.r20120322_2 UPGRADE_PORT_VER=1.0.r20120322_2 make > ** Fix the problem and try again. > ** Listing the failed packages (-:ignored / *:skipped / !:failed) > ! multimedia/mplayer (mplayer-1.0.r20120322_2) (new compiler error) > > with hundreds and hundreds of this type of error in between: > > > 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 > > Have I fat-fingered something? > > -- > Frank > > Has the building of those ports worked before with clang(1)? There are still quite a few ports that rely on gcc's pecularities that clang can not yet do. Use exceptions in /etc/make.conf for ports that fail to build with clang, for example this is what I have to use for sysutils/lsof: .if ${.CURDIR:M*/sysutils/lsof} CC=gcc CXX=g++ CPP=gcc -E .endif