From owner-freebsd-current@FreeBSD.ORG Sat Nov 3 07:48:52 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E77AA6; Sat, 3 Nov 2012 07:48:52 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 26DFC8FC0A; Sat, 3 Nov 2012 07:48:50 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id c50so2728157eek.13 for ; Sat, 03 Nov 2012 00:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=h1FiSwEbhdusFkdH9EYqhsWbFCTpU/XvLpPqGPBl3bk=; b=VAJH7XQJoj7ILWyJ498/eLzfTiC/bW3VqVxWCG3LxCDHGqBRgtzTeF80xKmpVj/Jl9 Z8jK8RRqb0e94fIml9kHLQbF5chc5/E/UYPt7BJv3X7C3w7/QpQ3jJlPNGRwiu0Ut0Nq fZG7IoQDXYQLDZPWzSo5A+HuUVLrH/CKgv2aObA6tYLNzfJqN02U8MxOY4UcPxa42X/I PXDpZUW/296AW7NxToGNyVXaLUEhZG7HpVbjplLtmzNbYNoIMkwI0eILqmr4QSqCdtau FXggsbbwZcwqG0tiYzk4tcNxi+9FITtU7pMbydPvm9kZFg1EXBFyCnmoZSO94kkjFmRO RNnw== Received: by 10.14.214.2 with SMTP id b2mr15010901eep.32.1351928929680; Sat, 03 Nov 2012 00:48:49 -0700 (PDT) Received: from dragon.dg (41-132-211-149.dsl.mweb.co.za. [41.132.211.149]) by mx.google.com with ESMTPS id f2sm29436036eep.2.2012.11.03.00.48.46 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 00:48:48 -0700 (PDT) From: David Naylor To: freebsd-current@freebsd.org Subject: Re: November 5th is Clang-Day Date: Sat, 3 Nov 2012 09:48:40 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.9.1; amd64; ; ) References: <20121102032945.GF65074@lor.one-eyed-alien.net> <1TU9lE-000KmO-Cc@internal.tormail.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart34669012.oYyl0Wpdqq"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201211030948.43530.naylor.b.david@gmail.com> Cc: Brooks Davis , David Chisnall , Jan Beich X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2012 07:48:52 -0000 --nextPart34669012.oYyl0Wpdqq Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Friday, 2 November 2012 10:13:30 David Chisnall wrote: > On 2 Nov 2012, at 05:24, Jan Beich wrote: > >> Known Issues > >=20 > > emulators/wine doesn't work with lib32 built by clang, probably due to > > wine bugs. >=20 > Is this still the case? There was an issue preventing WINE from working > because it required stricter stack alignment than clang provided by > default, but I thought it was fixed. Does WINE work if compiled with the > flag that forces stack realignment? If not, then it's some other issue... There are two issues here: 1) wine compiled with clang, and 2) wine (compil= ed=20 with gcc) running on clang compiled base. =20 Regarding 1), according to the wiki [1], wine does have stack alignment iss= ues=20 and some wine programs do not run when compiled with clang [2][3] and other= =20 bugs with clang cause freezing within wine [4][5]. The impression I get is= =20 that, using the work-a-round of stack realignment, wine does work to some=20 extent when compiled by clang. =20 Regarding 2) (which I believe Jan was referring to), when I have a gcc buil= t=20 world and just replace lib32 with clang built libraries I have winecfg and= =20 regedit launching but displaying black screens. Switching back to gcc buil= t=20 lib32 I get a working winecfg and regedit. This, to me, indicates a clang= =20 error somewhere. =20 The test was done on FreeBSD 9-Stable with: # clang --version =46reeBSD clang version 3.1 (branches/release_31 156863) 20120523 Target: x86_64-unknown-freebsd9.0 Thread model: posix Regards [1] wiki.winehq.org/Clang [2] (regedit) http://llvm.org/bugs/show_bug.cgi?id=3D9830 [3] (wineboot) http://llvm.org/bugs/show_bug.cgi?id=3D9844 [4] http://llvm.org/bugs/show_bug.cgi?id=3D9704 [5] http://llvm.org/bugs/show_bug.cgi?id=3D9707 --nextPart34669012.oYyl0Wpdqq Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEABECAAYFAlCUzFsACgkQUaaFgP9pFrKBHQCfYYozaPkx5SMvkmm+VPI8t+iA 1JIAnAq1cq2YTGL+Hbm+hr8pdLxhbHFD =m0nn -----END PGP SIGNATURE----- --nextPart34669012.oYyl0Wpdqq--