Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 2015 20:51:51 +0900
From:      Warner Losh <imp@bsdimp.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        freebsd-toolchain@freebsd.org, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, Mark Millard <markmi@dsl-only.net>
Subject:   Re: On powerpc 11.0-CURRENT CROSS_TOOLCHAIN=powerpc64-gcc fails: clang-tblgen use attempted before it exists
Message-ID:  <50E95EBE-B5A0-4C1C-8300-AF4DD773DF9B@bsdimp.com>
In-Reply-To: <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> <E053A305-8925-4CDB-B7D3-A632CB6BBE3D@bsdimp.com> <E3F9CFA6-04C2-482B-A649-035C41C0113C@dsl-only.net> <E5D42704-E94A-4E81-83C2-2B851EA8D023@bsdimp.com> <357555BE-7F87-4B25-95BE-43DD33CD8FE2@dsl-only.net> <FD3C3142-B6CC-410E-8ADF-DFF17AB445A1@dsl-only.net> <58E2D419-7DD0-4D93-942C-DA225BDC3455@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <dim@freebsd.org> wrote:
>=20
> On 16 Mar 2015, at 09:02, Mark Millard <markmi@dsl-only.net> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50E95EBE-B5A0-4C1C-8300-AF4DD773DF9B>