Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*** No rule to make target '/build/MakefileWorker.mk'. Stop. #19

Open
JasonDChistensen opened this issue Sep 9, 2024 · 0 comments
Open

Comments

@JasonDChistensen
Copy link

I was getting a compilation error when following the instructions.

make -i -C code
make[1]: Entering directory '/usr/src/tddec-code/code'
make -f MakefileCppUTest.mk
make[2]: Entering directory '/usr/src/tddec-code/code'
MakefileCppUTest.mk:59: /build/MakefileWorker.mk: No such file or directory
make[2]: *** No rule to make target '/build/MakefileWorker.mk'.  Stop.
make[2]: Leaving directory '/usr/src/tddec-code/code'
make[1]: [Makefile:2: all] Error 2 (ignored)
make -f MakefileUnity.mk 
make[2]: Entering directory '/usr/src/tddec-code/code'
Running BookCode_Unity_tests
Unity test run 1 of 1
..........!............................................................
-----------------------
71 Tests 0 Failures 1 Ignored
OK
make[2]: Leaving directory '/usr/src/tddec-code/code'
make[1]: Leaving directory '/usr/src/tddec-code/code'
make -i -C code-t0
make[1]: Entering directory '/usr/src/tddec-code/code-t0'
Makefile:32: /build/MakefileWorker.mk: No such file or directory
make[1]: *** No rule to make target '/build/MakefileWorker.mk'.  Stop.
make[1]: Leaving directory '/usr/src/tddec-code/code-t0'
make: *** [Makefile:5: all] Error 2

The issue is due to the environment variable CPPUTEST_HOME not being set in the container.

The solution is to set CPPUTEST_HOME in the command to run the contaioner

docker run -it -v $MOUNT_DIR -w $WORKING_DIR -e CPPUTEST_HOME=$WORKING_DIR/cpputest gcc:7 make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant