Date: Sat, 4 Nov 2017 17:14:56 -0700 From: Mark Millard <markmi@dsl-only.net> To: Gerald Pfeifer <gerald@pfeifer.com> Cc: =?utf-8?Q?Eddy_Petri=C8=99or?= <eddy.petrisor@gmail.com>, freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org, Dimitry Andric <dim@freebsd.org> Subject: Re: [toolchain] lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'? Message-ID: <505436FF-E15C-42DE-8855-47FB5A99E64B@dsl-only.net> In-Reply-To: <alpine.LSU.2.21.1711042354060.4053@anthias.pfeifer.com> References: <CAK0XTWczya8vg_sQZPqz-ZyYZRMq1v6p%2Bjs90S%2BjaDHxo2=1gA@mail.gmail.com> <CDAA0CB5-F1FC-40FE-AEC5-56FD64654671@FreeBSD.org> <7CAFD8CC-BDA1-4E89-BD7E-D0089E27036F@dsl-only.net> <CAK0XTWdRjek6StRktBfn0oGMo1ixTohs6NPoyDx__QMQ56ki_g@mail.gmail.com> <alpine.LSU.2.21.1711042354060.4053@anthias.pfeifer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2017-Nov-4, at 3:57 PM, Gerald Pfeifer <gerald at pfeifer.com> wrote: > On Sun, 29 Oct 2017, Eddy Petri=C8=99or wrote: >> Yep --and it is even more complicated: gcc vs. clang are sometimes=20 >> different for the target listed. . . >>=20 >> For example -m32 for amd64 changes the clang result: >>=20 >> # clang -dumpmachine >> x86_64-unknown-freebsd12.0 >>=20 >> .. >>=20 >> # gcc7 -dumpmachine >> x86_64-portbld-freebsd12.0 >=20 > That's not actually related to GCC, but the lang/gcc* ports using > the FreeBSD Ports Collection's default that explicitly set >=20 > CONFIGURE_TARGET?=3D ${ARCH}-portbld-${OPSYS:tl}${OSREL} >=20 > By default GCC would use the same as clang. Interesting. Good to know. Thanks. We still end up with depending on --dumpmachine giving non-uniform results across typical compilers in a standard FreeBSD environment. It looks like depending on -dumpmachine should be avoided for any more than a local workaround. (Some Linux distributions might also vary such definitions to be non-default as well for all I know.) =3D=3D=3D Mark Millard markmi at dsl-only.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?505436FF-E15C-42DE-8855-47FB5A99E64B>