No rule to make target 'a'

조회 수: 4 (최근 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에서 Manual Performance Optimization에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by