From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 19 21:40:35 2013 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 394D99E2; Sat, 19 Jan 2013 21:40:35 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id F1EFF12B; Sat, 19 Jan 2013 21:40:34 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id D332C1E000C7; Sat, 19 Jan 2013 22:40:33 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.5/8.14.4) with ESMTP id r0JLXxmt077192; Sat, 19 Jan 2013 22:33:59 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.5/8.14.3/Submit) id r0JLXxPf077191; Sat, 19 Jan 2013 22:33:59 +0100 (CET) (envelope-from nox) Date: Sat, 19 Jan 2013 22:33:59 +0100 (CET) From: Juergen Lock Message-Id: <201301192133.r0JLXxPf077191@triton8.kn-bremen.de> To: sib@tormail.org Subject: Re: VLC/X264 and GCC X-Newsgroups: local.list.freebsd.multimedia In-Reply-To: <1TsgcQ-000DYG-U0@internal.tormail.org> Organization: Cc: mm@FreeBSD.org, multimedia@FreeBSD.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2013 21:40:35 -0000 In article <1TsgcQ-000DYG-U0@internal.tormail.org> you write: >Hello. Hi! > >While installing VLC on a 9.1 i386 system, I noticed when it was building >X264 that it was calling GCC.. so I removed USE_GCC=any from that Makefile >and it built fine with clang. Has there been some trouble with it? Can we >remove that line from the port? > The commitlog for the x264 port says: r305618 | linimon | 2012-10-10 00:43:05 +0200 (Wed, 10 Oct 2012) | 11 lines Attempt to force this port to build only with gcc. It is known to be broken on clang. However, setting USE_GCC=any appears to be insufficient: the too-clever configure glop sees that clang is installed and attempts to use it regardless. This commit is thus a temporary measure. Hat: portmgr I'll Cc the x264 port maintainer, maybe he knows more. >I am currently also trying to figure out why VLC itself won't build with >clang, but pulls in lang/gcc for some CPU features (as I saw in the >makefile) .. hopefully that can be fixed. Compiling gcc is not a fast >task. There was an issue with base gcc and vlc on i386 so I set USE_GCC=4.6+ - but you are right if clang is already built using it would be preferred, and I just posted a call for testing for a patch that defaults to using clang on 9.1+ also on amd64: http://docs.freebsd.org/cgi/mid.cgi?20130119210903.GA76282 (you can use `Save link as' on the `Raw E-Mail' link at the top of the message to download the patch, patch(1) should ignore the rest of the message before the actual patch.) Thanx, Juergen