Menu

#2 Building the examples on Open Suse

(not used)
closed
nobody
None
1
2013-04-20
2013-04-11
No

I get compiler errors which are all like the following ...
house_management-lamp-test_suite.adb:58:10: "Assert" is not visible
house_management-lamp-test_suite.adb:58:10: non-visible declaration at aunit-assertions.ads:60
house_management-lamp-test_suite.adb:58:10: non-visible declaration at aunit-assertions.ads:45
house_management-lamp-test_suite.adb:58:10: non-visible declaration at aunit-assertions.ads:36

Making AUnit.Assertions visible using "with" and "use" doesn't fix the problem.

I'm using GNAT GPL 2011 with AUnit installed with the compiler.

Discussion

  • Simon Wright

    Simon Wright - 2013-04-11

    Hi Alex!

    I believe the problem is that AdaCore changed the AUnit API between GNAT GPL 2011 and 2012, from v2 (?) to v3. It may also be that they have a different API at the v3 from libre.adacore.com and the v3 at their public SVN repo.

    The change I made at commit 956d5c8c489e was, from the look of it, to change from the SVN version to the libre.adacore.com version, and I'm pretty sure it was because it had become apparent that AdaCore were no longer maintaining the SVN repo.

    I think the way ahead may be to install the 2012 AUnit in your 2011 installation, if that's acceptable.

    --S

     
  • Simon Wright

    Simon Wright - 2013-04-11

    (I stupidly deleted the daft post I made about Debian's AUnit being antiquated)

    In the SVN version of AUnit, the first parameter of Assert was a Test_Case; not so in the libre.adacore.com version.

    I failed to edit this particular test (and who knows how many others) to take account of this.

    Setting to work on it immediately. See [bugs:#76].

     

    Related

    Bugs: #76


    Last edit: Simon Wright 2013-04-11
  • Simon Wright

    Simon Wright - 2013-04-13
    • status: open --> pending
     
  • Alex Proudfoot

    Alex Proudfoot - 2013-04-13

    Just downloaded and built today's release. Something odd happened to the build in the test directory. Log file attached ...

     
    • Simon Wright

      Simon Wright - 2013-04-13

      Drat.

      The quick fix is to get ColdFrame_Development.uml from models/ in Hg and put it in models/ in your tree.

      The proper fix would be to copy the relevant domains into ColdFrame_Tests.uml, but ArgoUML doesn't support this (AFAIK).

      See [bugs:#77].

       

      Related

      Bugs: #77

  • Alex Proudfoot

    Alex Proudfoot - 2013-04-14

    The build works for me after including Coldframe_Development.uml and Regressions.uml. Log file attached ...

     
  • Simon Wright

    Simon Wright - 2013-04-20
    • status: pending --> closed
     

Log in to post a comment.