Skip to content
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

I got an error when I used make command in a certain folder in asm #10

Closed
TroyMitchell911 opened this issue Apr 5, 2024 · 3 comments
Closed
Assignees

Comments

@TroyMitchell911
Copy link

System environment:

Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy

GNU Make

GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Error

Makefile:1: *** missing separator. Stop.

Troubleshooting process

I found that the Makefile files in all folders under asm do not use standard universal syntax, like this:
../build.mk

There may be some versions that can support such writing, but there is no doubt that it is not supported on my system. I tried updating make, but it did not work. The general and correct writing should be as follows:
include ../build.mk

After making the changes it started working without a doubt

Ending

Correspondingly, I have sent a PR, I believe it will work well on any make version

@TroyMitchell911
Copy link
Author

#9

@unicornx
Copy link
Collaborator

unicornx commented Apr 6, 2024

Makefile is just a symbollink to the "../build.mk". It should not be the rootcause of your build problem.

As I know, people met this "Makefile:1: *** missing separator. Stop." because they are working on WSL or copy repo from Windows to Linux. See https://gitee.com/unicornx/riscv-operating-system-mooc/issues/I4OA67.

@unicornx
Copy link
Collaborator

unicornx commented Apr 6, 2024

Assigned back to you. Please double check and close this issue if no more questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants