From owner-freebsd-toolchain@FreeBSD.ORG Mon Mar 16 10:02:27 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 62FBB48D; Mon, 16 Mar 2015 10:02:27 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 16E8E22E; Mon, 16 Mar 2015 10:02:26 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::5dde:9dd3:e3f7:7226] (unknown [IPv6:2001:7b8:3a7:0:5dde:9dd3:e3f7:7226]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id DFC595C47; Mon, 16 Mar 2015 11:02:14 +0100 (CET) Subject: Re: On powerpc 11.0-CURRENT CROSS_TOOLCHAIN=powerpc64-gcc fails: clang-tblgen use attempted before it exists Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_17593A11-0470-4458-AD4D-83699C7AD831"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b5 From: Dimitry Andric In-Reply-To: Date: Mon, 16 Mar 2015 11:02:09 +0100 Message-Id: <58E2D419-7DD0-4D93-942C-DA225BDC3455@FreeBSD.org> References: <81E69CED-2977-4146-A1DA-B199FDAFE146@dsl-only.net> <20150130005619.GA11558@ivaldir.etoilebsd.net> <89F97E94-AB9F-46C0-9AA2-C4D0680D64E7@dsl-only.net> <60F1C8B5-8621-452B-A6A3-DEE4B48B848D@dsl-only.net> <357555BE-7F87-4B25-95BE-43DD33CD8FE2@dsl-only.net> To: Mark Millard X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-toolchain@freebsd.org, FreeBSD PowerPC ML X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2015 10:02:27 -0000 --Apple-Mail=_17593A11-0470-4458-AD4D-83699C7AD831 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 16 Mar 2015, at 09:02, Mark Millard wrote: >=20 > I found why gcc 4.2.1's cc1plus was getting -std=3Dc++11 for the = CROSS_TOOLCHAIN=3Dpowerpc64-gcc compiles that involve WITH_CLANG=3D . = (WITHOUT_CLANG=3D does not get the "unrecognized" notices.) There is a = global assignment to CXXFLAGS for all compilers whenever clang.build.mk = is in use (showing my experimental change...): >=20 > # svnlite diff /usr/srcC/lib/clang/clang.build.mk > Index: /usr/srcC/lib/clang/clang.build.mk > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- /usr/srcC/lib/clang/clang.build.mk (revision 279514) > +++ /usr/srcC/lib/clang/clang.build.mk (working copy) > @@ -34,8 +34,8 @@ > CFLAGS+=3D -DLLVM_DEFAULT_TARGET_TRIPLE=3D\"${TARGET_TRIPLE}\" \ > -DLLVM_HOST_TRIPLE=3D\"${BUILD_TRIPLE}\" \ > -DDEFAULT_SYSROOT=3D\"${TOOLS_PREFIX}\" > -CXXFLAGS+=3D -std=3Dc++11 -fno-exceptions -fno-rtti > -CXXFLAGS.clang+=3D -stdlib=3Dlibc++ > +CXXFLAGS+=3D -fno-exceptions -fno-rtti > +CXXFLAGS.clang+=3D -std=3Dc++11 -stdlib=3Dlibc++ >=20 > .PATH: ${LLVM_SRCS}/${SRCDIR} >=20 > It may be that the "-fno-exceptions -fno-rtti" are also suspect for = being not limited to clang contexts. This is incorrect. Clang needs -std=3Dc++11, otherwise it cannot = compile. I suspect you also need WITHOUT_CLANG_BOOTSTRAP (and = WITHOUT_GCC_BOOTSTRAP, probably). -Dimitry --Apple-Mail=_17593A11-0470-4458-AD4D-83699C7AD831 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlUGqiUACgkQsF6jCi4glqPU9QCfVrQ0FCVkgxUnw9gbQcTp7gCE YhkAoKKsKoRh5Fy55v7wYM97lm83uHU4 =lUZt -----END PGP SIGNATURE----- --Apple-Mail=_17593A11-0470-4458-AD4D-83699C7AD831--