D1H-nezha-tina构建报错
-
~/tina-d1-h$ make -j32 ===This's tina environment.=== no need rebuild boot0, the newest file is: 1703146033.5841266620 2023年12月21日 星期四 16时07分13秒 /tina-d1-h/lichee/brandy-2.0/spl/nboot/libsun20iw1p1_spinor.o no need rebuild uboot, the newest file is: 1703146058.1641860450 2023年12月21日 星期四 16时07分38秒 /tina-d1-h/lichee/brandy-2.0/u-boot-2018/u-boot.cfg.configs === Start build scp.bin === Platform d1-h Skip marisc. [3] 276102 报错1: make[6]: Entering directory '/home/plct/tina-d1-h/out/d1-h-nezha/compile_dir/host/m4-1.4.18' Unable to find a Python 2.x interpreter for executing /home/plct/tina-d1-h/out/d1-h-nezha/compile_dir/host/scons-2.4.1/setup.py install --prefix=/home/plct/tina-d1-h/out/host ! make[3]: *** [Makefile:35: /home/plct/tina-d1-h/out/host/stamp/.scons_installed] Error 1 make[3]: Leaving directory '/home/plct/tina-d1-h/tools/scons' make[2]: *** [tools/Makefile:135: tools/scons/install] Error 2 make[2]: *** Waiting for unfinished jobs.... 报错2: gcc -I. -I/home/plct/tina-d1-h/out/host/include -I/home/plct/tina-d1-h/out/host/usr/include -O2 -I/home/plct/tina-d1-h/out/host/include -I/home/plct/tina-d1-h/out/host/usr/include -MT spawn-pipe.o -MD -MP -MF $depbase.Tpo -c -o spawn-pipe.o spawn-pipe.c &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/signal.h:328, from ./signal.h:52, from c-stack.c:49: c-stack.c:55:26: error: missing binary operator before token "(" 55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384 | ^~~~~~~~ depbase=`echo mkstemp-safer.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -I. -I/home/plct/tina-d1-h/out/host/include -I/home/plct/tina-d1-h/out/host/usr/include -O2 -I/home/plct/tina-d1-h/out/host/include -I/home/plct/tina-d1-h/out/host/usr/include -MT tmpdir.o -MD -MP -MF $depbase.Tpo -c -o tmpdir.o tmpdir.c &&\ mv -f $depbase.Tpo $depbase.Po make[7]: *** [Makefile:1910: c-stack.o] Error 1 make[7]: *** Waiting for unfinished jobs.... 报错3 make[7]: Leaving directory '/home/plct/tina-d1-h/out/d1-h-nezha/compile_dir/host/m4-1.4.18/lib' make[6]: *** [Makefile:1674: all] Error 2 make[6]: Leaving directory '/home/plct/tina-d1-h/out/d1-h-nezha/compile_dir/host/m4-1.4.18/lib' make[5]: *** [Makefile:1572: all-recursive] Error 1 make[5]: Leaving directory '/home/plct/tina-d1-h/out/d1-h-nezha/compile_dir/host/m4-1.4.18' make[4]: *** [Makefile:1528: all] Error 2 make[4]: Leaving directory '/home/plct/tina-d1-h/out/d1-h-nezha/compile_dir/host/m4-1.4.18' make[3]: *** [Makefile:30: /home/plct/tina-d1-h/out/d1-h-nezha/compile_dir/host/m4-1.4.18/.built] Error 2 make[3]: Leaving directory '/home/plct/tina-d1-h/tools/m4' make[2]: *** [tools/Makefile:135: tools/m4/compile] Error 2 警告: file_io.c: In function 'io_read': file_io.c:1021:45: warning: logical 'or' of equal expressions [-Wlogical-op] 1021 | if (errno == EAGAIN || errno == EWOULDBLOCK) { | ^~ file_io.c: In function 'io_write_buf': file_io.c:1109:45: warning: logical 'or' of equal expressions [-Wlogical-op] 1109 | if (errno == EAGAIN || errno == EWOULDBLOCK) { | ^~ mv -f .deps/xz-mytime.Tpo .deps/xz-mytime.Po mv -f .deps/xz-signals.Tpo .deps/xz-signals.Po mv -f .deps/xz-tuklib_mbstr_fw.Tpo .deps/xz-tuklib_mbstr_fw.Po message.c: In function 'progress_speed.part.0': message.c:378:42: warning: '%s' directive output may be truncated writing up to 23 bytes into a region of size between 0 and 14 [-Wformat-truncation=] 378 | snprintf(buf, sizeof(buf), "%.*f %s", | ^~ In file included from /usr/include/stdio.h:894, from private.h:23, from message.c:13: /usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output between 3 and 337 bytes into a destination of size 16 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ mv -f .deps/xz-suffix.Tpo .deps/xz-suffix.Po mv -f .deps/xz-options.Tpo .deps/xz-options.Po mv -f .deps/xz-tuklib_mbstr_width.Tpo .deps/xz-tuklib_mbstr_width.Po mv -f .deps/xz-tuklib_progname.Tpo .deps/xz-tuklib_progname.Po list.c: In function 'parse_block_header': list.c:480:33: warning: this statement may fall through [-Wimplicit-fallthrough=] 479 | if (block.uncompressed_size == LZMA_VLI_UNKNOWN | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 480 | || block.uncompressed_size | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 481 | == iter->block.uncompressed_size) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list.c:487:9: note: here 487 | case LZMA_DATA_ERROR: | ^~~~ mv -f .deps/xz-tuklib_open_stdxxx.Tpo .deps/xz-tuklib_open_stdxxx.Po 报错4: mkdir -p /home/plct/tina-d1-h/out/host/stamp touch /home/plct/tina-d1-h/out/d1-h-nezha/compile_dir/host/xz-5.2.2/.built touch /home/plct/tina-d1-h/out/host/stamp/.xz_installed make[3]: Leaving directory '/home/plct/tina-d1-h/tools/xz' make[2]: Leaving directory '/home/plct/tina-d1-h' make[1]: *** [tools/Makefile:133: /home/plct/tina-d1-h/out/d1-h-nezha/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyyynnnyyyyyyyyyyynnyyyyyyyynyyynyyyyy] Error 2 make[1]: Leaving directory '/home/plct/tina-d1-h' make: *** [/home/plct/tina-d1-h/build/toplevel.mk:306:world] 错误 2 [3]+ 已完成 $T/tools/build/buildserver --path $T 2> /dev/null 1>&2 #### make failed to build some targets (34 seconds) ####
不知道哪里能够找到完整的错误信息,只能根据终端输出找到部分报错位置。请问这些报错有解决方法吗?
-
@mc964203886 在 D1H-nezha-tina构建报错 中说:
from ./signal.h:52, from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
|系统gcc版本过高,请使用gcc-7以下版本
-
@whycanservice 请问有没有gcc-7以下的安装资源及其依赖,这几天在不停的回退所有依赖项的版本,全都不能向后兼容。是不是我的安装方法有问题。
-
@mc964203886 一般使用Ubuntu 16.04就可以
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号