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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Victor Porton Newsgroups: comp.lang.ada Subject: Re: 1. some files unnecessarily recompile. 2. .ali files are created twice Date: Fri, 01 Dec 2017 00:59:50 +0200 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: Sz6TxwyziwPWhj5bu0SdBw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.14.10 X-Notice: Filtered by postfilter v. 0.8.2 Xref: reader02.eternal-september.org comp.lang.ada:49286 Date: 2017-12-01T00:59:50+02:00 List-Id: Solved using "with" GPR directives instead of manual "-l...". Victor Porton wrote: > 1. No matter if the entire library was already compiled, some Ada files > are re-compiled every time I type "make". This is an error. > > Please help to eliminate this error. > > $ make > gprbuild -j8 --relocate-build-tree -p -s -we libxmlboiler.gpr \ > -XLIBRARY_KIND=dynamic -XOBJ_DIR=./obj-dynamic - > Xsoversion=libxmlboiler.so.0.0.1 -XMODE=Install -XDEBUG_MODE=debug -cargs > - I/usr/local/stow/rdf-ada/include/librdf.dynamic -I/usr/local/stow/rdf- > ada/lib/librdf.dynamic -I/usr/share/ada/adainclude/simple-components - > I/usr/lib/x86_64-linux-gnu/ada/adalib/simple-components > Compile > [Ada] boiler-global.adb > [Ada] boiler-rdf_recursive_descent.adb > [Ada] boiler-rdf_format.adb > [Ada] boiler-rdf_recursive_descent-enums.adb > [Ada] boiler-rdf_format-resource-parser.adb > [Ada] boiler-rdf_format-resource.ads > [Ada] boiler-rdf_recursive_descent-literals.adb > Build Libraries > [gprlib] xmlboiler.lexch > [link library] libxmlboiler.so > > $ gprbuild --version > GPRBUILD GPL 2017 (19940713) (x86_64-pc-linux-gnu) > Copyright (C) 2004-2017, AdaCore > > 2. .ali files are created in both lib/ and in obj-dynamic/ dirs. This > seems redundant. > > My source is available at > https://github.com/vporton/xml-boiler/tree/master/src > > It was configured as follows: > > ./configure --enable-debug --enable-maintainer-mode \ > --with-gprbuild="gprbuild -j8" --prefix=/usr/local/stow/xml-boiler > > Please help to solve these two problems. > -- Victor Porton - http://portonvictor.org