* [Buildroot] buildroot host builds with g++
@ 2022-05-06 14:23 Earthquake
0 siblings, 0 replies; 9+ messages in thread
From: Earthquake @ 2022-05-06 14:23 UTC (permalink / raw)
To: buildroot
Hi,
building package for the host, ends with:
g++: error: /usr/bin/g++": No such file or directory
Building the same package for the target works....
Package mk for host build calls generic-package and host-generic-package.
Best regards,
Alex
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Buildroot] buildroot host builds with g++
[not found] <80d6f58b-a36e-6148-c6b6-37a29d3244e5@freenet.de>
@ 2022-05-06 15:23 ` Peter Korsgaard
2022-05-08 8:35 ` Alex
0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2022-05-06 15:23 UTC (permalink / raw)
To: Earthquake, buildroot; +Cc: busybox
>>>>> "Earthquake" == Earthquake <earthquake.de@freenet.de> writes:
> Hi,
> building package for the host, ends with:
> g++: error: /usr/bin/g++": No such file or directory
> Building the same package for the target works....
> Package mk for host build calls generic-package and host-generic-package.
This sounds like a Buildroot question rather than a Busybox one, so
please followup on the Buildroot list (buildroot@buildroot.org).
With that said, if your package is written in C++ and you try to build
it for the host, then you need a C++ compiler on your host, but please
provide some more details about what exactly you are trying to do.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Buildroot] buildroot host builds with g++
2022-05-06 15:23 ` [Buildroot] buildroot host builds with g++ Peter Korsgaard
@ 2022-05-08 8:35 ` Alex
2022-05-08 9:06 ` Peter Korsgaard
0 siblings, 1 reply; 9+ messages in thread
From: Alex @ 2022-05-08 8:35 UTC (permalink / raw)
To: Peter Korsgaard, buildroot
Hi,
I created a target package for ACE(+TAO).
From the package I need the Idl compiler for the host.
Therefore I created a host makefile for building the IDL compiler (just
the idl compiler (with static option...)).
So, if I build the idl compiler for the target, compile is successfull.
(make with TARGET_CONFIGURE_OPTS)
But buiding for the host (make with HOST_CONFIGURE_OPTS) the build fails
with
g++: error: /usr/bin/g++": No such file or directory
In buildroot-config, BR2_TOOLCHAIN_BUILDROOT_CXX is set.
So how can I get a g++ for host building?
Best regards,
Alex
> > Hi,
> > building package for the host, ends with:
> > g++: error: /usr/bin/g++": No such file or directory
>
> > Building the same package for the target works....
>
> > Package mk for host build calls generic-package and host-generic-package.
>
> This sounds like a Buildroot question rather than a Busybox one, so
> please followup on the Buildroot list (buildroot@buildroot.org).
>
> With that said, if your package is written in C++ and you try to build
> it for the host, then you need a C++ compiler on your host, but please
> provide some more details about what exactly you are trying to do.
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Buildroot] buildroot host builds with g++
2022-05-08 8:35 ` Alex
@ 2022-05-08 9:06 ` Peter Korsgaard
2022-05-08 18:09 ` Alex
0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2022-05-08 9:06 UTC (permalink / raw)
To: Alex; +Cc: buildroot
>>>>> "Alex" == Alex <earthquake.de@freenet.de> writes:
> Hi,
> I created a target package for ACE(+TAO).
> From the package I need the Idl compiler for the host.
> Therefore I created a host makefile for building the IDL compiler
> (just the idl compiler (with static option...)).
> So, if I build the idl compiler for the target, compile is
> successfull. (make with TARGET_CONFIGURE_OPTS)
> But buiding for the host (make with HOST_CONFIGURE_OPTS) the build
> fails with
> g++: error: /usr/bin/g++": No such file or directory
> In buildroot-config, BR2_TOOLCHAIN_BUILDROOT_CXX is set.
> So how can I get a g++ for host building?
You need to instal g++ on your build machine.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Buildroot] buildroot host builds with g++
2022-05-08 9:06 ` Peter Korsgaard
@ 2022-05-08 18:09 ` Alex
2022-05-08 19:25 ` Peter Korsgaard
0 siblings, 1 reply; 9+ messages in thread
From: Alex @ 2022-05-08 18:09 UTC (permalink / raw)
To: Peter Korsgaard, buildroot
Am 08.05.2022 um 11:06 schrieb Peter Korsgaard:
>>>>>> "Alex" == Alex <earthquake.de@freenet.de> writes:
> > Hi,
> > I created a target package for ACE(+TAO).
> > From the package I need the Idl compiler for the host.
> > Therefore I created a host makefile for building the IDL compiler
> > (just the idl compiler (with static option...)).
>
> > So, if I build the idl compiler for the target, compile is
> > successfull. (make with TARGET_CONFIGURE_OPTS)
> > But buiding for the host (make with HOST_CONFIGURE_OPTS) the build
> > fails with
>
> > g++: error: /usr/bin/g++": No such file or directory
>
> > In buildroot-config, BR2_TOOLCHAIN_BUILDROOT_CXX is set.
>
> > So how can I get a g++ for host building?
>
> You need to instal g++ on your build machine.
g++ is installed on my build machine where I create my buildroot system.
The project compiles outside of buildroot on my build machine.
Does buildroot environment need a link/variable to the g++ on the built
machine?
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Buildroot] buildroot host builds with g++
2022-05-08 18:09 ` Alex
@ 2022-05-08 19:25 ` Peter Korsgaard
2022-05-09 6:46 ` Alex
0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2022-05-08 19:25 UTC (permalink / raw)
To: Alex; +Cc: buildroot
>>>>> "Alex" == Alex <earthquake.de@freenet.de> writes:
Hi,
>> > So, if I build the idl compiler for the target, compile is
>> > successfull. (make with TARGET_CONFIGURE_OPTS)
>> > But buiding for the host (make with HOST_CONFIGURE_OPTS) the build
>> > fails with
>>
>> > g++: error: /usr/bin/g++": No such file or directory
>>
>> > In buildroot-config, BR2_TOOLCHAIN_BUILDROOT_CXX is set.
>>
>> > So how can I get a g++ for host building?
>>
>> You need to instal g++ on your build machine.
> g++ is installed on my build machine where I create my buildroot system.
> The project compiles outside of buildroot on my build machine.
> Does buildroot environment need a link/variable to the g++ on the
> built machine?
Are you sure? Based on the above, it doesn't sound like you have a
/usr/bin/g++?
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Buildroot] buildroot host builds with g++
2022-05-08 19:25 ` Peter Korsgaard
@ 2022-05-09 6:46 ` Alex
2022-05-09 6:50 ` Peter Korsgaard
0 siblings, 1 reply; 9+ messages in thread
From: Alex @ 2022-05-09 6:46 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: buildroot
Am 08.05.2022 um 21:25 schrieb Peter Korsgaard:
>>>>>> "Alex" == Alex <earthquake.de@freenet.de> writes:
> Hi,
>
> >> > So, if I build the idl compiler for the target, compile is
> >> > successfull. (make with TARGET_CONFIGURE_OPTS)
> >> > But buiding for the host (make with HOST_CONFIGURE_OPTS) the build
> >> > fails with
> >>
> >> > g++: error: /usr/bin/g++": No such file or directory
> >>
> >> > In buildroot-config, BR2_TOOLCHAIN_BUILDROOT_CXX is set.
> >>
> >> > So how can I get a g++ for host building?
> >>
> >> You need to instal g++ on your build machine.
>
> > g++ is installed on my build machine where I create my buildroot system.
> > The project compiles outside of buildroot on my build machine.
> > Does buildroot environment need a link/variable to the g++ on the
> > built machine?
>
> Are you sure? Based on the above, it doesn't sound like you have a
> /usr/bin/g++?
Im sure: $>which g++
/usr/bin/g++
g++ is a link which points over etc/alternatives to
/usr/bin/x86_64-linux-gnu-g++-7
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Buildroot] buildroot host builds with g++
2022-05-09 6:46 ` Alex
@ 2022-05-09 6:50 ` Peter Korsgaard
2022-05-09 8:20 ` Alex
0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2022-05-09 6:50 UTC (permalink / raw)
To: Alex; +Cc: buildroot
>>>>> "Alex" == Alex <earthquake.de@freenet.de> writes:
Hi,
>> > g++ is installed on my build machine where I create my buildroot system.
>> > The project compiles outside of buildroot on my build machine.
>> > Does buildroot environment need a link/variable to the g++ on the
>> > built machine?
>>
>> Are you sure? Based on the above, it doesn't sound like you have a
>> /usr/bin/g++?
> Im sure: $>which g++
> /usr/bin/g++
> g++ is a link which points over etc/alternatives to
> /usr/bin/x86_64-linux-gnu-g++-7
Ok, then you will need to look closer at the build system of that
package to understand what is going on. Perhaps it plays around with
LD_LIBRARY_PATH or similar?
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Buildroot] buildroot host builds with g++
2022-05-09 6:50 ` Peter Korsgaard
@ 2022-05-09 8:20 ` Alex
0 siblings, 0 replies; 9+ messages in thread
From: Alex @ 2022-05-09 8:20 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: buildroot
Am 09.05.2022 um 08:50 schrieb Peter Korsgaard:
>>>>>> "Alex" == Alex <earthquake.de@freenet.de> writes:
> Hi,
>
> >> > g++ is installed on my build machine where I create my buildroot system.
> >> > The project compiles outside of buildroot on my build machine.
> >> > Does buildroot environment need a link/variable to the g++ on the
> >> > built machine?
> >>
> >> Are you sure? Based on the above, it doesn't sound like you have a
> >> /usr/bin/g++?
>
> > Im sure: $>which g++
> > /usr/bin/g++
>
> > g++ is a link which points over etc/alternatives to
> > /usr/bin/x86_64-linux-gnu-g++-7
>
> Ok, then you will need to look closer at the build system of that
> package to understand what is going on. Perhaps it plays around with
> LD_LIBRARY_PATH or similar?
Found the Problem,
g++ is available and is used correctly.
Problem is: the last build part (compile the files needed to build the
executable, not for the libs) uses a define in the make call and set it
like:
Outside of buildroot is set like: -DTAO_IDL_PREPROCESSOR=\"g++\"
Inside host building is set with:
-DTAO_IDL_PREPROCESSOR=\"<myhome>/buildroot-2021.02.9/output/host/bin/ccache
/usr/bin/g++\"
Passing that ends with g++: error: /usr/bin/g++": No such file or directory
Passing TAO_IDL_PREPROCESSOR with the buildroot host cxx compile will
successfull finish.
Is there a variable specify the compilier with the complete path that i
can pass to the define? (BTW: Is there an overview over all
defined/available variables?)
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-05-09 8:20 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <80d6f58b-a36e-6148-c6b6-37a29d3244e5@freenet.de>
2022-05-06 15:23 ` [Buildroot] buildroot host builds with g++ Peter Korsgaard
2022-05-08 8:35 ` Alex
2022-05-08 9:06 ` Peter Korsgaard
2022-05-08 18:09 ` Alex
2022-05-08 19:25 ` Peter Korsgaard
2022-05-09 6:46 ` Alex
2022-05-09 6:50 ` Peter Korsgaard
2022-05-09 8:20 ` Alex
2022-05-06 14:23 Earthquake
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.