Giter Club home page Giter Club logo

Comments (6)

senier avatar senier commented on August 23, 2024

@jklmnn @m-stein I think this issue is not in ali2dep, but rather seem the implicit rules for building .adb files to be incomplete. Could you please try the patch below to see whether this fixes you problem:

diff --git a/repos/base/mk/generic.mk b/repos/base/mk/generic.mk
index 7eb302e19..9a74d6703 100644
--- a/repos/base/mk/generic.mk
+++ b/repos/base/mk/generic.mk
@@ -82,7 +82,7 @@ CUSTOM_ADA_FLAGS   ?= --RTS=$(ADA_RTS)
 CUSTOM_ADA_OPT     ?= $(CC_ADA_OPT) -gnatef
 CUSTOM_ADA_INCLUDE ?= -I- $(INCLUDES)
 
-%.ali %.o: %.adb
+%.ali %.o: %.adb %.ads
        $(MSG_COMP)$@
        $(VERBOSE)$(CUSTOM_ADA_CC) $(CUSTOM_ADA_FLAGS) $(CUSTOM_ADA_OPT) $(CUSTOM_ADA_INCLUDE) -c $<
        $(VERBOSE)$(ALI2DEP) $(dir $<) $(ALL_INC_DIR) $*.ali

from ali2dep.

jklmnn avatar jklmnn commented on August 23, 2024

This patch fails to compile with

genode-x86-gnatbind: output file name should have .adb extension

on the first run and succeeds on the second one.

from ali2dep.

senier avatar senier commented on August 23, 2024

Thanks for trying. I just realized that this was a bad idea as main programs of cause have no package spec. I need to find a different solution then.

from ali2dep.

m-stein avatar m-stein commented on August 23, 2024

@senier Thanks that you keep pursuing this issue!

from ali2dep.

jklmnn avatar jklmnn commented on August 23, 2024

I sometimes think the problems occurs because the dependency of adb -> adb is not modeled. If P is a package that instantiates a generic package G then p.ads/p.adb (whichever creates the instance) depends on g.ads (which works) and g.adb. Changing the latter file currently causes an error that it needs to be recompiled (so the dependency is already known but not passed to the build system?).

from ali2dep.

senier avatar senier commented on August 23, 2024

The mechanics seem to fail on much simpler cases than you describe (basically, whenever a .ads gets changed. As you observed, the dependencies are already known - what you see is the output of gnatbind which parses all the .ali files. We need to recreate the same logic inside make. ali2dep already seems to emit the correct dependencies, make just does not pick them up.

from ali2dep.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.