Simon Wright <[email protected]> writes: > ================================================ > -*- mode: compilation; default-directory: "~/adacore/svd2ada/" -*- > Compilation started at Wed Jun 22 07:54:37 > > gnat find -a -r Common_Prefix:base_types.adb:603:13 -Psvd2ada.gpr > gnat: 'gnat find -P' is no longer supported; > > Compilation exited abnormally with code 4 at Wed Jun 22 07:54:37 > ================================================ > > Hmpf.
Yes. That's what gpr_query is for. Let me know if it works for you, and if the manual on how to install and use it needs to be improved. > This is, I think, a consequence of AdaCore's move away from supporting > project files fully in FSF GCC. In a way, the fact that gprbuild is > now maintained at github mitigates this, but it does make life > difficult for those caught supporting multiple versions of the > compiler. > > You can see the way things are going by issuing 'gnat list' in GNAT > GPL 2016: it actually calls gprls. Ok; I can finally get rid of 'gnat list' in ada-mode :). > gprls produces different output > from gnat list: if with FSF GCC 6.1.0 I say > > $ arm-eabi-gnat list -v -P testbed.gpr > --RTS=/Users/simon/cortex-gnat-rts/arduino-due > > (the --RTS is needed even though the gpr states it) I get > > Source Search Path: > <Current_Directory> > /Users/simon/cortex-gnat-rts/arduino-due/adainclude > /Users/simon/cortex-gnat-rts/arduino-due/atsam3x8e > /Users/simon/cortex-gnat-rts/common > /Users/simon/cortex-gnat-rts/test-arduino-due > /Users/simon/cortex-gnat-rts/test-common > > whereas if I say > > gprls -P testbed.gpr > > I just get > > Source Search Path: > /Users/simon/cortex-gnat-rts/test-arduino-due/ > /Users/simon/cortex-gnat-rts/test-common/ Hmm. I'm guessing this is according to some directory layout standard; why do you have other dirs in your search path? -- -- Stephe _______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
