Linux toolchain configure

I’m trying to setup the toolchain for compiling Linux and when I execute

riscv-gnu-toolchain $ ./configure --prefix=/opt/riscv
It complains:
configure: error: Unknown arch

According to the github README, this should invoke the default settings. Am I doing something wrong?

1 Like

Just performed a git pull on the master branch and it resolved the configure.

I got the Linux toolchain built, but when I try to build the Linux kernel I get the following error:

riscv64-unknown-linux-gnu-gcc: error: unrecognized command line option '-m64’
riscv64-unknown-linux-gnu-gcc: error: unrecognized command line option '-m64’
riscv64-unknown-linux-gnu-gcc: error: unrecognized command line option ‘-mno-float’; did you mean ‘-mno-plt’?

This is now fixed as of commit 23bf08e of riscv-linux. The compiler flags have changed in preparation for gcc upstreaming.

1 Like

Thanks, Linux compiles fine now.