mbed import mbed-os-example-blinky
cd mbed-os-example-blinky/mbed-os
git checkout master
cd ..
mbed export -m CY8CPROTO_062_4343W -i eclipse_gcc_arm
make
make
results in the output:
g++ .././mbed-os/platform/cxxsupport/mstd_mutex.cpp -o .././mbed-os/platform/cxxsupport/mstd_mutex
.././mbed-os/platform/cxxsupport/mstd_mutex.cpp:18:10: fatal error: mstd_mutex: No such file or directory
I believe the issue is the result of the following:
On the first run of make, dependency (.d) files are created, listing mstd_mutex as a dependency of mstd_mutex.cpp
On the second run of make, the dependency files are included
Make is unable to match mstd_mutex to a rule, and so
Make uses a default rule to attempt to compile mstd_mutex as an object file
I believe that a possible solution is to add the line %: ; to the end of the Makefile template. This would provide a default do-nothing rule for files that do not match other rules (such as mstd_mutex) and should not affect other targets.
Description
Running the following sequence of commands:
results in the output:
I believe the issue is the result of the following:
I believe that a possible solution is to add the line
%: ;
to the end of the Makefile template. This would provide a default do-nothing rule for files that do not match other rules (such as mstd_mutex) and should not affect other targets.Issue request type