IBM Support

Executing a Rational Rhapsody in Ada model using GNAT 2010 Compiler in Animation mode results in the error "gnatmake: *** link failed"

Troubleshooting


Problem

Attempts to execute Dishwasher model in Animation mode using IBM Rational Rhapsody for ADA configured with GNAT 2010 compiler results in the error gnatmake: *** link failed.

Symptom

The complete error is as follows:

"Building ------------  DefaultComponent.exe   ------------
Executing: "C:\Users\IBM_ADMIN\IBM\Rational\Rhapsody\8.0\Share\etc\GnatMake.bat" DefaultComponent.bat build
Invoking MakeFile
Building dishwasher
gnatbind -aO./ -aOC:\Users\IBM_ADMIN\IBM\Rational\Rhapsody\8.0\Share\LangAda95\src\RiA_Framework\GNAT_Win32 -aOC:\Users\IBM_ADMIN\IBM\Rational\Rhapsody\8.0\Share\LangAda95\aom_new_95 -I- -x maindefaultcomponent.ali
gnatlink -g -o DefaultComponent.exe -aOC:\Users\IBM_ADMIN\IBM\Rational\Rhapsody\8.0\Share\LangC\lib C:\Users\IBM_ADMIN\IBM\Rational\Rhapsody\8.0\Share\LangC\lib\AdaWinaomanim.lib C:\Users\IBM_ADMIN\IBM\Rational\Rhapsody\8.0\Share\LangC\lib\AdaWinoxfinst.lib

.

.

.
gnatlink: cannot call C:/Gnat\bin\gcc.exe
gnatmake: *** link failed.
Finished Building dishwasher

Build Done"

Cause

This error is caused due to a faulty make.exe.

Resolving The Problem

To resolve the problem, follow the steps below:

  1. Navigate to the URL to fetch the correct make file:
    http://gnuwin32.sourceforge.net/packages/make.htm

  2. Download and install the Setup program and the dependencies zip file.

  3. Copy the make.exe and library files into the bin folder of GNAT 2010 Installation directory.

  4. Rebuild the Frame work.

    Note: It is recommended to use the licensed versions of GNAT compiler, as free compilers will not support few features. They are meant only for education purpose, not for real time development.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21625475