* [Buildroot] [PATCH 1/1] Adding support to conditionally build the GNAT Ada compiler in the toolchain. [not found] <20180521013248.22532-1-glen.m.cornell@gmail.com> @ 2018-05-21 8:29 ` Thomas Petazzoni [not found] ` <51E2F87E-1703-4DE0-BAFA-4FFA1AA0CFC9@gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: Thomas Petazzoni @ 2018-05-21 8:29 UTC (permalink / raw) To: buildroot Hello Glen, Thanks for this contribution! First of all, your patch didn't make it to the Buildroot mailing list. Perhaps you forgot to subscribe to the mailing list ? If you don't want to receive all the mailing list traffic, you can subscribe and then disable mail delivery. See below for some comments about your submission. First of all, the commit title should be something like: gcc: add support for building the Ada compiler On Sun, 20 May 2018 21:32:48 -0400, Glen Cornell wrote: > Signed-off-by: Glen Cornell <glen.m.cornell@gmail.com> > --- > package/gcc/Config.in.host | 12 ++++++++++++ > package/gcc/gcc-final/gcc-final.mk | 1 + > 2 files changed, 13 insertions(+) > > diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host > index 7c08fb3596..06ffe586af 100644 > --- a/package/gcc/Config.in.host > +++ b/package/gcc/Config.in.host > @@ -92,6 +92,18 @@ config BR2_TOOLCHAIN_BUILDROOT_CXX > C++ language and you want C++ libraries to be installed on > your target system. > > +config BR2_TOOLCHAIN_BUILDROOT_ADA > + bool "Enable Ada support" > + select BR2_INSTALL_LIBSTDCPP > + select BR2_SHARED_STATIC_LIBS You can't select BR2_SHARED_STATIC_LIBS, because this option is part of a choice. You can only "depends on BR2_SHARED_STATIC_LIBS". But first and foremost, why do you need BR2_SHARED_STATIC_LIBS ? > + help > + Enable this option if you want your toolchain to support the > + Ada language. Note: Not only must your native host compiler > + support Ada For this one, we need to add something like BR2_NEEDS_HOST_GNAT in the main Config.in option (like BR2_NEEDS_HOST_JAVAC). This option will be selected by BR2_TOOLCHAIN_BUILDROOT_ADA, and support/dependencies/dependencies.sh should check that a host Ada compiler is available. >, but also the libstdc++.a static library must be > + installed on your build host. This looks weird. Why ? > Selecting this option will > + also build the C++ compiler and static libraries, which are > + required to build support for Ada in gcc. We don't really need this paragraph I believe. Thanks! Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <51E2F87E-1703-4DE0-BAFA-4FFA1AA0CFC9@gmail.com>]
* [Buildroot] [PATCH 1/1] Adding support to conditionally build the GNAT Ada compiler in the toolchain. [not found] ` <51E2F87E-1703-4DE0-BAFA-4FFA1AA0CFC9@gmail.com> @ 2018-05-23 8:32 ` Thomas Petazzoni [not found] ` <CF02927B-5016-479E-8EBD-CA7D03809825@gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: Thomas Petazzoni @ 2018-05-23 8:32 UTC (permalink / raw) To: buildroot Hello, On Mon, 21 May 2018 07:23:15 -0400, Glen Cornell wrote: > Thanks for the comments. I?ll update my patch in accordance with your > comments and resubmit. Great, thanks! > FYI - the libstdc++.a dependency I found strange as well. Although I > didn?t investigate the nature of the dependency, without it, the > build fails Then we'll have to do some research on this, because if libstdc++.a is really needed on the host machine, we'll have to add a check in support/dependencies/dependencies.sh for this. Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CF02927B-5016-479E-8EBD-CA7D03809825@gmail.com>]
* [Buildroot] [PATCH 1/1] Adding support to conditionally build the GNAT Ada compiler in the toolchain. [not found] ` <CF02927B-5016-479E-8EBD-CA7D03809825@gmail.com> @ 2018-07-24 6:37 ` Thomas Petazzoni 0 siblings, 0 replies; 3+ messages in thread From: Thomas Petazzoni @ 2018-07-24 6:37 UTC (permalink / raw) To: buildroot Hello, On Mon, 23 Jul 2018 21:52:34 -0400, Glen Cornell wrote: > Hi Thomas. I didn?t want to leave you hanging on this. I did some > research on this. It appears that the version of the gnat cross > compiler is dependent upon the version of the host gnat compiler. > It?s something that would break most build environments where the two > versions differ. OK. This could be resolved by building our own gcc/gnat native compiler. It's a bit of effort obviously, but it could be done. Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-24 6:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20180521013248.22532-1-glen.m.cornell@gmail.com>
2018-05-21 8:29 ` [Buildroot] [PATCH 1/1] Adding support to conditionally build the GNAT Ada compiler in the toolchain Thomas Petazzoni
[not found] ` <51E2F87E-1703-4DE0-BAFA-4FFA1AA0CFC9@gmail.com>
2018-05-23 8:32 ` Thomas Petazzoni
[not found] ` <CF02927B-5016-479E-8EBD-CA7D03809825@gmail.com>
2018-07-24 6:37 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox