Navigation

    全志在线开发者论坛

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

    ubuntu21.04编译d1源码出错

    MR Series
    d1编译出错 ubunt21.04编译d1 编译源码出错
    7
    12
    3886
    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.
    • S
      spring LV 4 last edited by

      捕获.PNG
      请问编译d1源码出现错误是声明原因,编译环境是ubuntu21.04

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

        建议重新make 单线程看一下是什么问题🤠 🤠

        S 2 Replies Last reply Reply Quote Share 0
        • S
          spring LV 4 @BedRock last edited by

          @bedrock 捕获.PNG
          单线程编译后还是出现这个错误

          S 1 Reply Last reply Reply Quote Share 0
          • S
            spring LV 4 @spring last edited by

            @spring 捕获.PNG
            最开始错误位置

            A 1 Reply Last reply Reply Quote Share 0
            • S
              spring LV 4 @BedRock last edited by

              @bedrock
              libfakeroot.c:99:40: error: '_STAT_VER' undeclared (first use in this function) 错误位置_STAT_VER没有定义使用

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

                @spring 在 ubuntu21.04编译d1源码出错 中说:

                STAT_VER' undeclared (f

                我也遇到同样的问题.

                YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
                • YuzukiTsuru
                  柚木 鉉 LV 9 @aldfaaa last edited by

                  @aldfaaa 换ubuntu18.04

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

                    @yuzukitsuru 哭~我的志强装在机房跑着...

                    Y 1 Reply Last reply Reply Quote Share 0
                    • Y
                      YterAA LV 7 @aldfaaa last edited by

                      @aldfaaa 虚拟机、docker

                      Y 1 Reply Last reply Reply Quote Share 0
                      • Y
                        yelong98 LV 7 @YterAA last edited by

                        @yteraa 20.04没问题,我编过

                        1 Reply Last reply Reply Quote Share 0
                        • A
                          Apollo5520 LV 5 @spring last edited by

                          0001-libfakeroot.c-define-_STAT_VER-if-not-already-define.patch

                          把上面这个文件放到 tools/fakeroot/patches 目录下面,
                          删掉 out/d1-h-nezha/compile_dir/host/fakeroot-1.20.2 目录
                          然后再编译

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

                            我换了好多几个环境拷贝 整个sdk 都能重现了这个问题。
                            尝试make -d发现连cp这样基础的方法都出现找不到LIBC 2.XX等问题,这让我意识到这不完全是与操作系统相关的问题。
                            搜索cp发现out/host目录下有着一套独立的用于编译的系统环境。
                            然后果断

                            cd out
                            mv host ../..
                            rm -rf ./*
                            

                            正在编译中..., 没有再报错了。

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

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

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