From owner-freebsd-mono@FreeBSD.ORG Mon Feb 4 21:50:02 2013 Return-Path: Delivered-To: mono@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1A51DB6B for ; Mon, 4 Feb 2013 21:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0CBC523A for ; Mon, 4 Feb 2013 21:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r14Lo1GD053868 for ; Mon, 4 Feb 2013 21:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r14Lo10G053867; Mon, 4 Feb 2013 21:50:01 GMT (envelope-from gnats) Date: Mon, 4 Feb 2013 21:50:01 GMT Message-Id: <201302042150.r14Lo10G053867@freefall.freebsd.org> To: mono@FreeBSD.org From: Romain =?iso-8859-1?Q?Tarti=E8re?= Subject: Re: ports/175518: lang/mono is not configured correctly when building X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Romain =?iso-8859-1?Q?Tarti=E8re?= List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 21:50:02 -0000 The following reply was made to PR ports/175518; it has been noted by GNATS. From: Romain =?iso-8859-1?Q?Tarti=E8re?= To: Jack Pappas Cc: bug-followup@freebsd.org Subject: Re: ports/175518: lang/mono is not configured correctly when building Date: Mon, 4 Feb 2013 22:46:09 +0100 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 04, 2013 at 04:05:17PM -0500, Jack Pappas wrote: > According to the Mono README > (https://github.com/mono/mono/blob/master/README), the autogen.sh is only > needed when building from a snapshot; for official tarballs (like the one > used in the lang/mono port), it's not. >=20 > However, the reason I wanted to use autogen.sh was because after I'd > patched the configure.in file (and added the patch to the 'files' > directory), I found that when I ran "make install clean", the patch > wouldn't work -- Mono would still compile correctly, but it would still > use the pthread API for thread-local storage (TLS) instead of the __thread > qualifier. It was only after changing the makefile to call autogen.sh that > Mono compiled successfully and used the __thread TLS. The 'configure' script is generated by the autotools from the 'configure.in' file. So modifying the 'configure.in' file require you to run all the autotools chain to regenerate the 'configure' script before continuing. This is the reason you had to run 'autogen.sh'. When the mono folks release a new mono tarball, they include the generated 'configure' script in it so we have to either patch 'configure.in' and re-r= un the whole autotools chain, or patch the generated 'configure' which avoids = us all the mess that commes with the autotools if we have to change something there. > You said you were able to build lang/mono by just patching the configure > script -- did you also install it after building? If so, you can run "mono > -V" to see what kind of thread-local storage Mono was compiled with. If > your installation of Mono is using the __thread TLS, then let's use your > method of patching just the 'configure' file. I get: JIT compiler version 3.0.3 (tarball Mon Feb 4 14:30:00 CET 2013) Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono= -project.com TLS: __thread SIGSEGV: normal Notification: kqueue Architecture: amd64 Disabled: none Misc: softdebug=20 LLVM: supported, not enabled. GC: Included Boehm (with typed GC and Parallel Mark) which is what you are expecting, right ? Then I guess I can commit this change. Romain --=20 Romain Tarti=E8re http://romain.blogreen.org/ pgp: 8234 9A78 E7C0 B807 0B59 80FF BA4D 1D95 5112 336F (ID: 0x5112336F) (plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciated) --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQGcBAEBAgAGBQJRECwhAAoJELpNHZVREjNvz7AL/0XCnuj9qUPqkh4Q3e7ZoBSs IydqxJMSDo7O5VMmXSvRCQpWCB1laBV2lxidc96qGwASK2/coiIcuho3/aLV0TUp AfRvdujhL4bNOaJFWpuUUU/qz6L3R6XyjaVxGAyo5qJ5n4z1NiH/xkH1hD/NkTJk ViWWssF/fc5tynFbU2sflMBTQTZz5lAdXvvyaW+nCV7PZGbEW0PJO3gLA3QlhB90 nC7Ioby8YF91oXZXzxX+mqXFlHXAwhmi+J8lXb7Mrw6DMoYlZuSnVSs6D7zfGV7K /GKjXx8vwAYL8a5/1pAONtloB3XqQ0R1Gd2PgO0DQ0/Fmbcl86SafBf1MjA0LtN6 R4zNbcy9+fy/vA8pkAJPzg9nSPG1L0lH5D7VjrapuKJ9SXfLSIdZDXKbFJpEmCH7 oHgFxm6B0jNxzsVO8A5XFuy95JF/m5OJUM3cBncHme56WNnUqDtPJUP2nxZXX0u0 DZw/088+N9rZcy7mzKvXTGxKJH6yP85YkYyCZsZQyw== =I0Dw -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--