comp.lang.ada
 help / color / mirror / Atom feed
* try to bluid gvd
@ 2006-06-09 16:14 ferro.francesco
  2006-06-09 16:39 ` M E Leypold
  2006-06-09 21:46 ` Jeffrey Creem
  0 siblings, 2 replies; 15+ messages in thread
From: ferro.francesco @ 2006-06-09 16:14 UTC (permalink / raw)


Hello,

ok i have a programme for build a programme, it's that :
[url]http://mirror.etf.bg.ac.yu/freebsd/distfiles/gvd-1.2.5-src.tgz[/url]

so, there aren't ports for freebsd so i try to bluild me the src:

i reade the INSTALL and for build it's requiert GtkAda (i have the last
version 2.4.0, and gnat 3.13 or highter (i have gnat 2005)

ok.. i type

$ ./configure
$ make
[CODE]
make CFLAGS="-g -O2" -C pixmaps
make CFLAGS="-g -O2" -C gnat
gcc -c -gnatg -g -O2
gcc: No input files specified
*** Error code 1

Stop in /usr/home/frantch/gvd-1.2.5/gnat.
*** Error code 1

Stop in /usr/home/frantch/gvd-1.2.5.

[/CODE]

ok... i try with gmake

$gmake
[CODE]
gmake CFLAGS="-g -O2" -C pixmaps
gmake[1]: Entering directory `/usr/home/frantch/gvd-1.2.5/pixmaps'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/home/frantch/gvd-1.2.5/pixmaps'
gmake CFLAGS="-g -O2" -C gnat
gmake[1]: Entering directory `/usr/home/frantch/gvd-1.2.5/gnat'
gcc -c -gnatg -g -O2 g-expect.adb
gcc: g-expect.adb: Ada compiler not installed on this system
gmake[1]: *** [g-expect.o] Error 1
gmake[1]: Leaving directory `/usr/home/frantch/gvd-1.2.5/gnat'
gmake: *** [gnat] Error 2

 [/CODE]

hmm it say i havn't a ADa compiler on my systeme... but it strange i
HAVE a ada compiler (gnatmake.. etc...) and it work for me.. but there
no..


pleas anyone can help me?

thank's


ps: (i try to compil gps it's same error...)




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

* Re: try to bluid gvd
  2006-06-09 16:14 try to bluid gvd ferro.francesco
@ 2006-06-09 16:39 ` M E Leypold
  2006-06-10 14:16   ` ferro.francesco
  2006-06-09 21:46 ` Jeffrey Creem
  1 sibling, 1 reply; 15+ messages in thread
From: M E Leypold @ 2006-06-09 16:39 UTC (permalink / raw)



ferro.francesco@gmail.com writes:
> 
> $gmake
> [CODE]
> gmake CFLAGS="-g -O2" -C pixmaps
> gmake[1]: Entering directory `/usr/home/frantch/gvd-1.2.5/pixmaps'
> gmake[1]: Nothing to be done for `all'.
> gmake[1]: Leaving directory `/usr/home/frantch/gvd-1.2.5/pixmaps'
> gmake CFLAGS="-g -O2" -C gnat
> gmake[1]: Entering directory `/usr/home/frantch/gvd-1.2.5/gnat'
> gcc -c -gnatg -g -O2 g-expect.adb
> gcc: g-expect.adb: Ada compiler not installed on this system
> gmake[1]: *** [g-expect.o] Error 1
> gmake[1]: Leaving directory `/usr/home/frantch/gvd-1.2.5/gnat'
> gmake: *** [gnat] Error 2
> 
>  [/CODE]
> 
> hmm it say i havn't a ADa compiler on my systeme... but it strange i
> HAVE a ada compiler (gnatmake.. etc...) and it work for me.. but there
> no..
> 

Perhaps you have on of these systems where there is a "system c
compiler" which doesn't know Ada and the Gnat c compiler is called
gnatgcc?

Then you could try

   export CC=gnatgcc 
   ./configure ...
   gmake CC=gnatgcc CFLAGS="-g -O2" -C pixmaps

It might be that the 'CC=...' in the make commandline is not actually
needed.

Regards -- Markus





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

* Re: try to bluid gvd
  2006-06-09 16:14 try to bluid gvd ferro.francesco
  2006-06-09 16:39 ` M E Leypold
@ 2006-06-09 21:46 ` Jeffrey Creem
  2006-06-09 22:26   ` Ludovic Brenta
  1 sibling, 1 reply; 15+ messages in thread
