@whycan 牛逼。几层板?
cstyle 发布的帖子
-
回复: 在WSL2 (ubuntu)编译D1/D1s出错,求官方大佬指导,感谢
@yuzukitsuru WSL2默认是在C盘;几十G的代码放在C盘,太大了......
-
在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)) ####
-
WSL2编译d1-h_nezha-tina或D1s失败
在WSL2 下编译失败,有没有人帮忙看看是什么原因。网上有人说是大小写的问题,但是不知道问题在哪里,求指教。
CC [M] drivers/net/wireless/xr829/wlan/etf.o CC [M] drivers/net/wireless/xr829/wlan/wlan_init.o LD [M] drivers/net/wireless/xr829/xr829.o CC [M] drivers/soc/sunxi/vf-test.o CC [M] net/ipv4/netfilter/nf_log_ipv4.o CC [M] net/ipv4/netfilter/ipt_REJECT.o CC [M] net/ipv4/netfilter/iptable_filter.o CC [M] net/netfilter/nf_log_common.o CC [M] net/netfilter/xt_mark.o CC [M] net/netfilter/xt_LOG.o **make[7]: *** No rule to make target 'net/netfilter/xt_TCPMSS.o', needed by '__build'. Stop.** make[6]: *** [scripts/Makefile.build:556: net/netfilter] Error 2 make[5]: *** [Makefile:1810: net] Error 2 make[5]: Leaving directory '/mnt/f/1OpenHW/awsdkgit/d1sdk/lichee/linux-5.4' make[4]: *** [Makefile:29: /mnt/f/1OpenHW/awsdkgit/d1sdk/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/linux-5.4.61/.modules] Error 2 make[4]: Leaving directory '/mnt/f/1OpenHW/awsdkgit/d1sdk/target/allwinner/d1-h-nezha' make[3]: *** [Makefile:13: compile] Error 2 make[3]: Leaving directory '/mnt/f/1OpenHW/awsdkgit/d1sdk/target/allwinner' make[2]: *** [target/Makefile:22: target/allwinner/compile] Error 2 make[2]: Leaving directory '/mnt/f/1OpenHW/awsdkgit/d1sdk' make[1]: *** [target/Makefile:16: /mnt/f/1OpenHW/awsdkgit/d1sdk/out/d1-h-nezha/staging_dir/target/stamp/.target_compile] Error 2 make[1]: Leaving directory '/mnt/f/1OpenHW/awsdkgit/d1sdk' make: *** [/mnt/f/1OpenHW/awsdkgit/d1sdk/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 (03:19:11 (hh:mm:ss)) ####
$ uname -a Linux 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
-
回复: 求助:在WSL2 (ubuntu)编译D1s出错
又报错!!谢谢。
编译lauch的是这个工程: 3. d1s_nezha-tinamake[5]: Entering directory '/mnt/f/1OpenHW/awsdkgit/d1sdk/lichee/linux-5.4' HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --syncconfig Kconfig HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o LEX scripts/dtc/dtc-lexer.lex.c YACC scripts/dtc/dtc-parser.tab.[ch] HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/dtc HOSTCC scripts/kallsyms HOSTCC scripts/asn1_compiler scripts/Makefile.asm-generic:25: redundant generic-y found in arch/riscv/include/asm/Kbuild: device.h WRAP arch/riscv/include/generated/asm/bugs.h WRAP arch/riscv/include/generated/asm/checksum.h WRAP arch/riscv/include/generated/asm/compat.h WRAP arch/riscv/include/generated/asm/device.h WRAP arch/riscv/include/generated/asm/div64.h WRAP arch/riscv/include/generated/asm/extable.h WRAP arch/riscv/include/generated/asm/flat.h WRAP arch/riscv/include/generated/asm/dma.h WRAP arch/riscv/include/generated/asm/dma-contiguous.h WRAP arch/riscv/include/generated/asm/dma-mapping.h WRAP arch/riscv/include/generated/asm/emergency-restart.h WRAP arch/riscv/include/generated/asm/exec.h WRAP arch/riscv/include/generated/asm/fb.h WRAP arch/riscv/include/generated/asm/hardirq.h WRAP arch/riscv/include/generated/asm/hw_irq.h WRAP arch/riscv/include/generated/asm/irq_regs.h WRAP arch/riscv/include/generated/asm/irq_work.h WRAP arch/riscv/include/generated/asm/kdebug.h WRAP arch/riscv/include/generated/asm/kmap_types.h WRAP arch/riscv/include/generated/asm/kvm_para.h WRAP arch/riscv/include/generated/asm/local.h WRAP arch/riscv/include/generated/asm/local64.h WRAP arch/riscv/include/generated/asm/mm-arch-hooks.h WRAP arch/riscv/include/generated/asm/msi.h WRAP arch/riscv/include/generated/asm/percpu.h WRAP arch/riscv/include/generated/asm/preempt.h WRAP arch/riscv/include/generated/asm/sections.h WRAP arch/riscv/include/generated/asm/serial.h WRAP arch/riscv/include/generated/asm/shmparam.h WRAP arch/riscv/include/generated/asm/topology.h WRAP arch/riscv/include/generated/asm/trace_clock.h WRAP arch/riscv/include/generated/asm/unaligned.h WRAP arch/riscv/include/generated/asm/user.h WRAP arch/riscv/include/generated/asm/vga.h WRAP arch/riscv/include/generated/asm/vmlinux.lds.h WRAP arch/riscv/include/generated/asm/xor.h WRAP arch/riscv/include/generated/asm/simd.h UPD include/config/kernel.release UPD include/generated/utsrelease.h CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/modpost.o CC scripts/mod/devicetable-offsets.s UPD scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost CC kernel/bounds.s UPD include/generated/bounds.h UPD include/generated/timeconst.h CC arch/riscv/kernel/asm-offsets.s UPD include/generated/asm-offsets.h CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh CC [M] drivers/input/sensor/sunxi_gpadc.o CC [M] drivers/input/touchscreen/gt9xxnew/goodix_tool.o CC [M] drivers/input/touchscreen/gt9xxnew/gt9xx_update.o CC [M] drivers/input/touchscreen/gt9xxnew/gt9xx.o LD [M] drivers/input/touchscreen/gt9xxnew/gt9xxnew_ts.o CC [M] drivers/net/wireless/xr819s/umac/main.o CC [M] drivers/net/wireless/xr819s/umac/status.o CC [M] drivers/net/wireless/xr819s/umac/sta_info.o CC [M] drivers/net/wireless/xr819s/umac/wep.o CC [M] drivers/net/wireless/xr819s/umac/wpa.o CC [M] drivers/net/wireless/xr819s/umac/wapi.o CC [M] drivers/net/wireless/xr819s/umac/scan.o CC [M] drivers/net/wireless/xr819s/umac/offchannel.o CC [M] drivers/net/wireless/xr819s/umac/ht.o In file included from ./include/linux/kernel.h:11, from ./include/linux/skbuff.h:13, from ./include/linux/if_ether.h:19, from ./drivers/net/wireless/xr819s/include/linux/ieee80211.h:19, from drivers/net/wireless/xr819s/umac/ht.c:16: drivers/net/wireless/xr819s/umac/ht.c: In function 'mac80211_send_smps_action': ./include/linux/compiler.h:78:22: warning: this statement may fall through [-Wimplicit-fallthrough=] # define unlikely(x) __builtin_expect(!!(x), 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/asm-generic/bug.h:116:2: note: in expansion of macro 'unlikely' unlikely(__ret_warn_on); \ ^~~~~~~~ drivers/net/wireless/xr819s/umac/ht.c:272:3: note: in expansion of macro 'WARN_ON' WARN_ON(1); ^~~~~~~ drivers/net/wireless/xr819s/umac/ht.c:273:2: note: here case IEEE80211_SMPS_OFF: ^~~~ CC [M] drivers/net/wireless/xr819s/umac/agg-tx.o CC [M] drivers/net/wireless/xr819s/umac/agg-rx.o CC [M] drivers/net/wireless/xr819s/umac/ibss.o CC [M] drivers/net/wireless/xr819s/umac/mlme.o CC [M] drivers/net/wireless/xr819s/umac/work.o In file included from ./include/linux/kernel.h:11, from ./include/linux/delay.h:22, from drivers/net/wireless/xr819s/umac/work.c:16: drivers/net/wireless/xr819s/umac/work.c: In function 'ieee80211_add_ht_ie': ./include/linux/compiler.h:78:22: warning: this statement may fall through [-Wimplicit-fallthrough=] # define unlikely(x) __builtin_expect(!!(x), 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/asm-generic/bug.h:116:2: note: in expansion of macro 'unlikely' unlikely(__ret_warn_on); \ ^~~~~~~~ drivers/net/wireless/xr819s/umac/work.c:156:3: note: in expansion of macro 'WARN_ON' WARN_ON(1); ^~~~~~~ drivers/net/wireless/xr819s/umac/work.c:157:2: note: here case IEEE80211_SMPS_OFF: ^~~~ CC [M] drivers/net/wireless/xr819s/umac/iface.o CC [M] drivers/net/wireless/xr819s/umac/rate.o CC [M] drivers/net/wireless/xr819s/umac/michael.o CC [M] drivers/net/wireless/xr819s/umac/tkip.o CC [M] drivers/net/wireless/xr819s/umac/aes_ccm.o CC [M] drivers/net/wireless/xr819s/umac/aes_cmac.o CC [M] drivers/net/wireless/xr819s/umac/cfg.o drivers/net/wireless/xr819s/umac/cfg.c: In function 'ieee80211_scan': drivers/net/wireless/xr819s/umac/cfg.c:1965:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (sdata->local->ops->hw_scan) ^ drivers/net/wireless/xr819s/umac/cfg.c:1972:2: note: here case NL80211_IFTYPE_AP: ^~~~ CC [M] drivers/net/wireless/xr819s/umac/rx.o CC [M] drivers/net/wireless/xr819s/umac/spectmgmt.o CC [M] drivers/net/wireless/xr819s/umac/tx.o drivers/net/wireless/xr819s/umac/tx.c: In function 'ieee80211_tx_h_select_key': drivers/net/wireless/xr819s/umac/tx.c:596:7: warning: this statement may fall through [-Wimplicit-fallthrough=] if (ieee80211_is_auth(hdr->frame_control)) ^ drivers/net/wireless/xr819s/umac/tx.c:598:3: note: here case WLAN_CIPHER_SUITE_TKIP: ^~~~ CC [M] drivers/net/wireless/xr819s/umac/key.o CC [M] drivers/net/wireless/xr819s/umac/util.o CC [M] drivers/net/wireless/xr819s/umac/wme.o drivers/net/wireless/xr819s/umac/wme.c: In function 'mac80211_select_queue': drivers/net/wireless/xr819s/umac/wme.c:74:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (sta) { ^ drivers/net/wireless/xr819s/umac/wme.c:78:2: note: here case NL80211_IFTYPE_AP: ^~~~ CC [M] drivers/net/wireless/xr819s/umac/event.o CC [M] drivers/net/wireless/xr819s/umac/average.o CC [M] drivers/net/wireless/xr819s/umac/chan.o CC [M] drivers/net/wireless/xr819s/umac/pm.o CC [M] drivers/net/wireless/xr819s/umac/rc80211_minstrel.o CC [M] drivers/net/wireless/xr819s/umac/rc80211_minstrel_ht.o CC [M] drivers/net/wireless/xr819s/wlan/fwio.o CC [M] drivers/net/wireless/xr819s/wlan/txrx.o CC [M] drivers/net/wireless/xr819s/wlan/vendor.o CC [M] drivers/net/wireless/xr819s/wlan/main.o drivers/net/wireless/xr819s/wlan/main.c: In function 'xradio_get_mac_addrs': drivers/net/wireless/xr819s/wlan/main.c:427:7: warning: unused variable 'addr_str' [-Wunused-variable] char addr_str[20]; ^~~~~~~~ CC [M] drivers/net/wireless/xr819s/wlan/queue.o drivers/net/wireless/xr819s/wlan/queue.c: In function 'xradio_queue_stats_init': drivers/net/wireless/xr819s/wlan/queue.c:218:3: warning: ISO C90 forbids variable length array [-Wvla] stats->link_map_cache[i] = xr_kzalloc(sizeof(int[map_capacity]), false); ^~~~~ drivers/net/wireless/xr819s/wlan/queue.c: In function 'xradio_queue_init': drivers/net/wireless/xr819s/wlan/queue.c:258:5: warning: ISO C90 forbids variable length array [-Wvla] xr_kzalloc(sizeof(int[stats->map_capacity]), false); ^~~~~~~~~~ CC [M] drivers/net/wireless/xr819s/wlan/hwio.o CC [M] drivers/net/wireless/xr819s/wlan/bh.o CC [M] drivers/net/wireless/xr819s/wlan/wsm.o CC [M] drivers/net/wireless/xr819s/wlan/sta.o CC [M] drivers/net/wireless/xr819s/wlan/ap.o CC [M] drivers/net/wireless/xr819s/wlan/scan.o drivers/net/wireless/xr819s/wlan/scan.c: In function 'xradio_scan_work': drivers/net/wireless/xr819s/wlan/scan.c:723:38: warning: ISO C90 forbids variable length array [-Wvla] scan.ch = xr_kzalloc(sizeof(struct wsm_scan_ch[it - hw_priv->scan.curr]), false); ^~~~~~~~~~~ CC [M] drivers/net/wireless/xr819s/wlan/platform.o CC [M] drivers/net/wireless/xr819s/wlan/pm.o CC [M] drivers/net/wireless/xr819s/wlan/sdio.o CC [M] drivers/net/wireless/xr819s/wlan/debug.o CC [M] drivers/net/wireless/xr819s/wlan/etf.o In file included from ./include/linux/printk.h:7, from ./drivers/net/wireless/xr819s/include/linux/printk.h:7, from ./include/linux/kernel.h:15, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from drivers/net/wireless/xr819s/wlan/etf.c:14: drivers/net/wireless/xr819s/wlan/etf.c: In function 'etf_alloc_cli_buffer': ./include/linux/kern_levels.h:5:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'u3 ' {aka 'unsigned int'} [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^~~~~~ ./include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/debug.h:254:11: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR "[ETF_ERR] " __VA_ARGS__); \ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:452:4: note: in expansion of macro 'etf_printk' etf_printk(XRADIO_DBG_WARN, ^~~~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:453:7: note: format string is defined here "%s: req_len = %d, priv->cli_data_len = %d.\n", ~^ %d In file included from ./include/linux/printk.h:7, from ./drivers/net/wireless/xr819s/include/linux/printk.h:7, from ./include/linux/kernel.h:15, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from drivers/net/wireless/xr819s/wlan/etf.c:14: ./include/linux/kern_levels.h:5:18: warning: format '%d' expects a matching 'int' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^~~~~~ ./include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/debug.h:254:11: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR "[ETF_ERR] " __VA_ARGS__); \ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:452:4: note: in expansion of macro 'etf_printk' etf_printk(XRADIO_DBG_WARN, ^~~~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:453:46: note: format string is defined here "%s: req_len = %d, priv->cli_data_len = %d.\n", ~^ In file included from ./include/linux/printk.h:7, from ./drivers/net/wireless/xr819s/include/linux/printk.h:7, from ./include/linux/kernel.h:15, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from drivers/net/wireless/xr819s/wlan/etf.c:14: ./include/linux/kern_levels.h:5:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'u3 ' {aka 'unsigned int'} [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^~~~~~ ./include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/debug.h:256:11: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR "[ETF_WRN] " __VA_ARGS__); \ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:452:4: note: in expansion of macro 'etf_printk' etf_printk(XRADIO_DBG_WARN, ^~~~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:453:7: note: format string is defined here "%s: req_len = %d, priv->cli_data_len = %d.\n", ~^ %d In file included from ./include/linux/printk.h:7, from ./drivers/net/wireless/xr819s/include/linux/printk.h:7, from ./include/linux/kernel.h:15, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from drivers/net/wireless/xr819s/wlan/etf.c:14: ./include/linux/kern_levels.h:5:18: warning: format '%d' expects a matching 'int' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^~~~~~ ./include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/debug.h:256:11: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR "[ETF_WRN] " __VA_ARGS__); \ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:452:4: note: in expansion of macro 'etf_printk' etf_printk(XRADIO_DBG_WARN, ^~~~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:453:46: note: format string is defined here "%s: req_len = %d, priv->cli_data_len = %d.\n", ~^ In file included from ./include/linux/printk.h:7, from ./drivers/net/wireless/xr819s/include/linux/printk.h:7, from ./include/linux/kernel.h:15, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from drivers/net/wireless/xr819s/wlan/etf.c:14: ./include/linux/kern_levels.h:5:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'u3 ' {aka 'unsigned int'} [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^~~~~~ ./include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/debug.h:258:11: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR "[ETF] " __VA_ARGS__); \ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:452:4: note: in expansion of macro 'etf_printk' etf_printk(XRADIO_DBG_WARN, ^~~~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:453:7: note: format string is defined here "%s: req_len = %d, priv->cli_data_len = %d.\n", ~^ %d In file included from ./include/linux/printk.h:7, from ./drivers/net/wireless/xr819s/include/linux/printk.h:7, from ./include/linux/kernel.h:15, from ./include/linux/list.h:9, from ./include/linux/module.h:9, from drivers/net/wireless/xr819s/wlan/etf.c:14: ./include/linux/kern_levels.h:5:18: warning: format '%d' expects a matching 'int' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^~~~~~ ./include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/debug.h:258:11: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR "[ETF] " __VA_ARGS__); \ ^~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:452:4: note: in expansion of macro 'etf_printk' etf_printk(XRADIO_DBG_WARN, ^~~~~~~~~~ drivers/net/wireless/xr819s/wlan/etf.c:453:46: note: format string is defined here "%s: req_len = %d, priv->cli_data_len = %d.\n", ~^ CC [M] drivers/net/wireless/xr819s/wlan/wlan_init.o LD [M] drivers/net/wireless/xr819s/xr819s.o CC [M] drivers/soc/sunxi/vf-test.o CC [M] drivers/usb/storage/uas.o CC [M] drivers/usb/storage/scsiglue.o CC [M] drivers/usb/storage/protocol.o CC [M] drivers/usb/storage/transport.o CC [M] drivers/usb/storage/usb.o CC [M] drivers/usb/storage/initializers.o CC [M] drivers/usb/storage/sierra_ms.o CC [M] drivers/usb/storage/option_ms.o CC [M] drivers/usb/storage/usual-tables.o LD [M] drivers/usb/storage/usb-storage.o CC [M] net/ipv4/netfilter/nf_log_ipv4.o CC [M] net/ipv4/netfilter/ipt_REJECT.o CC [M] net/netfilter/nf_log_common.o CC [M] net/netfilter/xt_mark.o CC [M] net/netfilter/xt_LOG.o ****make[7]: *** No rule to make target** **'net/netfilter/xt_TCPMSS.o', needed by '__build'. Stop.** make[6]: *** [scripts/Makefile.build:556: net/netfilter] Error 2 make[5]: *** [Makefile:1810: net] Error 2 make[5]: Leaving directory '/mnt/f/1OpenHW/awsdkgit/d1sdk/lichee/linux-5.4' make[4]: *** [Makefile:30: /mnt/f/1OpenHW/awsdkgit/d1sdk/out/d1s-nezha/compile_dir/target/linux-d1s-nezha/linux-5.4.61/.modules] Error 2 make[4]: Leaving directory '/mnt/f/1OpenHW/awsdkgit/d1sdk/target/allwinner/d1s-nezha' make[3]: *** [Makefile:13: compile] Error 2 make[3]: Leaving directory '/mnt/f/1OpenHW/awsdkgit/d1sdk/target/allwinner' make[2]: *** [target/Makefile:22: target/allwinner/compile] Error 2 make[2]: Leaving directory '/mnt/f/1OpenHW/awsdkgit/d1sdk' make[1]: *** [target/Makefile:16: /mnt/f/1OpenHW/awsdkgit/d1sdk/out/d1s-nezha/staging_dir/target/stamp/.target_compile] Error 2 make[1]: Leaving directory '/mnt/f/1OpenHW/awsdkgit/d1sdk' make: *** [/mnt/f/1OpenHW/awsdkgit/d1sdk/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 (02:00:17 (hh:mm:ss)) ####**
-
求助:在WSL2 (ubuntu)编译D1s出错
在 WSL2运行:
$ source build/envsetup.sh
$ lunch
$ makeuname-a:
Linux zz 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linuxtouch /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>&2make failed to build some targets (05:44:18 (hh:mm:ss))
-
回复: 个人开发者如何获取D1、D1s的 SDK?需要签NDA吗?
可以了,谢谢;
Fetching: 29% (5/17) lichee/device/config/common