comp.lang.ada
 help / color / mirror / Atom feed
* GCC with ada support
@ 2012-02-04  6:48 Patrick
  2012-02-04 13:57 ` Patrick
  0 siblings, 1 reply; 10+ messages in thread
From: Patrick @ 2012-02-04  6:48 UTC (permalink / raw)


Hi Everyone

I am trying to compile the latest gcc so that I can get -fdump-ada-
spec.  I know I could get this from the gnat-gpl version but I was
thinking that it might be wiser to get it from gcc so that there would
not be version issues with multi-language development(which I have
never done).

Anyhow, the gcc version in my Trisquel repository(based on ubuntu)does
not have proper ada support even though gnat is installed through the
package manager as well. It looks like this might be a bug according
to some web posts.

Is there a linux distro that ships gcc with ada support built in? or
even better gcc with -fdump-ada-spec  enabled?

Thanks for reading-Patrick



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC with ada support
  2012-02-04  6:48 GCC with ada support Patrick
@ 2012-02-04 13:57 ` Patrick
  2012-02-04 14:17   ` Patrick
  2012-02-08 11:50   ` Stephen Leake
  0 siblings, 2 replies; 10+ messages in thread
From: Patrick @ 2012-02-04 13:57 UTC (permalink / raw)


Sorry for answering my own post but I think my entire logic is flawed.
I am trying to install gtkAda from source and having some trouble with
version skewing.

now I am thinking it is better to use code from the ada core website
and not from my Linux repository.

Do you think I will have trouble building mixed C/Ada programs if I
use gcc from my repository and gnat from adacore's site?

Sorry for cluttering the list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC with ada support
  2012-02-04 13:57 ` Patrick
@ 2012-02-04 14:17   ` Patrick
  2012-02-06  8:24     ` Ludovic Brenta
  2012-02-08 11:50   ` Stephen Leake
  1 sibling, 1 reply; 10+ messages in thread
From: Patrick @ 2012-02-04 14:17 UTC (permalink / raw)


sorry once again, I mean will I have trouble if I build a C program
with repository gcc and ada with gnat direct from adacore's site



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC with ada support
  2012-02-04 14:17   ` Patrick
@ 2012-02-06  8:24     ` Ludovic Brenta
  2012-02-06 15:47       ` Patrick
  0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Brenta @ 2012-02-06  8:24 UTC (permalink / raw)


Patrick wrote on comp.lang.ada:
> I am trying to compile the latest gcc so that I can get -fdump-ada-
> spec.  I know I could get this from the gnat-gpl version but I was
> thinking that it might be wiser to get it from gcc so that there would
> not be version issues with multi-language development(which I have
> never done).
>
> Anyhow, the gcc version in my Trisquel repository(based on ubuntu)does
> not have proper ada support even though gnat is installed through the
> package manager as well.

What do you mean by "does not have proper ada support"?

Anyway, to answer your question about -fdump-ada-spec, this option was
added in April 2010 to the main line of development of GCC[1]. The
first
official release of GCC that contains this feature is GCC 4.6[2] and
it is also present in GNAT 2011 GPL Edition.

[1] http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01592.html
[2] http://gcc.gnu.org/develop.html#timeline

The best solution to your problem at this point in time is to use
Debian unstable, possibly in a chroot[3], and say:

aptitude install gnat-4.6

[3] http://lists.debian.org/debian-ada/2010/02/msg00003.html

> It looks like this might be a bug according to some web posts.

Which web posts?

> I am trying to install gtkAda from source and having some trouble with
> version skewing.

In that case: aptitude install libgtkada2.24.1-dev

will avoid the need to recompile GtkAda from sources and will take
care
of version skewing for you.

I don't know how far the various Debian derivatives lag behind Debian
proper. It is possible that your distribution already contains
gnat-4.6
and libgtkada2.24.1-dev.

If you need -fdump-ada-spec only so you can compile GtkAda, then
Debian
removes that need completely by providing GtkAda precompiled.  In this
case you can use any version of Debian or a derivative; look for the
package libgtkada2.*-dev in the package manager.

> now I am thinking it is better to use code from the ada core website
> and not from my Linux repository.

From your post it seems this is not your best option.  You best option
is to use precompiled binary packages and not bother rebuilding
everything yourself.

HTH

--
Ludovic Brenta, maintainer of GNAT and GtkAda in Debian.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC with ada support
  2012-02-06  8:24     ` Ludovic Brenta
@ 2012-02-06 15:47       ` Patrick
  2012-02-07 20:48         ` Patrick
  2012-02-07 20:50         ` Patrick
  0 siblings, 2 replies; 10+ messages in thread
From: Patrick @ 2012-02-06 15:47 UTC (permalink / raw)


Hi Ludovic

Thanks very much for your clear instructions to my rambling post. I am
quite confused and this clears up a lot of things :)

-Patrick



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC with ada support
  2012-02-06 15:47       ` Patrick
@ 2012-02-07 20:48         ` Patrick
  2012-02-07 20:50         ` Patrick
  1 sibling, 0 replies; 10+ messages in thread
From: Patrick @ 2012-02-07 20:48 UTC (permalink / raw)


Hi Again Ludovic

This issue is resolved for me, thanks once again. I just want to
report back as to what happened as I can now see the picture more
clearly.

If this is boring please skip this:

So I was running Trisquel Linux.

The issue I was having was similar to this bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491228

gcc -c SomeFile.adb gave:
gcc: error trying to exec 'gnat1': execvp: No such file or directory


but gnat was installed, gnatmake -v gave:
GNATMAKE 4.4.5
Copyright (C) 1995-2008, Free Software Foundation, Inc.

