Re: [toolchain] lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-11-04 Thread Mark Millard
On 2017-Nov-4, at 6:02 PM, Mark Millard wrote: > On 2017-Nov-4, at 5:19 PM, Eddy Petrișor wrote: > >> Pe 5 nov. 2017 12:57 AM, "Gerald Pfeifer" a scris: >> On Sun, 29 Oct 2017, Eddy Petrișor wrote: >>> Yep --and it is even more complicated: gcc vs. clang are sometimes >>> different for the tar

Re: [toolchain] lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-11-04 Thread Mark Millard
On 2017-Nov-4, at 5:19 PM, Eddy Petrișor wrote: > Pe 5 nov. 2017 12:57 AM, "Gerald Pfeifer" a scris: > On Sun, 29 Oct 2017, Eddy Petrișor wrote: > > Yep --and it is even more complicated: gcc vs. clang are sometimes > > different for the target listed. . . > > > > For example -m32 for amd64 chan

Re: [toolchain] lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-11-04 Thread Eddy Petrișor
Pe 5 nov. 2017 12:57 AM, "Gerald Pfeifer" a scris: On Sun, 29 Oct 2017, Eddy Petrișor wrote: > Yep --and it is even more complicated: gcc vs. clang are sometimes > different for the target listed. . . > > For example -m32 for amd64 changes the clang result: > > # clang -dumpmachine > x86_64-unkno

Re: [toolchain] lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-11-04 Thread Mark Millard
On 2017-Nov-4, at 3:57 PM, Gerald Pfeifer wrote: > On Sun, 29 Oct 2017, Eddy Petrișor wrote: >> Yep --and it is even more complicated: gcc vs. clang are sometimes >> different for the target listed. . . >> >> For example -m32 for amd64 changes the clang result: >> >> # clang -dumpmachine >> x

Re: [toolchain] lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-11-04 Thread Gerald Pfeifer
On Sun, 29 Oct 2017, Eddy Petrișor wrote: > Yep --and it is even more complicated: gcc vs. clang are sometimes > different for the target listed. . . > > For example -m32 for amd64 changes the clang result: > > # clang -dumpmachine > x86_64-unknown-freebsd12.0 > > .. > > # gcc7 -dumpmachine >

Re: lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-10-29 Thread Eddy Petrișor
2017-10-29 9:51 GMT+02:00 Eddy Petrișor : > Various linux distributions > > patch uname and its -p code (for > example). Even for the same kernel > being in use, giving different > textual results. -m seemed more > stable in my limited testing. > Everyplace that uses uname probably > needs to be r

Re: lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-10-29 Thread Eddy Petrișor
Pe 28 oct. 2017 5:31 PM, "Mark Millard" a scris: On 2017-Oct-28, at 4:11 AM, Dimitry Andric wrote: > On 27 Oct 2017, at 08:23, Eddy Petrișor wrote: >> >> I am trying to make the FreeBSD code base build from a Linux host and >> found this bit which defines BUILD_TRIPLE in a way which to my >> u

Re: lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-10-28 Thread Mark Millard
On 2017-Oct-28, at 4:11 AM, Dimitry Andric wrote: > On 27 Oct 2017, at 08:23, Eddy Petrișor wrote: >> >> I am trying to make the FreeBSD code base build from a Linux host and >> found this bit which defines BUILD_TRIPLE in a way which to my >> untrained eyes look like overengineering. >> >> .i

Re: lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-10-28 Thread Dimitry Andric
On 27 Oct 2017, at 08:23, Eddy Petrișor wrote: > > I am trying to make the FreeBSD code base build from a Linux host and > found this bit which defines BUILD_TRIPLE in a way which to my > untrained eyes look like overengineering. > > .if ${TARGET_ARCH:Marmv6*} && (!defined(CPUTYPE) || ${CPUTYPE:

Re: lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-10-27 Thread Mark Millard
On 2017-Oct-27, at 3:10 PM, Eddy Petrișor wrote: > 2017-10-27 11:19 GMT+03:00 Mark Millard : >> On 2017-Oct-26, at 11:23 PM, Eddy Petrișor >> wrote: >> >>> I am trying to make the FreeBSD code base build from a Linux host and >>> found this bit which defines BUILD_TRIPLE in a way which to my >

Re: lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-10-27 Thread Eddy Petrișor
2017-10-27 11:19 GMT+03:00 Mark Millard : > On 2017-Oct-26, at 11:23 PM, Eddy Petrișor wrote: > >> I am trying to make the FreeBSD code base build from a Linux host and >> found this bit which defines BUILD_TRIPLE in a way which to my >> untrained eyes look like overengineering. >> >> .if ${TARGET

Re: lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-10-27 Thread Mark Millard
On 2017-Oct-26, at 11:23 PM, Eddy Petrișor wrote: > I am trying to make the FreeBSD code base build from a Linux host and > found this bit which defines BUILD_TRIPLE in a way which to my > untrained eyes look like overengineering. > > .if ${TARGET_ARCH:Marmv6*} && (!defined(CPUTYPE) || ${CPUTYPE

lib/clan/llvm.build.mk: Shouldn't BUILD_TRIPLE definition rely host 'cc -dumpmachine'?

2017-10-26 Thread Eddy Petrișor
Hello, I am trying to make the FreeBSD code base build from a Linux host and found this bit which defines BUILD_TRIPLE in a way which to my untrained eyes look like overengineering. .if ${TARGET_ARCH:Marmv6*} && (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "") TARGET_ABI=-gnueabihf .elif ${