Troubleshooting
Problem
When building a model in Rational Rose RealTime for the TORNADO2T.ppc-cygnus-2.7.2-960126 target configuration, compiler errors occur, similar to the following: OutputPath: C:/roseRTtemp/HelloWorldComponent Running: make RTclean make: Error -- Don't know how to make RTclean Warning: make RTclean unsuccessful. Makefile may need regeneration. Running: make -f "D:\PROGRA~1\RATIONAL\ROSERE~1/codegen/bootstrap/Gnu_make.mk" RTS_HOME="D:\PROGRA~1\RATIONAL\ROSERE~1/C++/TargetRTS" MODEL="C:/roseRTtemp/HelloWorldwed.rtmdl" COMPONENT="Component View::HelloWorldComponent" RTmakefiles make: D:\PROGRA~1\RATIONAL\ROSERE~1/codegen/bootstrap/Gnu_make.mk: line 36: Error -- Include file /codegen/rtgen.mk, not found Error: Makefile generation failed Build failed.
Resolving The Problem
NOTE: This Solution applies to both Windows and Unix systems, however, this Solution uses the Windows operating system throughout the examples.
To resolve the "Include file /codegen/rtgen.mk, not found" error, try the following:
1. Ensure that you have set up the following Tornado environment variables, as described in Technote #1123701 - "Rose RealTime, Tornado II and simpc integration on Windows NT 4.0":
Tornado Environment Variables
There is a file %WIND_BASE%\host\%WIND_HOST_TYPE%\bin\torVars.bat that shows you how to set up your environment for Tornado2.
- Set WIND_BASE to your Tornado installation, i.e. C:\Tornado
- Set WIND_HOST_TYPE to x86-win32
- Set GCC_EXEC_PREFIX to %WIND_BASE%\host\%WIND_HOST_TYPE%\lib\gcc-lib\
NOTE: The trailing \ is important
- Add the following to your path. %WIND_BASE%\host\%WIND_HOST_TYPE%\bin;
- To test your path is set up correctly, open a MSDOS command prompt and type "make -v". You should see the following,
GNU make version 3.74 ...
2. Ensure that Rose RealTime is picking up the correct version of make/gmake by doing the following:
A. In C:\Tornado\host\x86-win32\bin, copy the "make.exe" file and paste into the same directory, C:\Tornado\host\x86-win32\bin, but rename it to "gmake.exe" When building a component, specify "gmake" instead of "make" in the CompilationMakeType and CodeGenMakeType fields of your components specification. NOTE: This option is recommended.
OR
B. In your PATH environment variable, move the "C:\Tornado\host\x86-win32\bin" path before any other make paths, e.g. "C:\MKS\bin". This will ensure that the Tornado make is picked up instead of any other make utility, e.g. the MKS make. NOTE: Ensure that you restart Rose RealTime so that it detects the changes in the PATH environment variable.
Related Information
Historical Number
130051225
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21129392