I tried to install gnat from source but it failed as it requires gcc
to know about gnat.

I tried to install the gnat binaries but had some trouble too. They
seemed to work with gnat also installed from the repositories but not
without. This portion of the story is still fuzzy. I reinstalled
Trisquel many times to start with a fresh slate so I might be mixing
something up.

I was not able to build gcc from source either as again it requires a
previous version of gcc that understands ada in order to enable the
ada features.

I tried many things before your suggestion and went through other
distros. I have installed Debian now and with gcc 4.6 and gnat 4.6 I
can compile ada programs with gcc -c and i have the -fdump-ada-spec
feature I desperately wanted too.

If i install libgtkada2.14-2-dev I can build the gtk ada examples from
my adacore package. However this library downgrades gnat to 4.4 and
gcc 4.6 can no longer find it.

I am not totally worried about the gtk library. I am thinking that if
i build a skeleton gtk app and link it into ada I can "fill it out"
and avoid using the ada library.

Anyhow thanks again. I am trying to construct a program that will help
my son visualize words, he as a devastating speech delay. I plan on
making an app that will talk when it's typed and will have a number of
other features. Helping me with this is a great benefit to my family.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC with ada support
  2012-02-06 15:47       ` Patrick
  2012-02-07 20:48         ` Patrick
@ 2012-02-07 20:50         ` Patrick
  2012-02-07 23:31           ` Ludovic Brenta
  1 sibling, 1 reply; 10+ messages in thread
From: Patrick @ 2012-02-07 20:50 UTC (permalink / raw)


Hi Again Ludovic

This issue is resolved for me, thanks once again. I just want to
report back as to what happened as I can now see the picture more
clearly.

If this is boring please skip this:

So I was running Trisquel Linux.

The issue I was having was similar to this bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491228

gcc -c SomeFile.adb gave:
gcc: error trying to exec 'gnat1': execvp: No such file or directory


but gnat was installed, gnatmake -v gave:
GNATMAKE 4.4.5
Copyright (C) 1995-2008, Free Software Foundation, Inc.

I tried to install gnat from source but it failed as it requires gcc
to know about gnat.

I tried to install the gnat binaries but had some trouble too. They
seemed to work with gnat also installed from the repositories but not
without. This portion of the story is still fuzzy. I reinstalled
Trisquel many times to start with a fresh slate so I might be mixing
something up.

I was not able to build gcc from source either as again it requires a
previous version of gcc that understands ada in order to enable the
ada features.

I tried many things before your suggestion and went through other
distros. I have installed Debian now and with gcc 4.6 and gnat 4.6 I
can compile ada programs with gcc -c and i have the -fdump-ada-spec
feature I desperately wanted too.

If i install libgtkada2.14-2-dev I can build the gtk ada examples from
my adacore package. However this library downgrades gnat to 4.4 and
gcc 4.6 can no longer find it.

I am not totally worried about the gtk library. I am thinking that if
i build a skeleton gtk app and link it into ada I can "fill it out"
and avoid using the ada library.

Anyhow thanks again. I am trying to construct a program that will help
my son visualize words, he as a devastating speech delay. I plan on
making an app that will talk when it's typed and will have a number of
other features. Helping me with this is a great benefit to my family.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC with ada support
  2012-02-07 20:50         ` Patrick
@ 2012-02-07 23:31           ` Ludovic Brenta
  0 siblings, 0 replies; 10+ messages in thread
From: Ludovic Brenta @ 2012-02-07 23:31 UTC (permalink / raw)


Patrick <patrick@spellingbeewinnars.org> writes:
> If i install libgtkada2.14-2-dev I can build the gtk ada examples from
> my adacore package. However this library downgrades gnat to 4.4 and
> gcc 4.6 can no longer find it.

Install libgtkada2.24.1-dev instead.

> Anyhow thanks again. I am trying to construct a program that will help
> my son visualize words, he as a devastating speech delay. I plan on
> making an app that will talk when it's typed and will have a number of
> other features. Helping me with this is a great benefit to my family.

Good luck.  I hope you find as much support as you need on this
newsgroup.

-- 
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC with ada support
  2012-02-04 13:57 ` Patrick
  2012-02-04 14:17   ` Patrick
@ 2012-02-08 11:50   ` Stephen Leake
  2012-02-09 12:14     ` Patrick
  1 sibling, 1 reply; 10+ messages in thread
From: Stephen Leake @ 2012-02-08 11:50 UTC (permalink / raw)


Patrick <patrick@spellingbeewinnars.org> writes:

> Do you think I will have trouble building mixed C/Ada programs if I
> use gcc from my repository and gnat from adacore's site?

Yes. 

One solution is to use gcc and gnat from AdaCore's site; that will be
entirely consistent.

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: GCC with ada support
  2012-02-08 11:50   ` Stephen Leake
@ 2012-02-09 12:14     ` Patrick
  0 siblings, 0 replies; 10+ messages in thread
From: Patrick @ 2012-02-09 12:14 UTC (permalink / raw)


Thanks Stephen :)



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-02-09 12:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-04  6:48 GCC with ada support Patrick
2012-02-04 13:57 ` Patrick
2012-02-04 14:17   ` Patrick
2012-02-06  8:24     ` Ludovic Brenta
2012-02-06 15:47       ` Patrick
2012-02-07 20:48         ` Patrick
2012-02-07 20:50         ` Patrick
2012-02-07 23:31           ` Ludovic Brenta
2012-02-08 11:50   ` Stephen Leake
2012-02-09 12:14     ` Patrick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox