No rule to make target 'a'

5 次查看(过去 30 天)
Solyeon Kwon
Solyeon Kwon 2021-3-9
回答: Shivani 2024-5-13
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?

回答(1 个)

Shivani
Shivani 2024-5-13
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!

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by