From: Sandor Lengyel <slengyel@chello.hu>
Subject: Re: Compiling on Gentoo gnat (gcc) 4.1.1 fails on warning.
Date: Tue, 19 Sep 2006 14:45:52 +0200
Date: 2006-09-19T14:45:52+02:00 [thread overview]
Message-ID: <39815$450fe62a$50632e62$21834@news.chello.hu> (raw)
In-Reply-To: 1157528930.752775.108290@e3g2000cwe.googlegroups.com
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
next prev parent reply other threads:[~2006-09-19 12:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2006-09-19 12:48 ` Dirk Heinrichs
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox