Closed yf13 closed 10 months ago
This is a know issue. Ubuntu release of RISC-V GCC is compiled without math libs. We can do nothing with that, but you can enable NuttX native math libraries support via CONFIG_ LIBM=y
and still use RISC-V GCC provided by Ubuntu apt
or pick another more mature toolchain
Closing this. Please re-open if needed.
@pkarashchenko thanks! I wasn't able to find an explanation in historical issues or documents, thus raised it here. Just confirmed that CONFIG_LIBM works well.
Yeah, it is not in docs since we are not managing tools created externally, but there was some discussion in one of the PRs
When buildling
rv-virt:nsh64
with the stock toolchain installed viasudo apt install gcc-riscv64-unknown-elf
on Ubuntu 22.04, I got the following error:The toolchain has the following version info: