comp.lang.ada
 help / color / mirror / Atom feed
* How to check syntax with GNAT?
@ 2017-07-09  6:54 Victor Porton
  2017-07-12 16:08 ` Stephen Leake
  2017-07-13  5:47 ` Simon Wright
  0 siblings, 2 replies; 4+ messages in thread
From: Victor Porton @ 2017-07-09  6:54 UTC (permalink / raw)


From https://github.com/vporton/redland-bindings/blob/ada2012/ada/librdf.gpr

   package Builder is
      case Debug_Mode is
          when "check" =>
             for Default_Switches ("Ada") use ("-gnatc");
          when others =>
             null;
      end case;
   end Builder;

But when I run `make my-check`, I get:

$ make my-check 
gnatmake -p -Plibrdf.gpr \
                 -XLIBRARY_KIND=static -XOBJ_DIR=./obj-static -
Xsoversion=librdf-ada.so.2.0.14 -XMODE=Install -XDEBUG_MODE=check
gnatgcc -c -gnatc -gnat2012 -gnatc rdf-raptor-bnode.adb
...
gprlib rdf-ada.lexch
ar cr /home/porton/Projects/redland-bindings/ada/lib/librdf-ada.a 
/home/porton/Projects/redland-bindings/ada/obj-static/rdf-raptor-bnode.o 
/home/porton/Projects/redland-bindings/ada/obj-static/rdf-raptor-iostream.o 
...
/usr//bin/ar: /home/porton/Projects/redland-bindings/ada/obj-static/rdf-
raptor-bnode.o: No such file or directory
gprlib: call to archive builder /usr//bin/ar failed
gprbuild: could not build library for project librdf
gnatmake: objects up to date.

Why does it attempt to build object files and the library despite of -gnatc 
switch and how to make it not to attempt build object files?

I want to make it just test the syntax.

-- 
Victor Porton - http://portonvictor.org

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

end of thread, other threads:[~2017-07-13  5:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-09  6:54 How to check syntax with GNAT? Victor Porton
2017-07-12 16:08 ` Stephen Leake
2017-07-12 17:31   ` Victor Porton
2017-07-13  5:47 ` Simon Wright

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