No rule to make target 'a'

5 Ansichten (letzte 30 Tage)
Solyeon Kwon
Solyeon Kwon am 9 Mär. 2021
Beantwortet: Shivani am 13 Mai 2024
I've figure out why my simulink model cause build error.
Error messege tell me that 'No rule to make target 'a'
___
version1.c: In function ‘version1_RRTPlanner_planPath.constprop’:
version1.c:3350:10: warning: ‘x_data’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (!x_data) {
^
version1.c:3334:13: note: ‘x_data’ was declared here
boolean_T x_data;
^~~~~~
version1.c:4288:14: warning: ‘parentId_data’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (qY > parentId_data) {
^
version1.c:4262:19: warning: ‘edgeId_data’ may be used uninitialized in this function [-Wmaybe-uninitialized]
edgeId_data = fmax(edgeId_data, 1.0);
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
make: *** No rule to make target 'autonomouscodegen_dubins.cpp', needed by '../libversion1_linux64.a'. Stop.
___
So what should I do for this problem?

Antworten (1)

Shivani
Shivani am 13 Mai 2024
The error "No rule to make target" is typically thrown by the make/gmake build automation tool because it can't find the instructions on how to create a particular file or target.
Based on the error log shared, it is my understanding that there are several compilation errors in the function named ‘version1_RRTPlanner_planPath.constpro’. I am assuming that this function is in the file ‘autonomouscodegen_dubins.cpp’ and the tool is unable to locate the file due to the compilation errors.
Please refer to the following troubleshooting steps to resolve the compilation errors received:
  • The error being reported indicates that ‘x_data’ is not being initialized previously. From the error message it seems like the variable was only declared and not initialized
  • Similarly, the variables ‘edgeId_data and ‘parentId_data’ are also not being initialized.
If the make error persists after resolving the compilation errors, then kindly refer to the following MATLAB Answer threads as they provide valuable insights to resolving this issue:
I hope this helps!

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by