Arm gcc when building freedom-u-sdk


#1

Hi, I’m trying to compile the freedom-u-sdk from the git repo, and I’m having trouble. I’m getting errors with arm-linux-gnueabihf-gcc, but I’ve double checked and i definitely have the riscv64 architecture selected. Is there a reason it’s using ARM?

When I run “make” I get these error messages:
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-m64’
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-mno-float’
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-mno-save-restore’

Thanks!


(Bruce Hoult) #2

What kind of machine are you building it on?

And, exactly what commands have you run?


#3

I’m trying to build it on my desktop, running arch linux on an x86 architecture. I did a pull from the repo and ran make.


(Tommy Murphy) #4

Why are you using an ARM toolchain to build RISC-V stuff?!


(Bruce Hoult) #5

I believe that was his question!

It boggles the mind.