From: Jeffrey Creem @ 2006-06-09 21:46 UTC (permalink / raw)


ferro.francesco@gmail.com wrote:
> Hello,
> 
> ok i have a programme for build a programme, it's that :
> [url]http://mirror.etf.bg.ac.yu/freebsd/distfiles/gvd-1.2.5-src.tgz[/url]
> 
> so, there aren't ports for freebsd so i try to bluild me the src:
> 
> i reade the INSTALL and for build it's requiert GtkAda (i have the last
> version 2.4.0, and gnat 3.13 or highter (i have gnat 2005)
> 
> ok.. i type
> 
> $ ./configure
> $ make
> [CODE]
> make CFLAGS="-g -O2" -C pixmaps
> make CFLAGS="-g -O2" -C gnat
> gcc -c -gnatg -g -O2
> gcc: No input files specified
> *** Error code 1
> 
> Stop in /usr/home/frantch/gvd-1.2.5/gnat.
> *** Error code 1
> 
> Stop in /usr/home/frantch/gvd-1.2.5.
> 
> [/CODE]
> 
> ok... i try with gmake
> 
> $gmake
> [CODE]
> gmake CFLAGS="-g -O2" -C pixmaps
> gmake[1]: Entering directory `/usr/home/frantch/gvd-1.2.5/pixmaps'
> gmake[1]: Nothing to be done for `all'.
> gmake[1]: Leaving directory `/usr/home/frantch/gvd-1.2.5/pixmaps'
> gmake CFLAGS="-g -O2" -C gnat
> gmake[1]: Entering directory `/usr/home/frantch/gvd-1.2.5/gnat'
> gcc -c -gnatg -g -O2 g-expect.adb
> gcc: g-expect.adb: Ada compiler not installed on this system
> gmake[1]: *** [g-expect.o] Error 1
> gmake[1]: Leaving directory `/usr/home/frantch/gvd-1.2.5/gnat'
> gmake: *** [gnat] Error 2
> 
>  [/CODE]
> 
> hmm it say i havn't a ADa compiler on my systeme... but it strange i
> HAVE a ada compiler (gnatmake.. etc...) and it work for me.. but there
> no..
> 
> 
> pleas anyone can help me?
> 
> thank's
> 
> 
> ps: (i try to compil gps it's same error...)
> 


First, the standalone GVD is no longer updated since the debugging 
capability was rolled into GPS. Not sure what the last version of GtkAda 
was that it compiled against but it has not been updated in a few years.

Second, sounds like you might have one of those installations where the 
gcc driver that knows about ada is gnat-gcc or gcc-gnat or something 
like that and the vanilla gcc is not Ada aware. In some cases you can 
work around this by defining CC before the configure/build process to be 
the correct gcc driver...In some cases, that won't work. Not sure about GVD.


Third, GPS appears (to me at least) to be very difficult to build. I 
don't think anyone on the gnuada sourceforge group has managed to get a 
recent version to build.

You don't say what OS you are on. The fact that make is not gnumake 
seems to rule out a linux distro but you have GNAT 2005? If you have 
that, there should be a pre-built GPS available too?


Note that if you are just looking for a debugger front end, I have found 
that ddd interacts with an Ada aware gdb fairly well....



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

* Re: try to bluid gvd
  2006-06-09 21:46 ` Jeffrey Creem
@ 2006-06-09 22:26   ` Ludovic Brenta
  2006-06-09 22:27     ` Ludovic Brenta
  0 siblings, 1 reply; 15+ messages in thread
From: Ludovic Brenta @ 2006-06-09 22:26 UTC (permalink / raw)


Jeffrey Creem <jeff@thecreems.com> writes:
> Third, GPS appears (to me at least) to be very difficult to build. I
> don't think anyone on the gnuada sourceforge group has managed to get
> a recent version to build.

Right.  In Debian, we have 2.1.0 which is a bit old now, but
functional.  I've started work on 4.0.0w (from the CVS head) but
that's not complete yet.

> You don't say what OS you are on. The fact that make is not gnumake
> seems to rule out a linux distro but you have GNAT 2005? If you have
> that, there should be a pre-built GPS available too?

Looks like FreeBSD.

-- 
Ludovic Brenta.



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

