Software⏱️ 2 min read📅 2026-06-15

How to Fix: Can't use Makefile on a mac. Whether tab or 4 spaces the error is: " *** missing separator. Stop."

Makefile issue on M1 Mac with GNU Make 3.81

Quick Answer: Check the indentation in your Makefile, as GNU Make requires a specific number of spaces for each line.

The error message '*** missing separator. Stop.' is encountered when using Makefiles on a Mac, regardless of the text editor used (e.g., TextEdit, VSCode, IntelliJ). This issue affects users who have copied and pasted pre-written Makefile content from online tutorials or sources.

This error can be frustrating for developers, as it prevents them from successfully compiling their projects. In this guide, we will walk you through the primary fix method to resolve this issue.

🛑 Root Causes of the Error

  • The root cause of this error is due to the way Makefiles are interpreted on Macs with M1 processors. The GNU Make version used by default on these systems (3.81) has limitations when it comes to handling tab characters, which can lead to the missing separator error.
  • Another possible reason for this issue could be related to the specific text editor being used. Some editors may not properly handle the newline character or tab settings, resulting in incorrect Makefile syntax.

🚀 How to Resolve This Issue

Fixing the Issue with Tab Characters

  1. Step 1: Open your terminal and navigate to the directory containing your Makefile. Run the command `echo $' '

Alternative Advanced Fix

    💡 Conclusion

    Did this fix your problem?

    If not, try searching for specific error codes.

    🔍 Search Error Database

    ❓ Frequently Asked Questions