The project I am working with requires a GCC version 7.5.0 or older in order to compile. I had originally tried to cross compile the project using Crosstool-NG and setting the compiler version to 7.5.0 but got stuck when the project required numpy libraries to be installed for my RISC-V compiled python. Basically I can not use pip to install numpy for this RISC-V python version because I am running an x86 CPU and python is cross compiled for RISC-V.
So this issue led me to try native compilation on a Hifive Unleashed U540 using the RISC-V Fedora Linux. I have the package manager and everything works great on the board, but the on board GCC is version 10.
Does anyone know if it is possible to downgrade this to version 7.5.0 or earlier? I know it exists but I cannot seem to get it working on the system.
I found a gcc-7.3.1-5.0.riscv64.fc28.riscv64.rpm online and tried to install it but could not get it working.
I also tried a native install of Crosstool-NG but it ran for hours and crashed. Same story for the risv-gnu-toolchain
Any help is greatly appreciated.