Technote (troubleshooting)
Problem(Abstract)
Attempts to build a project using a generated make file causes dependency errors resulting in compilation failure in IBM Rational Developer for Power Systems Software version 8.0.
Symptom
When generating a make file and building a project using it (it is called "Managed project build"), even if not making any modification on the generated make file, the compile will be failed with following errors.
"makefile", line xx: make: 1254-055 Dependency line needs colon or double colon operator
Steps to reproduce:
- Create a new project with "Managed build project" option
- Create C/C++ source codes to be compiled.
- Right click project > [Build project]
- The makefile will be generated
- The project is automatically compiled using the make file generated in step 4.
- The build will fail with "1254-055" error
Cause
This is current limitation for the "Managed project build".
Only GNU make is supported for it but default AIX make is not.
Resolving the problem
An RFE (Request For Enhancement) 11451 is registered for being able to use the default AIX make on managed build.
WORKAROUND:
You can set the make command used for the managed build.
By setting it to GNU make, the project will be compiled without errors.
Steps to set the make command
- Right click the project > [Property] > [C/C++ Build]
- Uncheck "Use default build command"
- Change the build command to GNU
For example /usr/bin/gmake
GNU make for AIX can be downloaded from "AIX Toolbox for Linux Applications"