make: *** [Makefile:12: target] Error 1 — a recipe command failed
A command inside a Makefile rule exited with a non-zero status, so make stopped.
make: *** Error 1Makefile Error 1make recipe for target failedmake: *** [all] Error 2 Meaning
"Error 1" is not the problem itself; it only says the command above it failed. The real cause is the compiler or tool message printed just before that line.
Common causes
- Compiler error in the preceding output
- Command not found or wrong path
- Missing file or permission problem
- Parallel build hiding the first error
⚡ Quick fix
- Scroll up to the first
error:line - Re-run
makewithout-j(ormake -j1 V=1) to see the failing command - Run the failing command manually
Detailed fix by platform
Make
make -j1 V=1 2>&1 | tee build.logthen search the log for "error"
How to diagnose
- First error — What is above?
- Command — Run manually?
- Parallel — -j hiding order?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- C compiler cannot create executables configure: error: C compiler cannot create executables / no acceptable C compiler found in $PATH
- Could not find a package configuration file CMake Error: Could not find a package configuration file provided by "Foo" (requested version 1.2)
- Dependency not found meson.build: ERROR: Dependency "x" not found, tried pkgconfig and cmake
Most viewed in C/C++
- Bus error C/C++: Bus error (core dumped) — SIGBUS from misaligned access or a bad memory-mapped file
- AddressSanitizer: heap-buffer-overflow C/C++: ==ERROR: AddressSanitizer: heap-buffer-overflow on address — READ/WRITE of size N
- AddressSanitizer: heap-use-after-free C/C++: ==ERROR: AddressSanitizer: heap-use-after-free on address — memory used after delete/free
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 2 Dec 2026