comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: Re: 1. some files unnecessarily recompile. 2. .ali files are created twice
Date: Fri, 01 Dec 2017 00:59:50 +0200
Date: 2017-12-01T00:59:50+02:00	[thread overview]
Message-ID: <ovq2h5$nkk$1@gioia.aioe.org> (raw)
In-Reply-To: ovpqta$5uk$1@gioia.aioe.org

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


      parent reply	other threads:[~2017-11-30 22:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-30 20:49 1. some files unnecessarily recompile. 2. .ali files are created twice Victor Porton
2017-11-30 22:07 ` Simon Wright
2017-11-30 22:59 ` Victor Porton [this message]
replies disabled

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