Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    D1 CoreMark运行时报错

    MR Series
    2
    6
    2451
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      codwine LV 3 last edited by

      1. 目标: CoreMark评分测试
      2. 问题: 修改toolchain,编译pass,adb push到/bin目录,运行报错,symbol __libc_start_main version GLIBC_2.29 not defined in file libc.so.6 with link time reference
      • 源码下载
        https://github.com/riscv-boom/riscv-coremark
      • 编译
        ./build-coremark.sh # 生成64位 coremark.riscv
      • 推送
        adb push coremark.riscv /mnt/app
      • 运行
        /mnt/app/coremark.riscv
      BedRock 1 Reply Last reply Reply Quote Share 0
      • BedRock
        BedRock LV 6 @codwine last edited by

        @codwine 编译加上 -static 或者使用 tina 中的工具链进行编译

        C 1 Reply Last reply Reply Quote Share 0
        • C
          codwine LV 3 @BedRock last edited by

          @bedrock

          1. toolchain用的就是tina下载的riscv64-linux-x86_64-20210329
          2. 加上-static可以工作了
            感谢!
          BedRock 1 Reply Last reply Reply Quote Share 0
          • BedRock
            BedRock LV 6 @codwine last edited by

            @codwine tina SDK工具链是riscv64-glibc-gcc-thead_20200702 你下载的新了
            推荐你换成旧的 估计测分数会高一点

            C 1 Reply Last reply Reply Quote Share 0
            • C
              codwine LV 3 @BedRock last edited by

              @bedrock 建议使用哪一个版本
              e6e4226e-0d50-4ffc-a307-a94eb06ac2b5-image.png

              BedRock 1 Reply Last reply Reply Quote Share 0
              • BedRock
                BedRock LV 6 @codwine last edited by

                @codwine 应该是 1.8.5 你看看这个下载下来是不是 riscv64-glibc-gcc-thead_20200702
                gcc 版本为 gcc version 8.1.0 (C-SKY RISCV Tools V1.8.4 B20200702)

                1 Reply Last reply Reply Quote Share 0
                • 1 / 1
                • First post
                  Last post

                Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                行为准则 | 用户协议 | 隐私权政策