compiling fails with *** No rule to make target

Skip to first unread message

Feb 22, 2023, 5:13:10 AM2/22/23
to hoomd-users
Hello I have compiled hoomd sucessfully several times already but with the latest version I get this error.

[ 71%] Built target test_all
make[2]: *** No rule to make target '/home/martin/hoomd_blue_single/hoomd-blue/hoomd/', needed by 'hoomd/'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:795: hoomd/CMakeFiles/copy_hoomd.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

What could be the problem?

Greetings Martin 

Joshua Anderson

Feb 22, 2023, 6:56:09 AM2/22/23

The problem could be that you are performing an in-source build. Use an out-of-source build to resolve it.
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan

You received this message because you are subscribed to the Google Groups "hoomd-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Feb 23, 2023, 2:25:31 AM2/23/23
to hoomd-users
Yes that was the problem. I somehow mixed up the build directory. I deleted everything and did it again. This time truly out of source and it worked. Thank you :)
Reply all
Reply to author
0 new messages