IBM Support

IBM Rhapsody build process fails with: "NMAKE : fatal error U1052"

Troubleshooting


Problem

IBM Engineering Systems Design Rhapsody building generated C++ or C code fails with: NMAKE : fatal error U1052

Symptom

Error NMAKE : fatal error U1052 is reported when building code in Microsoft® Visual Studio environment.

Cause

The path to the makefile or source code files is incorrect.

Environment

IBM Engineering Systems Design Rhapsody; Microsoft Windows; Microsoft Visual Studio.

Diagnosing The Problem

The property CPP_CG::MSVC::InvokeMake calls msvcmake.bat with $makefile as first parameter.
The current path is the folder of the generated source code.
In msvcmake.bat add some echo %cd% commands to find out in which line the current folder is overwritten.

Resolving The Problem

There are 2 options:
  1. You can fix the batch files, like VsVcvarsall.bat and check all nested called files.
  2. Save the old path in msvcmake.bat and then reset it.

set OLDPATH=%cd%

//call VcVarsall.bat

cd %OLDPATH%

// nmake ...

Document Location

Worldwide

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"ARM Category":[{"code":"a8m50000000CjTuAAK","label":"Rhapsody->Code->Generation"}],"ARM Case Number":"TS003908761","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Version(s)","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

ibm16245370