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

Problem in src/Makefile #14

Closed
hyf6661669 opened this issue Feb 27, 2019 · 1 comment
Closed

Problem in src/Makefile #14

hyf6661669 opened this issue Feb 27, 2019 · 1 comment

Comments

@hyf6661669
Copy link

hyf6661669 commented Feb 27, 2019

In src/Makefile, you should set ASFLAGS = -march=rv32i. For example, if I add some codes (the related operations is not included in rv32i) like this in main.c:
image

Then the riscv-gcc will try to use the standard library function, without ASFLAGS = -march=rv32i, some ERRORs occurs:
image

With ASFLAGS = -march=rv32i, the compilation can succeed, and we can see the desired asm codes in darksocv.lst like this:
image

samsoniuk pushed a commit that referenced this issue Feb 28, 2019
…hyf!).

Changes to be committed:
	modified:   src/Makefile
	modified:   src/boot.o
	modified:   src/darksocv.o
	modified:   src/hello.o
	modified:   src/io.o
	modified:   src/main.o
	modified:   src/stdio.o
@samsoniuk
Copy link
Member

Thank you for pointing the problem HYF! The Makefile is fixed!

dreaqdp pushed a commit to joanvyc/darkriscv that referenced this issue May 24, 2021
…le (tks hyf!).

Changes to be committed:
	modified:   src/Makefile
	modified:   src/boot.o
	modified:   src/darksocv.o
	modified:   src/hello.o
	modified:   src/io.o
	modified:   src/main.o
	modified:   src/stdio.o
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