-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[BUG] Make fails with "Makefile:135: *** missing separator. Stop." #23951
Comments
|
The conditional wrapped around Line 134 in 4a54f84
If I change the conditional to:
... then make doesn't choke on the @echo line My version of CC is:
If I use a line like
I get:
...and the compilation works. The conditional-protected line #134 is poorly formatted for a Makefile, because the command isn't preceded by the required tab character. If you replace the spaces with a tab character, it fails because the command is early in the Makefile parsing and comes after no Makefile targets. One workaround would be to update the compiler to avoid this broken exception code. One workaround would be to change the character before the A better workaround would be to avoid calling the parent shell's echo command use Make's built-in warning mechanism with a line like:
I'll rig up a pull request: #23957 |
This line was missing a tab before it call a shell command and causes this error message: ``` Makefile:135: *** missing separator. Stop. ``` It does not cause a problem for folks with CC_VER above 40900 because of the enclosing conditional. See MarlinFirmware#23951 for more details.
Closing since you’ve opened a PR. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
A "Makefile:135: *** missing separator. Stop." error is cause by this ill-formed Makefile:
Did you test the latest
bugfix-2.0.x
code?Yes, and the problem still exists.
Bug Description
On branch bugfix-2.0.x a plan make fails:
Line 135 is this:
Marlin/Marlin/Makefile
Line 135 in 4a54f84
If you replace the two spaces with a tab, you get a different error:
If you comment it out, it works.
If you replace it with $(warning .... ) it works
Bug Timeline
Not sure
Expected behavior
I expected the makefile to compile.
Actual behavior
The make process failed with an error
Steps to Reproduce
% git checkout bugfix-2.0.x
Already on 'bugfix-2.0.x'
Your branch is up to date with 'origin/bugfix-2.0.x'.
% git pull
X11 forwarding request failed on channel 0
Already up to date.
% pwd
/Users/drf/Work/Marlin/Marlin
% make
Makefile:135: *** missing separator. Stop.
%
Version of Marlin Firmware
bugfix-2.0.x
Printer model
ramps 1.4
Electronics
ramps 1.4
Add-ons
--
Bed Leveling
No response
Your Slicer
No response
Host Software
No response
Additional information & file uploads
I'm on MacOS Big Sur 11.6.5 using /usr/bin/make:
Again, replacing the
@echo ...
line with$(warning ...)
solves the problem.The text was updated successfully, but these errors were encountered: