Skip to content

cant find -lm,how to solve it? #58

@RockyQLuo

Description

@RockyQLuo

make ARCH=riscv64-xs -j48 (--)(remotes/origin/HEAD!)

Building llama7b [riscv64-xs] with AM_HOME {/home/qluo/tools/xs-env/nexus-am}

  • CC main.c
  • CC nonlinear.c

Building lib-klib [riscv64-xs]

Building lib-am [riscv64-xs]

  • AS src/nemu/common/mainargs.S
  • AR -> build/am-riscv64-xs.a

Creating binary image [riscv64-xs]

  • LD -> build/llama7b-riscv64-xs.elf
    riscv64-unknown-linux-gnu-ld: warning: /home/qluo/tools/xs-env/nexus-am/apps/llama7b/build/llama7b-riscv64-xs.elf has a LOAD segment with RWX permissions
    riscv64-unknown-linux-gnu-ld: /home/qluo/tools/xs-env/nexus-am/apps/llama7b/build/riscv64-xs//nonlinear.o: in function rmsnorm': /home/qluo/tools/xs-env/nexus-am/apps/llama7b/nonlinear.c:37:(.text+0x68): undefined reference to sqrtf'
    riscv64-unknown-linux-gnu-ld: /home/qluo/tools/xs-env/nexus-am/apps/llama7b/build/riscv64-xs//nonlinear.o: in function softmax': /home/qluo/tools/xs-env/nexus-am/apps/llama7b/nonlinear.c:87:(.text+0x140): undefined reference to expf'
    make: *** [/home/qluo/tools/xs-env/nexus-am/am/arch/riscv64-xs.mk:37: image] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions