Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Nov 2012 09:48:40 +0200
From:      David Naylor <naylor.b.david@gmail.com>
To:        freebsd-current@freebsd.org
Cc:        Brooks Davis <brooks@freebsd.org>, David Chisnall <theraven@freebsd.org>, Jan Beich <jbeich@tormail.org>
Subject:   Re: November 5th is Clang-Day
Message-ID:  <201211030948.43530.naylor.b.david@gmail.com>
In-Reply-To: <F576E5E7-AA21-4E37-8872-7BC89D8AF73F@FreeBSD.org>
References:  <20121102032945.GF65074@lor.one-eyed-alien.net> <1TU9lE-000KmO-Cc@internal.tormail.org> <F576E5E7-AA21-4E37-8872-7BC89D8AF73F@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211030948.43530.naylor.b.david>