Hello all,
I'm trying to create a recipe to build the ADA library as a package archive [1]. Building the library fails with the following error message:
Library ada COMPILE a-except_c.o COMPILE gnat_except.o COMPILE s-secsta.o fatal error, run-time library not installed correctly cannot locate file system.ads compilation abandoned /home/pirmin/GapFruit/genode/repos/base/mk/generic.mk:83: recipe for target 's-secsta.o' failed make[6]: *** [s-secsta.o] Error 1 var/libdeps:42: recipe for target 'ada.lib' failed make[5]: *** [ada.lib] Error 2
system.ads is copied in to the source directory of the depot.
An other point that doesn't look nice currently is the way used to obtain the location of the port sources [2]. Is there a way to get rid of the "../ports/" part?
[1] https://github.com/trimpim/genode/tree/adalib_recipe [2] https://github.com/trimpim/genode/blob/0d40aa7303aca743dc6270f33ecd3e2a37364...
best regards, Pirmin
Hi Pirmin,
El 01/06/18 a las 16:11, Pirmin Duss escribió:
An other point that doesn't look nice currently is the way used to obtain the location of the port sources [2]. Is there a way to get rid of the "../ports/" part?
There exists the select_from_ports function that is used widely. Examples:
ARORA_PORT_DIR := $(call select_from_ports,arora)
LIBPNG_DIR := $(call select_from_ports,libpng)/src/lib/libpng
Martin
El 01/06/18 a las 16:11, Pirmin Duss escribió:
An other point that doesn't look nice currently is the way used to obtain the location of the port sources [2]. Is there a way to get rid of the "../ports/" part?
Btw. there are some good examples in the ports/recipes directory like vim [1].
Martin
[1] ports/recipes/src/vim/content.mk