From owner-freebsd-toolchain@FreeBSD.ORG Mon Mar 16 11:52:01 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B93C3BA3 for ; Mon, 16 Mar 2015 11:52:01 +0000 (UTC) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F3C2176 for ; Mon, 16 Mar 2015 11:52:01 +0000 (UTC) Received: by pdbop1 with SMTP id op1so56395689pdb.2 for ; Mon, 16 Mar 2015 04:51:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=M4+VRtojWiiWKHIak4iuUDu9oYnc/5i3vqBIGyD9u3w=; b=OPtUvrgTcpHKN1EXucFHZt3AVbzrVp10VFMrQze8CLOSIvghgYeydPx7ioaV0ySX8L zMXHN13jSHe5ghXJSHUza23+zKOvCSGYwW0ShfzbHaEFXTmv6zsG4e6n25tKe/yzZK1q 0CNIWLNyiTMgURJjVTEPpgd39OBINKpz8VmKy9BBjBYzchCMBrl1nmugFYW7myaPV8Xa Ap3iSktxrX4wwkq2XX29urJjSoiUDiPD/6Obo0p0MCfLQ7h34Bih0uc4BU/jxjtK0iM6 VjgS6kUUusQqh2qH4a0eUQKEjC11TR4AAqWJ6dVR7ZTtJmlp5EB03AqF/REfQNrXBLQ6 YyLQ== X-Gm-Message-State: ALoCoQmz9FG0/icNsvyfUC7IlTaIsWNbebGvNIlAjuIYJvvHsOYEOzjSaq4ConOZsy2n9HRUXbip X-Received: by 10.66.147.169 with SMTP id tl9mr134855874pab.63.1426506715257; Mon, 16 Mar 2015 04:51:55 -0700 (PDT) Received: from [10.216.193.143] ([210.160.37.26]) by mx.google.com with ESMTPSA id oj16sm7021164pdb.77.2015.03.16.04.51.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Mar 2015 04:51:54 -0700 (PDT) Sender: Warner Losh 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=_E9685780-00DD-4E91-BDB8-9DF080D3B207"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b5 From: Warner Losh In-Reply-To: <58E2D419-7DD0-4D93-942C-DA225BDC3455@FreeBSD.org> Date: Mon, 16 Mar 2015 20:51:51 +0900 Message-Id: <50E95EBE-B5A0-4C1C-8300-AF4DD773DF9B@bsdimp.com> 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> <58E2D419-7DD0-4D93-942C-DA225BDC3455@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-toolchain@freebsd.org, FreeBSD PowerPC ML , Mark Millard 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 11:52:01 -0000 --Apple-Mail=_E9685780-00DD-4E91-BDB8-9DF080D3B207 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 16, 2015, at 7:02 PM, Dimitry Andric wrote: >=20 > 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. >=20 > This is incorrect. Clang needs -std=3Dc++11, otherwise it cannot = compile. >=20 > I suspect you also need WITHOUT_CLANG_BOOTSTRAP (and = WITHOUT_GCC_BOOTSTRAP, probably). =46rom earlier debugging, I=E2=80=99m pretty sure that the wrong g++ is = being used in the CROSS_TOOLCHAIN case. I=E2=80=99m in Japan right now = on travel, so I haven=E2=80=99t been able to track it down. = WITHOUT_GCC_BOOTSTRAP should be implied in that case, but if not, that = might explain why... Warner --Apple-Mail=_E9685780-00DD-4E91-BDB8-9DF080D3B207 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----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVBsPXAAoJEGwc0Sh9sBEADmoQAMaWtT8Uxbsx+hTHDDagIvsT 6hP7x8f6BViInITAXzQqIVMQX9hocK8xXWymjn/g0KtUiYFKRhF/6iw3qSlV2LoQ 8n88nnoM+hFE3EMxM+nYOaElCOXPezbxRtyY5xRT5mjW6b+aKWjq4bBhKKBJhHB8 qSkMcMHEWa2w9igBXofLaXEIyy6h4zO9bbZMv7qf6QLwWuU1GQdIkYKp3H0/9/e5 NG+xnPhzsvPsJBh2WjoHhF1zt+bOopD35byVq3tQrksecViW+k6flxecD4XLOtty 7DFWUGXGs5KIIbc57aHCHSUh8xxrn9WJ0msN68WcZGJfamIA8nFOjKIg2Cnkkpk7 wUIku8mG8iRXtkMrNS3MyEO2kRPGILbo6I+cRr+TA13ce/4gt/WSZe8e0S6gC1sw bKKtotVR/zwp5k8AP14YnE6EraUEj3mII6zZkfo0jZlEULiyAXVmGE6aapmQNguB HfaWHO2h7Xpvf3bNKQLn+85zRL1T2CouItGU0ueKOWYwS4iV1ZLfYkuZJLowLS4B 19s/vzcb/qKLPWHHMPRBY910mFJuhOREphtfAurkI5MotOccJZ/1xyvW9F8wTBKD IhZLRv5rsryacU+w4+XUkRBlv7zBzNb5wVM7kMIg2zzH+422gdAPmNgPIgrcc6ZG K3Hifk/o6qApn6wuyZJa =VDWZ -----END PGP SIGNATURE----- --Apple-Mail=_E9685780-00DD-4E91-BDB8-9DF080D3B207--