From owner-freebsd-questions@FreeBSD.ORG Thu Feb 2 09:23:45 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D77DE1065674 for ; Thu, 2 Feb 2012 09:23:45 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 523A08FC15 for ; Thu, 2 Feb 2012 09:23:45 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q129Nacn066925 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 2 Feb 2012 09:23:37 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.4.3 smtp.infracaninophile.co.uk q129Nacn066925 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1328174617; bh=smiKNHhOQhZ50Mw15Bo1QsIBXhD2HMW/jD5NMJOX0bU=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc; b=IqvFS/HUwwa6PXt7PnftfGtrXMUJQwEoOZ4uwoAa1hNqfT6B28Dy6XJU6pNEZwX0L uUW3cN79ruYkFFVf0Np5MLnRMfPa1ipCymEVMTgvq4k3W/Kpox5m2YJmjrrffAV+sX hAKKiZM+I0140VJ8c1nB2mk2HbHIPILDlVnu5qtI= Message-ID: <4F2A5611.8090707@infracaninophile.co.uk> Date: Thu, 02 Feb 2012 09:23:29 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F2A3E0F.6060707@gmail.com> In-Reply-To: <4F2A3E0F.6060707@gmail.com> X-Enigmail-Version: 1.3.5 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig72A1AAB283A2F2E88C552B3A" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Subject: Re: Clang and ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 09:23:46 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig72A1AAB283A2F2E88C552B3A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 02/02/2012 07:41, Joshua Isom wrote: > I know that build cluster lists some ports that have problems with > clang, but it doesn't say if they're tested or not. I set up a clang > jail to test out things before switching to clang for general use. Whe= n > I try running mencoder to encode a file to x264, it seg faults. Changin= g > options doesn't change anything. A gdb backtrace points to x264 being > the problem. Everything compiles and installs, but the build's > useless. Is clang ready for ports, or is it only safe for kernel/world= ? It is certainly true that more ports will compile with the base gcc-4.2 compiler than will compile with clang. It's also true that of the ports that do compile, there will be more run-time failures with clang than with gcc. At the last test it was something like 18,000 out of 23,000 ports that built successfully with clang -- remember though that figure (a) includes a lot of ports that don't use a compiler at all (like shell scripts or pure-perl code) and (b) some of the failures are because a dependency failed to compile, which blocks testing on anything further down the tree, or for reasons completely unrelated to the compiler, like being unable to fetch distfiles. See: http://wiki.freebsd.org/PortsAndClang I personally have a FreeBSD 9-STABLE VM where everything (system+ports) is compiled with clang, but it's just for testing, has nothing particularly valuable on it and no one would care if it laid down and died. I am planning on upgrading my primary machine to 9.0 sometime soon, and while still undecided whether to build the system with clang or not, I certainly won't be enabling it for ports just yet. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig72A1AAB283A2F2E88C552B3A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8qVhgACgkQ8Mjk52CukIy79ACfZh/6q4yq9bZ9EtaGr3Am1vRo aXgAn0fBDgcGz7AnFKU3CC7bsDmoXVm1 =F2Fx -----END PGP SIGNATURE----- --------------enig72A1AAB283A2F2E88C552B3A--