Navigation

    全志在线开发者论坛

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

    能否提供D1-H上的可用GCC工具链

    D1系列-RISC-V
    6
    10
    350
    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.
    • Z
      zhongcy LV 2 last edited by zhongcy

      官方文档中提供的GCC工具链(https://d1.docs.aw-ol.com/study/study_6helloword/#_2 ),编译得到的程序在D1-H报错:

      symbol __libc_start_main version GLIBC_2.29 not defined in file libc.so.6 with link time reference
      

      从https://open.allwinnertech.com 下载的SDK编译程序倒是可以运行,但是步骤繁琐,希望官方能更新一下文档中的GCC工具链。

      1 Reply Last reply Reply Quote Share 0
      • xiaowenge
        DOT小文哥 LV 8 last edited by

        可以直接去平头哥官网下,经常更新,各个版本的都有:
        https://occ.t-head.cn/community/download?id=3913221581316624384

        Z 1 Reply Last reply Reply Quote Share 0
        • W
          whycan晕哥 LV 9 last edited by

          用 SDK 里面那个编译文件系统的 gcc 编译你的app,否则请在 gcc 的命令后面加 -static 命令行对c库进行静态链接。

          Z 1 Reply Last reply Reply Quote Share 0
          • Z
            zhongcy LV 2 @xiaowenge last edited by

            @xiaowenge 这个页面下载的编译运行也会出现我所说的问题

            1 Reply Last reply Reply Quote Share 0
            • Z
              zhongcy LV 2 @whycan last edited by

              @whycan 加上-staic可以了。另外,全志自己有对编译器做优化吗?是不是直接用的平头哥提供的GCC,然后做了一些library的porting?

              xiaowenge 1 Reply Last reply Reply Quote Share 0
              • xiaowenge
                DOT小文哥 LV 8 @zhongcy last edited by

                @zhongcy 在 能否提供D1-H上的可用GCC工具链 中说:

                @whycan 加上-staic可以了。另外,全志自己有对编译器做优化吗?是不是直接用的平头哥提供的GCC,然后做了一些library的porting?

                全志没做,都是用平头哥的(但是我们有和平头哥一起优化)

                Z 1 Reply Last reply Reply Quote Share 0
                • Z
                  zhongcy LV 2 @xiaowenge last edited by

                  @xiaowenge 感谢答复。我在全志D1上运行CoreMark跑分,遇到几个问题请教一下:

                  1. C906官方标称CoreMark能跑3.7 Coremark/Mhz,在全志D1上能复现吗?用的工具链或者ELF有开放吗?
                  2. 我用全志SDK(通过repo下载)编译得到的CoreMark binary,跑分是3.4,但是用平头哥(https://open.allwinnertech.com )-static编译得到的binary跑分只有3.0,这个差异来源是什么?两者编译选项除了-static外是一致的。
                  YuzukiTsuru aldfaaa 2 Replies Last reply Reply Quote Share 0
                  • YuzukiTsuru
                    柚木 鉉 LV 9 @zhongcy last edited by

                    @zhongcy 主要差异是Clib

                    1 Reply Last reply Reply Quote Share 0
                    • aldfaaa
                      whycan矿工-小叶 LV 6 @zhongcy last edited by

                      @zhongcy 难道是传说中的负优化???

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

                        现在的编译链还是比较笨的,要是编译链自己能把优化做到最好,那还有nihui什么事呢?对吧@nihui 😀 😀

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

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

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