Hi,

What kind of RISC-V toolchain are you using? I recall that the RISC-V
toolchain provided by Ubuntu is built without libm support. Also I noticed
that you have "CFLAGS += -lm " in Make.defs and with CONFIG_LIBM=y that
should be removed I think as you try to rebuild math from NuttX sources.

Please try to remove  "CFLAGS += -lm " and feedback if that helps.

Best regards,
Petro

нд, 17 вер. 2023 р. о 19:34 <ken.dic...@whidbey.com> пише:

> Please forgive the noob question.
>
> I am porting a Scheme interpreter to riscv64 NuttX as
> apps/interpreters/umb-scheme/ but the binary fails to link in libm
> functions.
>
> I could use some help in this.
>
> Specifically, building on Raspberry Pi 4 Raspian 64 bit:
>
> Raspian:RasPi4:~/RISCV/NuttX/apps/bin >>> riscv64-linux-gnu-gcc-nm -u
> scheme
>                   U acos
>                   U asin
>                   U atan
>                   U atan2
>                   U ceil
>                   U cos
>                   U exp
>                   U floor
>                   U log
>                   U pow
>                   U sin
>                   U sqrt
>                   U tan
>
> I am following the Pine64 Start64 recipe, which does yield a bootable
> NuttX on VisionFive 2 SoC:
>
>
>
> https://nuttx.apache.org/docs/latest/platforms/risc-v/jh7110/boards/star64/index.html
>
> My nuttx/.config file contains:
>
> CONFIG_LIBM=y
> CONFIG_ARCH_FLOAT_H=y
>
> The interpreter local make/config files are attached.  They should be
> unsurprising.
>
> Perhaps some kind person can help me out with the proper build flags.
>
> Thanks much!
> -KenD     [Ken (dot) Dickey (at) Whidbey (dot) COM]
>
>
>
>
>
>

Reply via email to