* Re: try to bluid gvd
  2006-06-09 22:26   ` Ludovic Brenta
@ 2006-06-09 22:27     ` Ludovic Brenta
  2006-06-10 14:55       ` Jeffrey Creem
  0 siblings, 1 reply; 15+ messages in thread
From: Ludovic Brenta @ 2006-06-09 22:27 UTC (permalink / raw)


Ludovic Brenta <ludovic@ludovic-brenta.org> writes:

> Jeffrey Creem <jeff@thecreems.com> writes:
>> Third, GPS appears (to me at least) to be very difficult to build. I
>> don't think anyone on the gnuada sourceforge group has managed to get
>> a recent version to build.
>
> Right.  In Debian, we have 2.1.0 which is a bit old now, but
> functional.  I've started work on 4.0.0w (from the CVS head) but
> that's not complete yet.
>
>> You don't say what OS you are on. The fact that make is not gnumake
>> seems to rule out a linux distro but you have GNAT 2005? If you have
>> that, there should be a pre-built GPS available too?
>
> Looks like FreeBSD.

The Ada-aware compiler driver was traditionally called adagcc (in
contrast with GNU/Linux distributions, which use gnatgcc).  I don't
know if that still holds true with GNAT GPL 2005 Edition.

-- 
Ludovic Brenta.



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

* Re: try to bluid gvd
  2006-06-09 16:39 ` M E Leypold
@ 2006-06-10 14:16   ` ferro.francesco
  0 siblings, 0 replies; 15+ messages in thread
From: ferro.francesco @ 2006-06-10 14:16 UTC (permalink / raw)


Thank's fow our answers

i have try you commandbut i have new error:

$ gmake CC=gnatgcc
gmake CFLAGS="-g -O2" -C pixmaps
gmake[1]: Entering directory `/usr/home/frantch/gvd-1.2.5/pixmaps'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/home/frantch/gvd-1.2.5/pixmaps'
gmake CFLAGS="-g -O2" -C gnat
gmake[1]: Entering directory `/usr/home/frantch/gvd-1.2.5/gnat'
gnatgcc -c -gnatg -g -O2 g-expect.adb
g-expect.adb:35:10: warning: license of withed unit "IO" is
incompatible
g-expect.adb:36:10: warning: license of withed unit "OS_LIB" is
incompatible
g-expect.adb:296:07: warning: "Try_Until" is not modified, could be
declared constant
g-expect.adb:718:07: warning: "Buffer_Size" is not modified, could be
declared constant
g-expect.adb:996:07: warning: variable "N" is assigned but never read
g-expect.adb:1047:07: warning: formal parameter "Pid" is not referenced
g-expect.adb:1132:07: warning: formal parameter "Pid" is not referenced
g-expect.adb:1148:07: warning: formal parameter "Descriptor" is not
referenced
g-expect.adb:1150:07: warning: formal parameter "User_Data" is not
referenced
g-expect.ads:110:10: warning: license of withed unit "OS_LIB" is
incompatible
gmake[1]: *** [g-expect.o] Error 1
gmake[1]: Leaving directory `/usr/home/frantch/gvd-1.2.5/gnat'
gmake: *** [gnat] Error 2

i dont understand the warning message :S




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

* Re: try to bluid gvd
  2006-06-09 22:27     ` Ludovic Brenta
@ 2006-06-10 14:55       ` Jeffrey Creem
  2006-06-10 16:22         ` Ludovic Brenta
  0 siblings, 1 reply; 15+ messages in thread
From: Jeffrey Creem @ 2006-06-10 14:55 UTC (permalink / raw)


Ludovic Brenta wrote:
> Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
> 
> 
>>Jeffrey Creem <jeff@thecreems.com> writes:
>>
>>>Third, GPS appears (to me at least) to be very difficult to build. I
>>>don't think anyone on the gnuada sourceforge group has managed to get
>>>a recent version to build.
>>
>>Right.  In Debian, we have 2.1.0 which is a bit old now, but
>>functional.  I've started work on 4.0.0w (from the CVS head) but
>>that's not complete yet.
>>
>>
>>>You don't say what OS you are on. The fact that make is not gnumake
>>>seems to rule out a linux distro but you have GNAT 2005? If you have
>>>that, there should be a pre-built GPS available too?
>>
>>Looks like FreeBSD.
> 
> 
> The Ada-aware compiler driver was traditionally called adagcc (in
> contrast with GNU/Linux distributions, which use gnatgcc).  I don't
> know if that still holds true with GNAT GPL 2005 Edition.
> 

Note that I don't think that AdaCore ever produced any compilerdrivers 
where gcc was anything other than gcc for the native compiler. I believe 
that was always done by people repackaging things to "make it easier".



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

* Re: try to bluid gvd
  2006-06-10 14:55       ` Jeffrey Creem
