comp.lang.ada
 help / color / mirror / Atom feed
* 1. some files unnecessarily recompile. 2. .ali files are created twice
@ 2017-11-30 20:49 Victor Porton
  2017-11-30 22:07 ` Simon Wright
  2017-11-30 22:59 ` Victor Porton
  0 siblings, 2 replies; 3+ messages in thread
From: Victor Porton @ 2017-11-30 20:49 UTC (permalink / raw)


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

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

* Re: 1. some files unnecessarily recompile. 2. .ali files are created twice
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Wright @ 2017-11-30 22:07 UTC (permalink / raw)


Victor Porton <porton@narod.ru> writes:

> 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.

Try running gprbuild with the "-vm" or "-vh" flag, which should tell you
the reasons for the recompilations.

> 2. .ali files are created in both lib/ and in obj-dynamic/ dirs. This
> seems redundant.

They are built in the object directory and copied to the library
directory. That is the way it is.

> 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

It seems to need some automake/autoconf dance which didn't work
immediately, and in any case

   Compile
      [Ada]          boiler-rdf_recursive_descent.adb
   boiler-rdf_recursive_descent.adb:18:06: file "rdf.ads" not found

but I won't pursue that.

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

* Re: 1. some files unnecessarily recompile. 2. .ali files are created twice
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Victor Porton @ 2017-11-30 22:59 UTC (permalink / raw)


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


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

end of thread, other threads:[~2017-11-30 22:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox