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

zmmul extension issue #59

Closed
UnaiGalicia opened this issue Jul 24, 2023 · 4 comments
Closed

zmmul extension issue #59

UnaiGalicia opened this issue Jul 24, 2023 · 4 comments

Comments

@UnaiGalicia
Copy link

UnaiGalicia commented Jul 24, 2023

Hi, I am getting the following error when building the "demo" C program using lowrisc's toolchain (lowrisc-toolchain-rv32imcb-20230427-1 version):

/home/unai/…/lowrisc-toolchain-rv32imcb-20230427-1/bin/../lib/gcc/riscv32-unknown-elf/10.2.0/../../../../riscv32-unknown-elf/bin/ld: -march=rv32i2p0_m2p0_c2p0_zmmul1p0: Invalid or unknown z ISA extension: 'zmmul'

/home/unai/…/lowrisc-toolchain-rv32imcb-20230427-1/bin/../lib/gcc/riscv32-unknown-elf/10.2.0/../../../../riscv32-unknown-elf/bin/ld: failed to merge target specific data of file ../../common/CMakeFiles/common.dir/demo_system.c.o

However, this problem doesn't show up when building the same program with the official RISC-V GCC toolchain in my path. I assume that this is intended to work, as the program that I am trying to compile is the demo program (hello_world).

Thank you in advance!

@nbdd0121
Copy link
Contributor

I think our GCC version (released in 2020) is older than the zmmul extension. We might want to consider upgrading it? @luismarques

@marnovandermaas
Copy link
Contributor

Can you tell us what commands you are running when getting this error?
Are you following the instructions here:
https://github.com/lowRISC/ibex-demo-system#building-software

@marnovandermaas
Copy link
Contributor

I just tested those commands with lowrisc-toolchain-rv32imcb-20230427-1 and everything is fine, so please do let us know how to replicate this error.

@UnaiGalicia
Copy link
Author

You are right, I reinstalled the toolchain and rerun the Python script for the dependencies and everything went fine too. I might have changed something that I wasn't supposed to. Sorry for the inconvenience...

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

3 participants