@ 2006-06-10 16:22         ` Ludovic Brenta
  2006-06-10 16:33           ` ferro.francesco
  0 siblings, 1 reply; 15+ messages in thread
From: Ludovic Brenta @ 2006-06-10 16:22 UTC (permalink / raw)


Jeffrey Creem <jeff@thecreems.com> writes:
>> The Ada-aware compiler driver was traditionally called adagcc (in
>> contrast with GNU/Linux distributions, which use gnatgcc).  I don't
>> know if that still holds true with GNAT GPL 2005 Edition.
>
> Note that I don't think that AdaCore ever produced any compilerdrivers
> where gcc was anything other than gcc for the native compiler. I
> believe that was always done by people repackaging things to "make it
> easier".

Yes.  I meant: I don't know if the GNAT GPL 2005 Edition as packaged
in FreeBSD still uses "adagcc" rather than "gcc".

-- 
Ludovic Benta.



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

* Re: try to bluid gvd
  2006-06-10 16:22         ` Ludovic Brenta
@ 2006-06-10 16:33           ` ferro.francesco
  2006-06-10 17:04             ` ferro.francesco
  0 siblings, 1 reply; 15+ messages in thread
From: ferro.francesco @ 2006-06-10 16:33 UTC (permalink / raw)


i have build gnat-2005 with the port's gnat Makefile

i have take a look in then, and i have see CC=gnatgcc...

look the makefile:

http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/lang/gnat/Makefile?rev=1.52&content-type=text/plain




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

* Re: try to bluid gvd
  2006-06-10 16:33           ` ferro.francesco
@ 2006-06-10 17:04             ` ferro.francesco
  2006-06-10 17:27               ` Ludovic Brenta
  0 siblings, 1 reply; 15+ messages in thread
From: ferro.francesco @ 2006-06-10 17:04 UTC (permalink / raw)


I have find the makefile for gvd ports freebsd (old because gvd are
removed in freebsd 6.1)

so i go test

ftp://ftp.andr.ru/pub/FreeBSD/ports/devel/gvd/Makefile




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

* Re: try to bluid gvd
  2006-06-10 17:04             ` ferro.francesco
@ 2006-06-10 17:27               ` Ludovic Brenta
  2006-06-10 18:43                 ` ferro.francesco
  0 siblings, 1 reply; 15+ messages in thread
From: Ludovic Brenta @ 2006-06-10 17:27 UTC (permalink / raw)


ferro.francesco@gmail.com writes:
> I have find the makefile for gvd ports freebsd (old because gvd are
> removed in freebsd 6.1)
>
> so i go test
>
> ftp://ftp.andr.ru/pub/FreeBSD/ports/devel/gvd/Makefile

Yes, GVD was also removed from Debian, because nobody wanted to
maintain it, and upstream does not support it anymore.  GVD requires
GtkAda 1.2 and will not build with GtkAda 2.4.  I think you would be
better off trying to compile GPS instead, which is the successor to
GVD.

From http://libre.adacore.com, you can get either GPS 2.1.0 prebuilt,
or GPS 3.0 as part of GNAT GPL 205 Edition, or the sources of 4.0.0w
(in progress, not released yet) from CVS.

-- 
Ludovic Brenta.



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

* Re: try to bluid gvd
  2006-06-10 17:27               ` Ludovic Brenta
@ 2006-06-10 18:43                 ` ferro.francesco
  2006-06-10 19:41                   ` Ludovic Brenta
  0 siblings, 1 reply; 15+ messages in thread
From: ferro.francesco @ 2006-06-10 18:43 UTC (permalink / raw)


yes i know

i had try to  built gps 3 but.. there are MORe MOre error.... (if you
would i can put here but ...)

so i have try to build the cvs version

and i have a funny error :S

gmake CC=gnatgcc
gmake -s -C gps -f Makefile.gps default
Making all in db
Making all in PORT
Making all in tcl8.1
Making all in snavigator
Making all in misc
Making all in libutils
Making all in dbutils
Making all in parsers
Making all in cpp
Making all in cpplib
Making all in db
gnatmake -Pgps gps-main.adb
gtkada.gpr:1:09: the object directory "-I/usr/local/include/gtkada"
cannot be found
gtkada.gpr:3:25: "-I/usr/local/include/gtkada" is not a valid directory
gnatmake: "gps" processing failed
gmake[1]: *** [internal-build] Error 4
gmake: *** [default] Error 2

so.. i look in the include dir... and gtkada dir is present..!

so i look in the gtkada.grp file:

   for Source_Dirs use ("-I/usr/local/include/gtkada");
   for Object_Dir use "-I/usr/local/include/gtkada";
   for Externally_Built use "true";

end Gtkada;


so i dont know what i must do...




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

* Re: try to bluid gvd
  2006-06-10 18:43                 ` ferro.francesco
@ 2006-06-10 19:41                   ` Ludovic Brenta
  2006-06-10 20:03                     ` ferro.francesco
  0 siblings, 1 reply; 15+ messages in thread
From: Ludovic Brenta @ 2006-06-10 19:41 UTC (permalink / raw)


ferro.francesco@gmail.com writes:
> so i look in the gtkada.grp file:
>
>    for Source_Dirs use ("-I/usr/local/include/gtkada");
>    for Object_Dir use "-I/usr/local/include/gtkada";
>    for Externally_Built use "true";
>
> end Gtkada;

This is an error, it should be:

    for Source_Dirs use ("/usr/local/include/gtkada");
    for Object_Dir use "/usr/local/include/gtkada";
    for Externally_Built use "true";

HTH

-- 
Ludovic Brenta.



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

* Re: try to bluid gvd
  2006-06-10 19:41                   ` Ludovic Brenta
@ 2006-06-10 20:03                     ` ferro.francesco
  2006-06-10 20:50                       ` Ludovic Brenta
  0 siblings, 1 reply; 15+ messages in thread
From: ferro.francesco @ 2006-06-10 20:03 UTC (permalink / raw)


ok thank's!

now it can found the dir..

but i have always a lot of error :(

shit shit!!!




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

* Re: try to bluid gvd
  2006-06-10 20:03                     ` ferro.francesco
@ 2006-06-10 20:50                       ` Ludovic Brenta
  0 siblings, 0 replies; 15+ messages in thread
From: Ludovic Brenta @ 2006-06-10 20:50 UTC (permalink / raw)


ferro.francesco@gmail.com writes:
> ok thank's!
>
> now it can found the dir..
>
> but i have always a lot of error :(
>
> shit shit!!!

I suggest you look at how I build GPS on Debian.  It took me many
hours of work to get it to build, especially with GNAT 3.15p.  In the
end, I bypassed GPS's configury and makefile completely; I build
almost everything from one makefile (debian/rules) and one GNAT
project file (gps.gpr).  In the process, I avoid building the bundled
copy of Tcl 8.1 because it fails, and Debian already has tcl prebuilt.
The bundled copy of cschthtml also required patching.  Finally, I have
some bug fixes.

All the build scripts are in the debian subdirectory in
http://ftp.debian.org/debian/pool/main/g/gnat-gps/gnat-gps_2.1.0-8.diff.gz

As you can see, the above is for GPS 2.1.0.  As part of the transition
to GCC 4.1 in Debian, I am working on a newer version of GPS.  The
problem is AdaCore's release management:

GPS 3.1.3 requires GtkAda with the CVS tag gps-3_1_3, which is not a
proper release of GtkAda.  Neither gtkada-2_4_1 nor gtkada-2_8_0 will
do.  The CVS HEAD of GPS (4.0.0w, not tagged yet) is closer to
building, but will require GtkAda 2.8.1 not 2.8.0.

So I'm currently waiting for the CVS tag for GtkAda 2.8.1, and then
I'll patch GPS 4.0.0w until it compiles.

The good news is that I will be able to use libgnatvsn4.1 and
libgnatprj4.1; this was not possible with libgnatvsn-3.15p and
libgnatprj-3.15p, due to changes in between GNAT 3.15p and GCC 4.1.

-- 
Ludovic Brenta.



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

end of thread, other threads:[~2006-06-10 20:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-09 16:14 try to bluid gvd ferro.francesco
2006-06-09 16:39 ` M E Leypold
2006-06-10 14:16   ` ferro.francesco
2006-06-09 21:46 ` Jeffrey Creem
2006-06-09 22:26   ` Ludovic Brenta
2006-06-09 22:27     ` Ludovic Brenta
2006-06-10 14:55       ` Jeffrey Creem
2006-06-10 16:22         ` Ludovic Brenta
2006-06-10 16:33           ` ferro.francesco
2006-06-10 17:04             ` ferro.francesco
2006-06-10 17:27               ` Ludovic Brenta
2006-06-10 18:43                 ` ferro.francesco
2006-06-10 19:41                   ` Ludovic Brenta
2006-06-10 20:03                     ` ferro.francesco
2006-06-10 20:50                       ` Ludovic Brenta

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