Navigation

    全志在线开发者论坛

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

    在WSL2 (ubuntu)编译D1/D1s出错,求官方大佬指导,感谢

    MR Series
    2
    5
    2493
    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
      cstyle LV 4 last edited by xiaowenge

      在WSL2下编译,报错,谢谢。

      touch /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/compile_dir/target/host/gettext-0.19.6/.built
      touch /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/staging_dir/target/host/stamp/.gettext-full_installed
      make[3]: Leaving directory '/mnt/f/1OpenHW/d1sdk/tina-d1-h/package/libs/gettext-full'
      make[3]: Entering directory '/mnt/f/1OpenHW/d1sdk/tina-d1-h/package/libs/libffi'
      . /mnt/f/1OpenHW/d1sdk/tina-d1-h/build/shell.sh; gzip -dc /mnt/f/1OpenHW/d1sdk/tina-d1-h/dl/libffi-3.3.tar.gz | tar -C /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/compile_dir/target/host/libffi-3.3/.. -xf -
      touch /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/compile_dir/target/host/libffi-3.3/.preparedc2fe48d3da04c3db2be66e2da6249c87
      (cd /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/compile_dir/target/host/libffi-3.3; rm -f aclocal.m4; if [ -f build/configure.ac ] || [ -f build/configure.in ]; then [ -d build/autom4te.cache ] && rm -rf autom4te.cache; [ -e build/config.rpath ] || ln -s /mnt/f/1OpenHW/d1sdk/tina-d1-h/scripts/config.rpath build/config.rpath; touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; AUTOM4TE=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/autom4te AUTOCONF=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/autoconf AUTOMAKE=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/automake ACLOCAL=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/aclocal AUTOHEADER=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/autoheader LIBTOOLIZE=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/libtoolize LIBTOOL=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/libtool M4=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/m4 AUTOPOINT=true /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/autoreconf -v -f -i -s -B /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/share/aclocal -I m4 -I build build || true; fi; );   (cd /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/compile_dir/target/host/libffi-3.3; rm -f aclocal.m4; if [ -f build/configure.ac ] || [ -f build/configure.in ]; then [ -d build/autom4te.cache ] && rm -rf autom4te.cache; [ -e build/config.rpath ] || ln -s /mnt/f/1OpenHW/d1sdk/tina-d1-h/scripts/config.rpath build/config.rpath; touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; AUTOM4TE=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/autom4te AUTOCONF=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/autoconf AUTOMAKE=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/automake ACLOCAL=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/aclocal AUTOHEADER=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/autoheader LIBTOOLIZE=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/libtoolize LIBTOOL=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/libtool M4=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/m4 AUTOPOINT=true /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/bin/autoreconf -v -f -i -s -B /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/share/aclocal -I m4 -I build build || true; fi; );     
      (cd /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/compile_dir/target/host/libffi-3.3/; if [ -x configure ]; then cp -fpR /mnt/f/1OpenHW/d1sdk/tina-d1-h/scripts/config.{guess,sub} /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/compile_dir/target/host/libffi-3.3// &&  bash ./configure CC="gcc" CFLAGS="-O2 -I/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/include -I/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/usr/include -I/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/staging_dir/target/host/include" CPPFLAGS="-I/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/include -I/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/usr/include -I/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/staging_dir/target/host/include" LDFLAGS="-L/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/lib -L/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/host/usr/lib -L/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/staging_dir/target/host/lib" SHELL="/usr/bin/env bash" --target=x86_64-linux-gnu --host=x86_64-linux-gnu --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/staging_dir/target/host --exec-prefix=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/staging_dir/target/host --sysconfdir=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/staging_dir/target/host/etc --localstatedir=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/staging_dir/target/host/var --sbindir=/mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/staging_dir/target/host/bin ; fi )
      checking build system type... x86_64-pc-linux-gnu
      checking host system type... x86_64-pc-linux-gnu
      checking target system type... x86_64-pc-linux-gnu
      continue configure in default builddir "./x86_64-pc-linux-gnu"
      ....exec /usr/bin/env bash .././configure "--srcdir=.." "--enable-builddir=x86_64-pc-linux-gnu" "linux
      gnu"
      **.././configure: line 2300: config.log: No such file or directory
      .././configure: line 2310: config.log: No such file or directory
      cat: standard output: No such file or directory
      make[3]: *** [Makefile:96: /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/compile_dir/target/host/libffi-3.3/.configured] Error 1
      make[3]: Leaving directory '/mnt/f/1OpenHW/d1sdk/tina-d1-h/package/libs/libffi'
      make[2]: *** [package/Makefile:192: package/libs/libffi/host/compile] Error 2
      make[2]: Leaving directory '/mnt/f/1OpenHW/d1sdk/tina-d1-h'**
      make[1]: *** [package/Makefile:189: /mnt/f/1OpenHW/d1sdk/tina-d1-h/out/d1-h-nezha/staging_dir/target/stamp/.package_compile] Error 2
      make[1]: Leaving directory '/mnt/f/1OpenHW/d1sdk/tina-d1-h'
      make: *** [/mnt/f/1OpenHW/d1sdk/tina-d1-h/build/toplevel.mk:306: world] Error 2
      [1]+  Done                    $T/tools/build/buildserver --path $T 2> /dev/null 1>&2
      
      #### make failed to build some targets (05:44:18 (hh:mm:ss)) ####
      
      1 Reply Last reply Reply Quote Share 0
      • YuzukiTsuru
        柚木 鉉 LV 9 last edited by

        你把d1的sdk存f盘了,这样肯定报错,把sdk移动到/home文件夹下就行了,存到wsl里不能存外面

        C 2 Replies Last reply Reply Quote Share 0
        • C
          cstyle LV 4 @YuzukiTsuru last edited by

          @yuzukitsuru 重点是为什么报错,怎么能解决。cefb4898-9bfd-48bb-851a-9a04aa2928cb-AF9CF8AB6AC99B35118C7441E27B77B4.png 【表情】

          1 Reply Last reply Reply Quote Share 0
          • C
            cstyle LV 4 @YuzukiTsuru last edited by

            @yuzukitsuru WSL2默认是在C盘;几十G的代码放在C盘,太大了......

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

              @cstyle https://www.gloomyghost.com/live/20211226.aspx

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

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

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