From owner-freebsd-current@FreeBSD.ORG Sun Nov 4 12:42:29 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 E104BFBD; Sun, 4 Nov 2012 12:42:29 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0D5998FC0C; Sun, 4 Nov 2012 12:42:28 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id x43so2753960wey.13 for ; Sun, 04 Nov 2012 04:42:22 -0800 (PST) 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=zyg6aJ6WgoRP4/qHIiHk4W2pwOl+XIJMN7Etktm0Q/U=; b=hHanh9ywabyrWbU6jQYPeV1Uf1FEwT2qe/dnwZP4o9laLSuWIRKr2s0Oh1s1JZ+3V/ cPLz66hmb/sOvnw7p+a5RmurxSod2ABt/dAlVjmah/WQTN/WaQp9OwdEo2wKAsTJ+zdD igm0wJN5iYNKgSQHRyZuxYhLAbwU9Xwq6A8jSFHZKH4/v8ZMrcR0A5bTpobitZKU2mYN Yh5I7+fPGsGon6v9eVIcx7nELzjt+HKVY1/ATjuhp+W5ZubG+f98kWy/bfEEnMhkMB0z 59uUPgOo9kR+v5h55TJ0Z4y+JLldp//8bGhjPh+ur+jM51EzWcMRSHMlL3d5VBbRFXR4 /2PA== Received: by 10.216.137.94 with SMTP id x72mr2234022wei.187.1352032942367; Sun, 04 Nov 2012 04:42:22 -0800 (PST) Received: from dragon.dg (41-132-211-149.dsl.mweb.co.za. [41.132.211.149]) by mx.google.com with ESMTPS id j8sm6088405wiy.9.2012.11.04.04.42.19 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Nov 2012 04:42:21 -0800 (PST) From: David Naylor To: Jan Beich Subject: Re: November 5th is Clang-Day Date: Sun, 4 Nov 2012 14:42:13 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.9.1; amd64; ; ) References: <20121102032945.GF65074@lor.one-eyed-alien.net> <201211030948.43530.naylor.b.david@gmail.com> <1TUlad-0008bB-OF@internal.tormail.org> In-Reply-To: <1TUlad-0008bB-OF@internal.tormail.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5521153.u17xfddALF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201211041442.16620.naylor.b.david@gmail.com> Cc: David Chisnall , freebsd-current@freebsd.org, Brooks Davis 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: Sun, 04 Nov 2012 12:42:30 -0000 --nextPart5521153.u17xfddALF Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Saturday, 3 November 2012 23:47:54 Jan Beich wrote: > David Naylor writes: > > There are two issues here: 1) wine compiled with clang, and 2) wine > > (compiled with gcc) running on clang compiled base. > >=20 > > Regarding 1), according to the wiki [1], wine does have stack alignment > > issues and some wine programs do not run when compiled with clang [2][3] > > and other bugs with clang cause freezing within wine [4][5]. The > > impression I get is that, using the work-a-round of stack realignment, > > wine does work to some extent when compiled by clang. >=20 > Took me some time but now I can confirm that clang-built wine-1.5.16 > works fine for me with gcc-built lib32 (i.e. ld-elf32.so.1 + /usr/lib32). >=20 > > Regarding 2) (which I believe Jan was referring to), when I have a gcc > > built world and just replace lib32 with clang built libraries I have > > winecfg and regedit launching but displaying black screens. Switching > > back to gcc built lib32 I get a working winecfg and regedit. This, to > > me, indicates a clang error somewhere. >=20 > My experience varies between clang-built and gcc-built wine. >=20 > # clang, quick crash >=20 > # gcc, black rectangle >=20 > So, why not switch stack alignment in wine (upstream)? This would make > /stable/9 wine package continue to work on /head. >=20 > Here's my wine package built with and without the patch. >=20 > # sha256: cef5e543a5c534acb7237634224561863122ab3c256df319c6428856266d79fd > http://ompldr.org/vZzR0bw/4byte-clang-wine-fbsd64-1.5.16,1.txz > # sha256: 68e402bf7cb39ea48b9bef7772422cf476e89b214fd3b98ced37e0068f588c6c > http://ompldr.org/vZzR0ZA/16byte-clang-wine-fbsd64-1.5.16,1.txz I tried building (using gcc) wine with your patch and now (at least) winecf= g=20 and regedit work with a clang built lib32. I'll email Gerald (wine's=20 maintainer) about including your patch in wine. =20 regards --nextPart5521153.u17xfddALF 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) iEYEABECAAYFAlCWYqgACgkQUaaFgP9pFrLPswCfZjFl7/IiwBJnoUB0huOqy8S7 aLYAoIKIrMEch/mjYr7Pr6hWXuJAmJ5Z =Cogn -----END PGP SIGNATURE----- --nextPart5521153.u17xfddALF--