From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8d3b118c11580268 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.germany.com!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed02.chello.at!news.chello.hu.POSTED!not-for-mail From: Sandor Lengyel Subject: Re: Compiling on Gentoo gnat (gcc) 4.1.1 fails on warning. Newsgroups: comp.lang.ada Date: Tue, 19 Sep 2006 14:45:52 +0200 References: <976e$44fe5b6c$5063c1c7$10942@news.chello.hu> <1157528930.752775.108290@e3g2000cwe.googlegroups.com> User-Agent: KNode/0.10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: <39815$450fe62a$50632e62$21834@news.chello.hu> X-Complaints-To: abuse@chello.hu Organization: chello.hu NNTP-Posting-Host: 80.99.46.98 (80.99.46.98) NNTP-Posting-Date: Tue, 19 Sep 2006 14:44:26 +0200 X-Trace: 39815450fe62af5c68bc721834 Xref: g2news2.google.com comp.lang.ada:6661 Date: 2006-09-19T14:45:52+02:00 List-Id: 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