From owner-freebsd-ports@FreeBSD.ORG Mon Sep 3 18:42:40 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 257CC1065673 for ; Mon, 3 Sep 2012 18:42:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id D157C8FC0C for ; Mon, 3 Sep 2012 18:42:39 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:1176:be10:b62d:3981] (unknown [IPv6:2001:7b8:3a7:0:1176:be10:b62d:3981]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 22B025C37; Mon, 3 Sep 2012 20:42:38 +0200 (CEST) Message-ID: <5044FA1C.3020905@FreeBSD.org> Date: Mon, 03 Sep 2012 20:42:36 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20120828 Thunderbird/16.0 MIME-Version: 1.0 To: Kimmo Paasiala References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 18:42:40 -0000 On 2012-09-03 15:19, Kimmo Paasiala wrote: > On Mon, Sep 3, 2012 at 3:42 PM, Frank Seltzer wrote: ... >>> % clang --version >>> FreeBSD clang version 3.0 (branches/release_30 142614) 20111021 ... >> 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 This looks like some sort of trouble with the inline assembly, which may not work with the version of clang you are using. I will have a look at which version you will minimally need. Meanwhile, you can attempt to use -no-integrated-as for the files containing the inline assembly. > 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 Note that building lsof works just fine with clang after r239462 (where a recent clang 3.2 snapshot was imported).