在WSL2 (ubuntu)编译D1/D1s出错,求官方大佬指导,感谢
-
在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)) ####
-
你把d1的sdk存f盘了,这样肯定报错,把sdk移动到/home文件夹下就行了,存到wsl里不能存外面
-
@yuzukitsuru 重点是为什么报错,怎么能解决。 【表情】
-
@yuzukitsuru WSL2默认是在C盘;几十G的代码放在C盘,太大了......
-
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号