Hi Ken,

Are you enabling the same symbols as in the sim bas or bastest ?

$ cd nuttxspace/nuttx

$ cd boards/

$ git grep "BAS=y"
sim/sim/sim/configs/bas/defconfig:CONFIG_INTERPRETERS_BAS=y
sim/sim/sim/configs/bastest/defconfig:CONFIG_INTERPRETERS_BAS=y

$ cd ..

$ ./tools/configure.sh sim:bastest

$ make -j
Create version.h
LN: platform/board to /home/alan/nuttxspace/apps/platform/dummy
Register: nsh
Register: sh
Register: bas
Register: hello
Register: bastest
CP:  /home/alan/nuttxspace/nuttx/include/nuttx/config.h
CP:  /home/alan/nuttxspace/nuttx/include/nuttx/fs/hostfs.h
LD:  nuttx


$ ./nuttx
login: admin
password: Administrator
User Logged-in!
nsh> ?
help usage:  help [-v] [<cmd>]

    .           cp          exit        mkdir       pwd         truncate
    [           cmp         false       mkfatfs     rm          uname
    ?           dirname     fdinfo      mkrd        rmdir       umount
    alias       dd          free        mount       set         unset
    unalias     df          help        mv          sleep       uptime
    basename    dmesg       hexdump     pidof       source      usleep
    break       echo        kill        poweroff    test        xd
    cat         env         losetup     printf      time
    cd          exec        ls          ps          true

Builtin Apps:
    bas        bastest    hello      nsh        sh
nsh> bastest
Registering romdisk at /dev/ram6
Mounting ROMFS filesystem at target=/mnt/romfs with source=/dev/ram6
nsh> ls /mnt/romfs/
/mnt/romfs:
 test01.bas
 test02.bas
 test03.bas
 test04.bas
 test05.bas
 test06.bas
 test07.bas
 test08.bas
 test09.bas
 test10.bas
 test11.bas
 test12.bas
 test13.bas
 test14.bas
 test15.bas
 test16.bas
 test17.bas
 test18.bas
 test19.bas
 test20.bas
 test21.bas
 test22.bas
 test23.bas
 test24.bas
 test25.bas
 test26.bas
 test27.bas
 test28.bas
 test29.bas
 test30.bas
 test31.bas
 test32.bas
 test33.bas
 test34.bas
 test35.bas
 test36.bas
 test37.bas
 test37.dat
 test38.bas
 test39.bas
 test40.bas
 test41.bas
 test42.bas
 test43.bas
 test44.bas
 test45.bas
 test46.bas
 test47.bas
 test48.bas
 test49.bas
 test50.bas
 test51.bas
 test52.bas
nsh> bas /mnt/romfs/test01.bas
 1
hello
 0.0002
 2e-06
 2e-07

nsh>

BR,

Alan

On 9/18/23, ken.dic...@whidbey.com <ken.dic...@whidbey.com> wrote:
> Ah.  I tried using `make menuconfig` to build the Basic interpreter.
>
>
> Raspian:RasPi4:~/RISCV/NuttX/apps >>> riscv64-linux-gnu-gcc-nm -u
> bin/bas
>                   U atan
>                   U ceil
>                   U cos
>                   U exp
>                   U floor
>                   U fmod
>                   U log
>                   U log10
>                   U log2
>                   U pow
>                   U sin
>                   U sqrt
>                   U tan
>
> Same result with the released `Bas` interpreter, so perhaps a general
> build problem related to aarch64/arm64 linux build environment?
>
> I have an old Intel/x86 box in the closet.  I will try to resurect it
> and see if I can build on x86 with the same result.
>
> FYI,
> -KenD
>

Reply via email to