* invoking a native compiler (gcc)
@ 2016-01-07 5:21 Trevor Woerner
2016-01-07 8:07 ` Robert Yang
0 siblings, 1 reply; 7+ messages in thread
From: Trevor Woerner @ 2016-01-07 5:21 UTC (permalink / raw)
To: OE-core
If a recipe needs to build some tool on the build machine which it later
wants to invoke, my understanding is that BUILD_CC should be used?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: invoking a native compiler (gcc)
2016-01-07 5:21 invoking a native compiler (gcc) Trevor Woerner
@ 2016-01-07 8:07 ` Robert Yang
2016-01-07 15:40 ` Trevor Woerner
0 siblings, 1 reply; 7+ messages in thread
From: Robert Yang @ 2016-01-07 8:07 UTC (permalink / raw)
To: Trevor Woerner, OE-core
On 01/07/2016 01:21 PM, Trevor Woerner wrote:
> If a recipe needs to build some tool on the build machine which it later
> wants to invoke, my understanding is that BUILD_CC should be used?
Yes, you're right, use ${BUILD_CC}.
// Robert
>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: invoking a native compiler (gcc)
2016-01-07 8:07 ` Robert Yang
@ 2016-01-07 15:40 ` Trevor Woerner
2016-01-07 15:46 ` Burton, Ross
0 siblings, 1 reply; 7+ messages in thread
From: Trevor Woerner @ 2016-01-07 15:40 UTC (permalink / raw)
To: Robert Yang, OE-core
Hi Robert,
On 01/07/16 03:07, Robert Yang wrote:
>
>
> On 01/07/2016 01:21 PM, Trevor Woerner wrote:
>> If a recipe needs to build some tool on the build machine which it later
>> wants to invoke, my understanding is that BUILD_CC should be used?
>
> Yes, you're right, use ${BUILD_CC}.
>
Ok, thanks. That's what I thought.
I was surprised to find that BUILD_CC is being set to whatever comes up
first in our build computer's PATH. But I guess the alternative would be
to make our builds longer by compiling our own native compiler for such
cases.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: invoking a native compiler (gcc)
2016-01-07 15:40 ` Trevor Woerner
@ 2016-01-07 15:46 ` Burton, Ross
2016-01-07 16:37 ` Richard Purdie
0 siblings, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2016-01-07 15:46 UTC (permalink / raw)
To: Trevor Woerner; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 515 bytes --]
On 7 January 2016 at 15:40, Trevor Woerner <twoerner@gmail.com> wrote:
> I was surprised to find that BUILD_CC is being set to whatever comes up
> first in our build computer's PATH. But I guess the alternative would be
> to make our builds longer by compiling our own native compiler for such
> cases.
>
You could always set BUILD_CC to explicitly point to the right compiler on
your machine. When I was trying to make OE work on Darwin I had to set
BUILD_CC to point at brew's gcc binaries.
Ross
[-- Attachment #2: Type: text/html, Size: 929 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: invoking a native compiler (gcc)
2016-01-07 15:46 ` Burton, Ross
@ 2016-01-07 16:37 ` Richard Purdie
2016-01-07 18:01 ` Trevor Woerner
0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2016-01-07 16:37 UTC (permalink / raw)
To: Burton, Ross, Trevor Woerner; +Cc: OE-core
On Thu, 2016-01-07 at 15:46 +0000, Burton, Ross wrote:
>
> On 7 January 2016 at 15:40, Trevor Woerner <twoerner@gmail.com>
> wrote:
> > I was surprised to find that BUILD_CC is being set to whatever
> > comes up
> > first in our build computer's PATH. But I guess the alternative
> > would be
> > to make our builds longer by compiling our own native compiler for
> > such
> > cases.
> >
> You could always set BUILD_CC to explicitly point to the right
> compiler on your machine. When I was trying to make OE work on
> Darwin I had to set BUILD_CC to point at brew's gcc binaries.
Or you setup PATH to include things in the right order as we do with
other native tools...
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: invoking a native compiler (gcc)
2016-01-07 16:37 ` Richard Purdie
@ 2016-01-07 18:01 ` Trevor Woerner
2016-01-12 0:35 ` Khem Raj
0 siblings, 1 reply; 7+ messages in thread
From: Trevor Woerner @ 2016-01-07 18:01 UTC (permalink / raw)
Cc: OE-core
On 01/07/16 11:37, Richard Purdie wrote:
> On Thu, 2016-01-07 at 15:46 +0000, Burton, Ross wrote:
>> On 7 January 2016 at 15:40, Trevor Woerner <twoerner@gmail.com>
>> wrote:
>>> I was surprised to find that BUILD_CC is being set to whatever
>>> comes up
>>> first in our build computer's PATH. But I guess the alternative
>>> would be
>>> to make our builds longer by compiling our own native compiler for
>>> such
>>> cases.
>>>
>> You could always set BUILD_CC to explicitly point to the right
>> compiler on your machine. When I was trying to make OE work on
>> Darwin I had to set BUILD_CC to point at brew's gcc binaries.
> Or you setup PATH to include things in the right order as we do with
> other native tools...
I was surprised to learn that a compiler from the host machine was
potentially being used as part of a build, not which one is found and
being used. When I discovered this I was quite sure I had configured
something incorrectly. This is more of an academic exercise, I didn't
run into any problems.
I guess we're covered in the sense that each release specifies which
distros are supported. So as long as any native tools that are used in
each of the support distros are able to produce a successful build
everything should be fine. BUILD_CC is almost like an implicit
ASSUME_PROVIDED.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: invoking a native compiler (gcc)
2016-01-07 18:01 ` Trevor Woerner
@ 2016-01-12 0:35 ` Khem Raj
0 siblings, 0 replies; 7+ messages in thread
From: Khem Raj @ 2016-01-12 0:35 UTC (permalink / raw)
To: Trevor Woerner; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 2055 bytes --]
> On Jan 7, 2016, at 10:01 AM, Trevor Woerner <twoerner@gmail.com> wrote:
>
>
>
> On 01/07/16 11:37, Richard Purdie wrote:
>> On Thu, 2016-01-07 at 15:46 +0000, Burton, Ross wrote:
>>> On 7 January 2016 at 15:40, Trevor Woerner <twoerner@gmail.com>
>>> wrote:
>>>> I was surprised to find that BUILD_CC is being set to whatever
>>>> comes up
>>>> first in our build computer's PATH. But I guess the alternative
>>>> would be
>>>> to make our builds longer by compiling our own native compiler for
>>>> such
>>>> cases.
>>>>
>>> You could always set BUILD_CC to explicitly point to the right
>>> compiler on your machine. When I was trying to make OE work on
>>> Darwin I had to set BUILD_CC to point at brew's gcc binaries.
>> Or you setup PATH to include things in the right order as we do with
>> other native tools...
>
> I was surprised to learn that a compiler from the host machine was
> potentially being used as part of a build, not which one is found and
> being used. When I discovered this I was quite sure I had configured
> something incorrectly. This is more of an academic exercise, I didn't
> run into any problems.
>
> I guess we're covered in the sense that each release specifies which
> distros are supported. So as long as any native tools that are used in
> each of the support distros are able to produce a successful build
> everything should be fine. BUILD_CC is almost like an implicit
> ASSUME_PROVIDED.
It doesnt end at compiler.
We are cross compiling. so yes we do bootstrap using tools from build host.
you can go down the lane and start insulating from hosts by building native packages
for everything but it does not buy us much. We basically then end up building a build host distro ‘sort of’
before anything is built for target. We already are building too many things then
I would think we should. It also has a maintenance cost to build e..g OE packages to run on ubuntu
its an untested combination where as running ubuntu package on ubuntu is a tested combo
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-01-12 0:36 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-07 5:21 invoking a native compiler (gcc) Trevor Woerner
2016-01-07 8:07 ` Robert Yang
2016-01-07 15:40 ` Trevor Woerner
2016-01-07 15:46 ` Burton, Ross
2016-01-07 16:37 ` Richard Purdie
2016-01-07 18:01 ` Trevor Woerner
2016-01-12 0:35 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox