comp.lang.ada
 help / color / mirror / Atom feed
* Compiling on Gentoo gnat (gcc) 4.1.1 fails on warning.
@ 2006-09-06  5:24 Sandor Lengyel
  2006-09-06  7:48 ` george
  0 siblings, 1 reply; 4+ messages in thread
From: Sandor Lengyel @ 2006-09-06  5:24 UTC (permalink / raw)


Subject says it all. Failure even happen if it doues not like the style of a
comment line.
  It is annoying. 
Can I fix it, or do I have just to write a perfectly styled code.



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

* Re: Compiling on Gentoo gnat (gcc) 4.1.1 fails on warning.
  2006-09-06  5:24 Compiling on Gentoo gnat (gcc) 4.1.1 fails on warning Sandor Lengyel
@ 2006-09-06  7:48 ` george
  2006-09-19 12:45   ` Sandor Lengyel
  0 siblings, 1 reply; 4+ messages in thread
From: george @ 2006-09-06  7:48 UTC (permalink / raw)


Sandor Lengyel wrote:
> Subject says it all. Failure even happen if it doues not like the style of a
> comment line.
>   It is annoying.
> Can I fix it, or do I have just to write a perfectly styled code.

Well, Ok:

1. Can you please be more specific?
a) Does it happend when you compile gnat-gcc itself or  when you
compile your code with a newly built gnat?
b) What is an error messare?
c) What are the flags used (and other build parameters. In particular,
did you use -gnatwe and style checks?)
d) Please provide a (simplified) code example where it fails..

2. Is this a gentoo-specific problem (did you test it elsewhere)? If
so, why don't you use bugs.gentoo.org?

George




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

* Re: Compiling on Gentoo gnat (gcc) 4.1.1 fails on warning.
  2006-09-06  7:48 ` george
@ 2006-09-19 12:45   ` Sandor Lengyel
  2006-09-19 12:48     ` Dirk Heinrichs
  0 siblings, 1 reply; 4+ messages in thread
From: Sandor Lengyel @ 2006-09-19 12:45 UTC (permalink / raw)


No there is no problem in compiling gnat-gcc (4.1.1). The problem is in
using it, although it might be a pecularity of ADA 2005.

For exampe in compiling gps 

 gnatgcc -c -g -gnatec=/usr/src/gpscvs/gps/glide/gnat_debug.adc -g -O -gnata
-gnatVa -gnatQ -gnaty -gnatwjmeurk -Wall -I-
-gnatA /usr/src/gpscvs/gps/src_editor/src/src_editor_module.adb
src_editor_module.adb:27:35: warning: "Color" is already use_visible through
declaration at src_editor_module.ads:24
src_editor_module.adb:31:35: warning: "Glib" is already use_visible through
declaration at src_editor_module.ads:22

Etc.

gnatmake: "/usr/src/gpscvs/gps/src_editor/src/src_editor_module.adb"
compilation error
make[1]: *** [internal-build] Error 4


In src_editor_module.ads

Line 24 is:

with Gdk.Color;          use Gdk.Color;

When I remove it and all the other lines which cause warning by duplication
the file compiles.



george@gentoo.org wrote:

> Sandor Lengyel wrote:
>> Subject says it all. Failure even happen if it doues not like the style
>> of a comment line.
>>   It is annoying.
>> Can I fix it, or do I have just to write a perfectly styled code.
> 
> Well, Ok:
> 
> 1. Can you please be more specific?
> a) Does it happend when you compile gnat-gcc itself or  when you
> compile your code with a newly built gnat?
> b) What is an error messare?
> c) What are the flags used (and other build parameters. In particular,
> did you use -gnatwe and style checks?)
> d) Please provide a (simplified) code example where it fails..
> 
> 2. Is this a gentoo-specific problem (did you test it elsewhere)? If
> so, why don't you use bugs.gentoo.org?
> 
> George




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

* Re: Compiling on Gentoo gnat (gcc) 4.1.1 fails on warning.
  2006-09-19 12:45   ` Sandor Lengyel
@ 2006-09-19 12:48     ` Dirk Heinrichs
  0 siblings, 0 replies; 4+ messages in thread
From: Dirk Heinrichs @ 2006-09-19 12:48 UTC (permalink / raw)


Sandor Lengyel wrote:

> No there is no problem in compiling gnat-gcc (4.1.1). The problem is in
> using it, although it might be a pecularity of ADA 2005.
> 
> For exampe in compiling gps
> 
>  gnatgcc -c -g -gnatec=/usr/src/gpscvs/gps/glide/gnat_debug.adc -g -O
>  -gnata
> -gnatVa -gnatQ -gnaty -gnatwjmeurk -Wall -I-
> -gnatA /usr/src/gpscvs/gps/src_editor/src/src_editor_module.adb
> src_editor_module.adb:27:35: warning: "Color" is already use_visible
> through declaration at src_editor_module.ads:24
> src_editor_module.adb:31:35: warning: "Glib" is already use_visible
> through declaration at src_editor_module.ads:22

These are warnings, but you have -gnatwe switched on which means "Treat
warnings as errors".

HTH...

        Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net



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

end of thread, other threads:[~2006-09-19 12:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-06  5:24 Compiling on Gentoo gnat (gcc) 4.1.1 fails on warning Sandor Lengyel
2006-09-06  7:48 ` george
2006-09-19 12:45   ` Sandor Lengyel
2006-09-19 12:48     ` Dirk Heinrichs

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