From owner-freebsd-current@FreeBSD.ORG Sat Jan 7 04:31:42 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF537106564A; Sat, 7 Jan 2012 04:31:42 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 725EB8FC08; Sat, 7 Jan 2012 04:31:42 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1RjNwT-0003RT-7q>; Sat, 07 Jan 2012 05:31:41 +0100 Received: from e178012028.adsl.alicedsl.de ([85.178.12.28] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1RjNwT-0003S5-2l>; Sat, 07 Jan 2012 05:31:41 +0100 Message-ID: <4F07CAA5.5020405@zedat.fu-berlin.de> Date: Sat, 07 Jan 2012 05:31:33 +0100 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120101 Thunderbird/9.0 MIME-Version: 1.0 To: Dimitry Andric References: <4F062232.1020204@zedat.fu-berlin.de> <20120106073104.GA50351@freebsd.org> <4F06B378.7050404@zedat.fu-berlin.de> <4F06EDEC.5030805@FreeBSD.org> In-Reply-To: <4F06EDEC.5030805@FreeBSD.org> X-Enigmail-Version: undefined Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2C156C66E430EA2546CF83FA" X-Originating-IP: 85.178.12.28 Cc: Roman Divacky , Current FreeBSD Subject: Re: WITH_LIBCPLUSPLUS on FreeBSD 10.0-CURRENT/amd64 fails with CLANG: X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 07 Jan 2012 04:31:42 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2C156C66E430EA2546CF83FA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 01/06/12 13:49, Dimitry Andric wrote: > On 2012-01-06 09:40, O. Hartmann wrote: > ... >> Obviously, these lines in make.conf seem to fail recently when buildin= g >> the sources: >> >> ### >> ### CLANG >> ### >> >> .if !defined(NO_CLANG) >> .if ${.CURDIR:M/usr/src/*} || ${.CURDIR:M/usr/obj/*} || >> ${.CURDIR:M/sys/*} >=20 > Hi Oliver, >=20 > The problem is that the ${.CURDIR:M/usr/src/*} expressions are wrong, > they will not match when you are *exactly* in /usr/src or in /usr/obj. >=20 > So for any operations in the "root" of your source checkout, or of your= > object directory, CC will still be 'cc', and unexpected things will > happen. >=20 > It is better to use: >=20 > .if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} || ${.CURDIR:M/sys= *} >=20 > or if you want to be strict: >=20 > .if ${.CURDIR:M/usr/src} || ${.CURDIR:M/usr/src/*} || > ${.CURDIR:M/usr/obj} || ${.CURDIR:M/usr/obj/*} || ${.CURDIR:M/sys} || > ${.CURDIR:M/sys/*} >=20 > It is similar to a problem another user reported on freebsd-stable > (though he got a weird linker error instead): >=20 > =20 > http://lists.freebsd.org/pipermail/freebsd-stable/2011-December/065172.= html >=20 > After some analysis, it turned out he had the same problem in his > make.conf: >=20 > =20 > http://lists.freebsd.org/pipermail/freebsd-stable/2011-December/065183.= html Hello Dimitry. Thanks for the correction. My bad. I think I copied and pasted this line without thinking or I added the slashes by my own will without knowing the consequences - small changes, big impact. Thanks a lot, Oliver --------------enig2C156C66E430EA2546CF83FA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBAgAGBQJPB8qsAAoJEOgBcD7A/5N8KDcIAMoVVIGQDHlJrjM5cx3R8+Kh IzhCughP6pHPoKlY4y21YBMOCtNYACl6dO74t4RK3bF+ILXYXfrmDxC5qYXdUglR gX62PZTDMeuHeyQGro9dhVfUxX6Du3QKytloCF/M0/5J5R+XorGFb6bVPpU3tt8F IR9s5cjY09U6NO6jlbOw0/6kaSWjo+5aENXVPheOxls6h+BT/kwMkYm13WXvxEgD eYOatvERUEM40SYjs/LAo7Zei76oD7dohjrKAJJ6TCH1JODgX7AyeNddrzSXwjpN bwASuqFtFVBmJ5e7oM/u1+Ygh1YmVm51CsYQ1btiXWKXtvolM1vdA5mWwpuQ+PQ= =3TSg -----END PGP SIGNATURE----- --------------enig2C156C66E430EA2546CF83FA--