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

how to complie the the test 'mm' or 'mt-matmul'? #13

Open
Tianhang-Cheng opened this issue Jun 20, 2021 · 0 comments
Open

how to complie the the test 'mm' or 'mt-matmul'? #13

Tianhang-Cheng opened this issue Jun 20, 2021 · 0 comments

Comments

@Tianhang-Cheng
Copy link

I would like to complie the test 'mm' or 'mat-mul' with rv32im (I build a sodor that can support rv32im), but I don't know how to modify the makefile. I can only compile them in riscv64-unknown-elf. If I use riscv32-unknown-elf in makefile, there will be 'undefined reference to `__sync_fetch_and_add_4' error.

really thanks!


/opt/riscv32/lib/gcc/riscv32-unknown-elf/9.2.0/../../../../riscv32-unknown-elf/bin/ld: /tmp/ccysEb0N.o: in function .L0 ': mm_main.c:(.text+0x22): **undefined reference to __sync_fetch_and_add_4'**
collect2: error: ld returned 1 exit status
make: *** [Makefile:55:mm.riscv] error 1

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

1 participant