-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
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
ChrisOKay
Metadata
Metadata
Assignees
Labels
No labels