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,46b7978bb2005ec X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: gprbuild with --db switch Date: Sat, 20 Aug 2011 18:42:48 +0100 Organization: A noiseless patient Spider Message-ID: References: <9de55a2b-dea8-4351-b09f-77e6c3f79ba1@r12g2000vbe.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="2548"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+778Ki5jmWpAW9az5uE+Q1mRrwoM8LfPY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:wv0xF2suVJElOsUKvYRN18wYDuk= sha1:IvqJ+Vtd8H7uI2rw1edwo0kHXew= Xref: g2news1.google.com comp.lang.ada:20697 Date: 2011-08-20T18:42:48+01:00 List-Id: Simon Belmont writes: > Obstensibly, gprbuild will recognize a "--db dir" switch and pass it > onto gprconfig when spawned (to add an additional knowledge base > directory), but i'm having trouble getting it to do so. Gprbuild will > not complain about the switch (and even spit out an error if the > directory is invalid), but does not seems to invoke gprconfig with > it. By turning on the verbosity, the gprconfig line (as invoked by > gprbuild) is quite clearly missing it, and consequently generates the > auto.cgpr from only the original KB. If i manually run the gprconfig > line as generated by gprbuild, but add the --db switch, the > configuration file is generated as intended. > > Is this a known defenciency, or is there an order the switches must be > in, or other 'gotcha' someone knows about? I have tried most of the > obvious things to no avail. (Gprbuild Pro 1.4.1, 20100106, Linux) If you're supported (I see you're using Gprbuild Pro), this is the sort of question AdaCore are only too happy to answer. If not, you could try the latest gprbuild (from GNAT GPL 2011) from libre.adacore.com. You should be able to extract just gprbuild & friends from the download. There may be configuration issues finding the compiler (--target helps, ISTR), but you seem to be comfortable with this sort of thing!