20200222在ubuntu20.04下编译全志R16的tinav3.0.4成功

20200222在ubuntu20.04下编译全志R16的tinav3.0.4成功(烧录/运行的任何问题,概不负责!^_)
2020/2/22 22 17:48


全志R系列的Tina系统官方推荐使用Ubuntu12.04编译,不过Ubuntu12.04的LTS生命支持周期结束了。
Ubuntu14.04(我自己的电脑)和Ubuntu16.04(服务器)下编译Tina都测试通过了!

不过在Ubuntu18.04下想了很多办法都没有编译通过!
现在Ubuntu20.04的测试版本已经放出来了,经过艰难的工作。(花了3天时间)
才编译通过,现在给一下步骤!

PS:(限制于时间的关系)
编译低版本的Tina比如:tinav2.5/v2.0/v1.0甚至还有古老的Tina V0.1版本都不再研究了!

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ source build/envsetup.sh 
including target/allwinner/astar-dm2/vendorsetup.sh
including target/allwinner/astar-dm/vendorsetup.sh
including target/allwinner/astar-evb/vendorsetup.sh
including target/allwinner/astar-noma/vendorsetup.sh
including target/allwinner/astar-parrot/vendorsetup.sh
including target/allwinner/astar-spk/vendorsetup.sh
including target/allwinner/azalea-evb/vendorsetup.sh
including target/allwinner/azalea-m2ultraservers/vendorsetup.sh
including target/allwinner/azalea-m2ultra/vendorsetup.sh
including target/allwinner/azalea-perf1/vendorsetup.sh
including target/allwinner/azalea-perf2/vendorsetup.sh
including target/allwinner/azalea-perf3/vendorsetup.sh
including target/allwinner/banjo-dh/vendorsetup.sh
including target/allwinner/banjo-GW/vendorsetup.sh
including target/allwinner/banjo-kudrone/vendorsetup.sh
including target/allwinner/banjo-mic/vendorsetup.sh
including target/allwinner/banjo-perf1/vendorsetup.sh
including target/allwinner/banjo-R11_pref1/vendorsetup.sh
including target/allwinner/banjo-R7_pref1/vendorsetup.sh
including target/allwinner/banjo-v3s/vendorsetup.sh
including target/allwinner/cello-perf1/vendorsetup.sh
including target/allwinner/cello-pro/vendorsetup.sh
including target/allwinner/generic/vendorsetup.sh
including target/allwinner/koto-carp/vendorsetup.sh
including target/allwinner/koto-perf1/vendorsetup.sh
including target/allwinner/koto-perf2/vendorsetup.sh
including target/allwinner/mandolin-perf1/vendorsetup.sh
including target/allwinner/nuclear-dev/vendorsetup.sh
including target/allwinner/octopus-dev/vendorsetup.sh
including target/allwinner/octopus-sch/vendorsetup.sh
including target/allwinner/sitar-cuckoo/vendorsetup.sh
including target/allwinner/sitar-db/vendorsetup.sh
including target/allwinner/sitar-evb/vendorsetup.sh
including target/allwinner/sitar-mic2/vendorsetup.sh
including target/allwinner/sitar-mic/vendorsetup.sh
including target/allwinner/sitar-pd4/vendorsetup.sh
including target/allwinner/sitar-perf1/vendorsetup.sh
including target/allwinner/sitar-perf2/vendorsetup.sh
including target/allwinner/sitar-perf3/vendorsetup.sh
including target/allwinner/tulip-d1nor/vendorsetup.sh
including target/allwinner/tulip-d1/vendorsetup.sh
including target/allwinner/tulip-hena/vendorsetup.sh
including target/allwinner/tulip-m64/vendorsetup.sh
including target/allwinner/tulip-mozart/vendorsetup.sh
including target/allwinner/tulip-noma/vendorsetup.sh
including target/allwinner/tulip-perf1/vendorsetup.sh
including target/allwinner/tulip-pine64/vendorsetup.sh
including target/allwinner/violin-F1C200s/vendorsetup.sh
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ lunch
You're building on Linux
Lunch menu... pick a combo:
     1. astar_dm2-tina
     2. astar_dm-tina
     3. astar_evb-tina
     4. astar_noma-tina
     5. astar_parrot-tina
     6. astar_spk-tina
     7. azalea_evb-tina
     8. azalea_m2ultraservers-tina
     9. azalea_m2ultra-tina
     10. azalea_perf1-tina
     11. azalea_perf2-tina
     12. azalea_perf3-tina
     13. banjo_dh-tina
     14. banjo_GW-tina
     15. banjo_kudrone-tina
     16. banjo_mic-tina
     17. banjo_perf1-tina
     18. banjo_R11_pref1-tina
     19. banjo_R7_pref1-tina
     20. banjo_v3s-tina
     21. cello_perf1-tina
     22. cello_pro-tina
     23. koto_carp-tina
     24. koto_perf1-tina
     25. koto_perf2-tina
     26. mandolin_perf1-tina
     27. nuclear_dev-tina
     28. octopus_dev-tina
     29. octopus_sch-tina
     30. sitar_cuckoo-tina
     31. sitar_db-tina
     32. sitar_evb-tina
     33. sitar_mic2-tina
     34. sitar_mic-tina
     35. sitar_pd4-tina
     36. sitar_perf1-tina
     37. sitar_perf2-tina
     38. sitar_perf3-tina
     39. tulip_d1nor-tina
     40. tulip_d1-tina
     41. tulip_hena-tina
     42. tulip_m64-tina
     43. tulip_mozart-tina
     44. tulip_noma-tina
     45. tulip_perf1-tina
     46. tulip_pine64-tina
     47. violin_F1C200s-tina
Which would you like?5
/bin/sh: python: 未找到命令
============================================
PLATFORM_VERSION_CODENAME=Neptune
PLATFORM_VERSION=3.0.0
PRODUCT_VERSION=v2.2
TARGET_PRODUCT=astar_parrot
TARGET_BUILD_VARIANT=tina
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=
HOST_BUILD_TYPE=release
BUILD_ID=5A0C0971
TARGET_OUT_DIR=out/astar-parrot
============================================
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ make -j8

问题1:
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fclose.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc  -I.   -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT fclose.o -MD -MP -MF $depbase.Tpo -c -o fclose.o fclose.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fcntl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc  -I.   -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT fcntl.o -MD -MP -MF $depbase.Tpo -c -o fcntl.o fcntl.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fflush.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc  -I.   -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT fflush.o -MD -MP -MF $depbase.Tpo -c -o fflush.o fflush.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fpurge.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc  -I.   -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT fpurge.o -MD -MP -MF $depbase.Tpo -c -o fpurge.o fpurge.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo freadahead.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc  -I.   -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT freadahead.o -MD -MP -MF $depbase.Tpo -c -o freadahead.o freadahead.c &&\
mv -f $depbase.Tpo $depbase.Po
freadahead.c: In function 'freadahead':
freadahead.c:91:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
   91 |  #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
      |   ^~~~~
make[7]: *** [Makefile:1837: freadahead.o] Error 1
make[7]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17/lib'
make[6]: *** [Makefile:1602: all] Error 2
make[6]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17/lib'
make[5]: *** [Makefile:1506: all-recursive] Error 1
make[5]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17'
make[4]: *** [Makefile:1461: all] Error 2
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17'
make[3]: *** [Makefile:29: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/m4'
make[2]: *** [tools/Makefile:130: tools/m4/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (02:45 (mm:ss)) ####


real    2m45.164s
user    1m57.265s
sys    0m41.347s
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ cd dl/
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll m4*
-rw-rw-r-- 1 rootroot rootroot 1149088 6?   1  2018 m4-1.4.17.tar.xz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ xz -dk m4-1.4.17.tar.xz 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll m4*
-rw-rw-r-- 1 rootroot rootroot 9441280 6?   1  2018 m4-1.4.17.tar
-rw-rw-r-- 1 rootroot rootroot 1149088 6?   1  2018 m4-1.4.17.tar.xz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar xvf m4-1.4.17.tar

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ cd m4-1.4.17
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ ll
总用量 1836
drwxrwxr-x 10 rootroot rootroot    4096 9月  22  2013 ./
drwxrwxr-x  5 rootroot rootroot   36864 2月  22 14:15 ../
-rw-rw-r--  1 rootroot rootroot     863 9月  22  2013 acinclude.m4
-rw-rw-r--  1 rootroot rootroot   47617 9月  22  2013 aclocal.m4
-rw-rw-r--  1 rootroot rootroot    2448 9月  22  2013 AUTHORS
-rw-rw-r--  1 rootroot rootroot    2584 9月  22  2013 BACKLOG
-rwxrwxr-x  1 rootroot rootroot  142895 9月  22  2013 bootstrap*
drwxr-xr-x  3 rootroot rootroot    4096 2月  22 14:15 build-aux/
-rw-rw-r--  1 rootroot rootroot   15283 9月  22  2013 c-boxes.el
-rw-rw-r--  1 rootroot rootroot    1889 9月  22  2013 cfg.mk
-rw-rw-r--  1 rootroot rootroot  194892 9月  22  2013 ChangeLog
drwxr-xr-x  2 rootroot rootroot   12288 2月  22 14:15 checks/
-rwxrwxr-x  1 rootroot rootroot 1089430 9月  22  2013 configure*
-rw-rw-r--  1 rootroot rootroot    7979 9月  22  2013 configure.ac
-rw-rw-r--  1 rootroot rootroot   35147 9月  22  2013 COPYING
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:15 doc/
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:15 examples/
-rw-rw-r--  1 rootroot rootroot    4573 9月  22  2013 GNUmakefile
-rw-rw-r--  1 rootroot rootroot   15752 9月  22  2013 INSTALL
drwxr-xr-x  3 rootroot rootroot   12288 2月  22 14:15 lib/
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:15 m4/
-rw-rw-r--  1 rootroot rootroot   62890 9月  22  2013 maint.mk
-rw-rw-r--  1 rootroot rootroot    1936 9月  22  2013 Makefile.am
-rw-rw-r--  1 rootroot rootroot   69291 9月  22  2013 Makefile.in
-rw-rw-r--  1 rootroot rootroot   30087 9月  22  2013 NEWS
-rw-rw-r--  1 rootroot rootroot       7 9月  22  2013 .prev-version
-rw-rw-r--  1 rootroot rootroot    3983 9月  22  2013 README
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:15 src/
-rw-rw-r--  1 rootroot rootroot       7 9月  22  2013 .tarball-version
drwxr-xr-x  2 rootroot rootroot   12288 2月  22 14:15 tests/
-rw-rw-r--  1 rootroot rootroot    6438 9月  22  2013 THANKS
-rw-rw-r--  1 rootroot rootroot    2062 9月  22  2013 TODO
-rw-rw-r--  1 rootroot rootroot       7 9月  22  2013 .version
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ grep IO_ftrylockfile . -R
./lib/fseeko.c:#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
./lib/fseeko.c:#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
./lib/fpurge.c:# if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
./lib/freading.c:# if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
./lib/freadahead.c:#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
./lib/fflush.c:#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
./lib/fflush.c:#if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */)
./lib/fflush.c:#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ find . -name stdio-impl.h
./lib/stdio-impl.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ 

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/m4-1.4.17$ 

Z:\wyb\r16\tinav3.0\dl\m4-1.4.17\lib\fseeko.c
Z:\wyb\r16\tinav3.0\dl\m4-1.4.17\lib\fpurge.c
Z:\wyb\r16\tinav3.0\dl\m4-1.4.17\lib\freading.c
Z:\wyb\r16\tinav3.0\dl\m4-1.4.17\lib\fflush.c
Z:\wyb\r16\tinav3.0\dl\m4-1.4.17\lib\stdio-impl.h

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar cvf m4-1.4.17.tar
tar: 谨慎地拒绝创建空归档文件
请用“tar --help”或“tar --usage”获得更多信息。
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar cvf m4-1.4.17.tar m4-1.4.17


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ xz -zk m4-1.4.17.tar 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll m4*.tar*
-rw-rw-r-- 1 rootroot rootroot 9441280 2月  22 14:25 m4-1.4.17.tar
-rw-rw-r-- 1 rootroot rootroot 1167156 2月  22 14:25 m4-1.4.17.tar.xz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 


问题2:
gcc    -I. -I./lib -I. -I./lib -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT lib/fcntl.o -MD -MP -MF $depbase.Tpo -c -o lib/fcntl.o lib/fcntl.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/fprintf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc    -I. -I./lib -I. -I./lib -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT lib/fprintf.o -MD -MP -MF $depbase.Tpo -c -o lib/fprintf.o lib/fprintf.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/fseterr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc    -I. -I./lib -I. -I./lib -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT lib/fseterr.o -MD -MP -MF $depbase.Tpo -c -o lib/fseterr.o lib/fseterr.c &&\
mv -f $depbase.Tpo $depbase.Po
lib/fseterr.c: In function 'fseterr':
lib/fseterr.c:77:3: error: #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
   77 |  #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
      |   ^~~~~
make[6]: *** [Makefile:3461: lib/fseterr.o] Error 1
make[6]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/bison-3.0.4'
make[5]: *** [Makefile:4522: all-recursive] Error 1
make[5]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/bison-3.0.4'
make[4]: *** [Makefile:2625: all] Error 2
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/bison-3.0.4'
make[3]: *** [Makefile:31: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/bison-3.0.4/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/bison'
make[2]: *** [tools/Makefile:130: tools/bison/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (04:13 (mm:ss)) ####


real    4m12.941s
user    3m12.891s
sys    0m54.054s
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll bi*
-rwxrwxr-x 1 rootroot rootroot  4553260 6月   1  2018 bind-9.2.3.tar.gz*
-rw-rw-r-- 1 rootroot rootroot 25543552 6月   1  2018 binutils-2.26.tar.bz2
-rw-rw-r-- 1 rootroot rootroot 35513747 6月   1  2018 binutils-2.27.tar.gz
-rw-rw-r-- 1 rootroot rootroot  1300141 6月   1  2018 bird-1.5.0.tar.gz
-rw-rw-r-- 1 rootroot rootroot  1973796 6月   1  2018 bison-3.0.4.tar.xz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ xz -dk bison-3.0.4.tar.xz 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll bison*
-rw-rw-r-- 1 rootroot rootroot 19947520 6月   1  2018 bison-3.0.4.tar
-rw-rw-r-- 1 rootroot rootroot  1973796 6月   1  2018 bison-3.0.4.tar.xz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar xvf bison-3.0.4.tar

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ cd bison-3.0.4/
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ ll
总用量 3300
drwxr-xr-x 14 rootroot rootroot    4096 1月  23  2015 ./
drwxrwxr-x  7 rootroot rootroot   36864 2月  22 14:30 ../
-rw-r--r--  1 rootroot rootroot   95341 2月  24  2012 ABOUT-NLS
-rw-r--r--  1 rootroot rootroot   47112 1月  23  2015 aclocal.m4
-rw-r--r--  1 rootroot rootroot    1460 1月  16  2015 AUTHORS
drwxr-xr-x  3 rootroot rootroot    4096 2月  22 14:29 build-aux/
-rw-r--r--  1 rootroot rootroot    6696 1月  16  2015 cfg.mk
-rw-r--r--  1 rootroot rootroot  355453 1月  23  2015 ChangeLog
-rw-r--r--  1 rootroot rootroot   46844 2月  16  2013 ChangeLog-1998
-rw-r--r--  1 rootroot rootroot 1000971 1月  16  2015 ChangeLog-2012
-rwxr-xr-x  1 rootroot rootroot 1034648 1月  23  2015 configure*
-rw-r--r--  1 rootroot rootroot    8626 1月  22  2015 configure.ac
-rw-r--r--  1 rootroot rootroot   35147 2月  16  2013 COPYING
drwxr-xr-x  4 rootroot rootroot    4096 2月  22 14:29 data/
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:29 djgpp/
drwxr-xr-x  3 rootroot rootroot    4096 2月  22 14:29 doc/
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:29 etc/
drwxr-xr-x  5 rootroot rootroot    4096 2月  22 14:29 examples/
-rw-r--r--  1 rootroot rootroot    4573 1月  23  2015 GNUmakefile
-rw-r--r--  1 rootroot rootroot   15756 1月  16  2015 INSTALL
drwxr-xr-x  4 rootroot rootroot   12288 2月  22 14:29 lib/
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:29 m4/
-rw-r--r--  1 rootroot rootroot   63223 1月  16  2015 maint.mk
-rw-r--r--  1 rootroot rootroot    3693 1月  18  2015 Makefile.am
-rw-r--r--  1 rootroot rootroot  369908 1月  23  2015 Makefile.in
-rw-r--r--  1 rootroot rootroot  100610 1月  23  2015 NEWS
-rw-r--r--  1 rootroot rootroot    1948 1月  16  2015 PACKAGING
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:29 po/
-rw-r--r--  1 rootroot rootroot       6 1月  16  2015 .prev-version
-rw-r--r--  1 rootroot rootroot    2289 1月  16  2015 README
-rw-r--r--  1 rootroot rootroot    1126 1月  16  2015 README-alpha
-rw-r--r--  1 rootroot rootroot    2986 1月  23  2015 README-release
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:29 runtime-po/
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:29 src/
-rw-r--r--  1 rootroot rootroot       6 1月  23  2015 .tarball-version
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:29 tests/
-rw-r--r--  1 rootroot rootroot    8610 1月  18  2015 THANKS
-rw-r--r--  1 rootroot rootroot   14141 1月  16  2015 TODO
-rw-r--r--  1 rootroot rootroot       6 1月  23  2015 .version
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ grep IO_ftrylockfile . -R
./lib/fseterr.c:#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ find . -name stdio-impl.h
find: warning: ‘-name’ matches against basenames only, but the given pattern contains a directory separator (‘/’), thus the expression will evaluate to false all the time.  Did you mean ‘-wholename’?
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ find . -name stdio-impl.h
./lib/stdio-impl.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/bison-3.0.4$ cd ..
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 


Z:\wyb\r16\tinav3.0\dl\bison-3.0.4\lib\fseterr.c
Z:\wyb\r16\tinav3.0\dl\bison-3.0.4\lib\stdio-impl.h

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar cvf bison-3.0.4.tar bison-3.0.4
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ xz -zk bison-3.0.4.tar 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 


问题3:
cc  -Iinclude -Ilibsparse/include -c -o extent.o extent.c
cc  -Iinclude -Ilibsparse/include -c -o indirect.o indirect.c
cc  -Iinclude -Ilibsparse/include -c -o make_ext4fs_main.o make_ext4fs_main.c
cc  -Iinclude -Ilibsparse/include -c -o make_ext4fs.o make_ext4fs.c
cc  -Iinclude -Ilibsparse/include -c -o sha1.o sha1.c
cc  -Iinclude -Ilibsparse/include -c -o uuid.o uuid.c
cc  -Iinclude -Ilibsparse/include -c -o wipe.o wipe.c
make -C libsparse/ libsparse.a
make[5]: Entering directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/make-ext4fs-2015-12-02/libsparse'
cc  -Iinclude -Ilibsparse/include -Iinclude -c -o backed_block.o backed_block.c
cc  -Iinclude -Ilibsparse/include -Iinclude -c -o output_file.o output_file.c
cc  -Iinclude -Ilibsparse/include -Iinclude -c -o sparse.o sparse.c
cc  -Iinclude -Ilibsparse/include -Iinclude -c -o sparse_crc32.o sparse_crc32.c
cc  -Iinclude -Ilibsparse/include -Iinclude -c -o sparse_err.o sparse_err.c
cc  -Iinclude -Ilibsparse/include -Iinclude -c -o sparse_read.o sparse_read.c
ar rcs libsparse.a backed_block.o output_file.o sparse.o sparse_crc32.o sparse_err.o sparse_read.o
make[5]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/make-ext4fs-2015-12-02/libsparse'
cc -o make_ext4fs allocate.o canned_fs_config.o contents.o crc16.o ext4fixup.o ext4_sb.o ext4_utils.o extent.o indirect.o make_ext4fs_main.o make_ext4fs.o sha1.o uuid.o wipe.o libsparse/libsparse.a -Wl,-Bstatic -lz -Wl,-Bdynamic
/usr/bin/ld: contents.o: in function `make_special':
contents.c:(.text+0xbf7): undefined reference to `major'
/usr/bin/ld: contents.c:(.text+0xc17): undefined reference to `minor'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:30: make_ext4fs] Error 1
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/make-ext4fs-2015-12-02'
make[3]: *** [Makefile:41: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/make-ext4fs-2015-12-02/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/make-ext4fs'
make[2]: *** [tools/Makefile:130: tools/make-ext4fs/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (58 seconds) ####


real    0m58.626s
user    0m47.952s
sys    0m8.917s
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll make*
-rw-rw-r-- 1 rootroot rootroot 62597 6月   1  2018 make-ext4fs-2015-12-02.tar.gz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zxvf make-ext4fs-2015-12-02.tar.gz 

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ cd make-ext4fs-2015-12-02/
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ ll
总用量 308
drwxr-xr-x 4 rootroot rootroot  4096 12月  3  2015 ./
drwxrwxr-x 9 rootroot rootroot 36864 2月  22 14:38 ../
-rw-r--r-- 1 rootroot rootroot 18693 12月  3  2015 allocate.c
-rw-r--r-- 1 rootroot rootroot  2532 12月  3  2015 allocate.h
-rw-r--r-- 1 rootroot rootroot  3056 12月  3  2015 canned_fs_config.c
-rw-r--r-- 1 rootroot rootroot   892 12月  3  2015 canned_fs_config.h
-rw-r--r-- 1 rootroot rootroot 13838 12月  3  2015 contents.c
-rw-r--r-- 1 rootroot rootroot  1282 12月  3  2015 contents.h
-rw-r--r-- 1 rootroot rootroot  2651 12月  3  2015 crc16.c
-rw-r--r-- 1 rootroot rootroot  2561 12月  3  2015 ext4_extents.h
-rw-r--r-- 1 rootroot rootroot 25998 12月  3  2015 ext4fixup.c
-rw-r--r-- 1 rootroot rootroot   780 12月  3  2015 ext4fixup.h
-rw-r--r-- 1 rootroot rootroot 19002 12月  3  2015 ext4.h
-rw-r--r-- 1 rootroot rootroot  1273 12月  3  2015 ext4_kernel_headers.h
-rw-r--r-- 1 rootroot rootroot  1548 12月  3  2015 ext4_sb.c
-rw-r--r-- 1 rootroot rootroot  1410 12月  3  2015 ext4_sb.h
-rw-r--r-- 1 rootroot rootroot 15368 12月  3  2015 ext4_utils.c
-rw-r--r-- 1 rootroot rootroot  4507 12月  3  2015 ext4_utils.h
-rw-r--r-- 1 rootroot rootroot  6149 12月  3  2015 extent.c
-rw-r--r-- 1 rootroot rootroot  1005 12月  3  2015 extent.h
drwxr-xr-x 3 rootroot rootroot  4096 12月  3  2015 include/
-rw-r--r-- 1 rootroot rootroot 13157 12月  3  2015 indirect.c
-rw-r--r-- 1 rootroot rootroot   992 12月  3  2015 indirect.h
-rw-r--r-- 1 rootroot rootroot  3637 12月  3  2015 jbd2.h
drwxr-xr-x 3 rootroot rootroot  4096 12月  3  2015 libsparse/
-rw-r--r-- 1 rootroot rootroot 14024 12月  3  2015 make_ext4fs.c
-rw-r--r-- 1 rootroot rootroot  4352 12月  3  2015 make_ext4fs_main.c
-rw-r--r-- 1 rootroot rootroot   608 12月  3  2015 Makefile
-rw-r--r-- 1 rootroot rootroot     0 12月  3  2015 MODULE_LICENSE_APACHE2
-rw-r--r-- 1 rootroot rootroot 10690 12月  3  2015 NOTICE
-rw-r--r-- 1 rootroot rootroot  9023 12月  3  2015 sha1.c
-rw-r--r-- 1 rootroot rootroot   668 12月  3  2015 sha1.h
-rw-r--r-- 1 rootroot rootroot  1724 12月  3  2015 uuid.c
-rw-r--r-- 1 rootroot rootroot   765 12月  3  2015 uuid.h
-rw-r--r-- 1 rootroot rootroot  1650 12月  3  2015 wipe.c
-rw-r--r-- 1 rootroot rootroot   954 12月  3  2015 wipe.h
-rw-r--r-- 1 rootroot rootroot  1177 12月  3  2015 xattr.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ find . -name contents.c.
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ find . -name contents.c
./contents.c
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ 

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl/make-ext4fs-2015-12-02$ cd ..
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zcvf make-ext4fs-2015-12-02.tar.gz make-ext4fs-2015-12-02


Z:\wyb\r16\tinav3.0\dl\make-ext4fs-2015-12-02\contents.c
#include


问题4:
    CC recovery.c
    CC region.c
    CC revoke.c
    CC ea_refcount.c
    CC rehash.c
    CC profile.c
    CC prof_err.c
    CC logfile.c
    CC sigcatcher.c
    LD e2fsck
/usr/bin/ld: ../lib/libext2fs.a(ismounted.o): in function `check_mntent_file':
ismounted.c:(.text+0x23d): undefined reference to `major'
/usr/bin/ld: ../lib/libblkid.a(devname.o): in function `probe_all':
devname.c:(.text+0x888): undefined reference to `makedev'
/usr/bin/ld: devname.c:(.text+0xb7e): undefined reference to `makedev'
/usr/bin/ld: devname.c:(.text+0xc5b): undefined reference to `makedev'
collect2: error: ld returned 1 exit status
make[6]: *** [Makefile:409: e2fsck] Error 1
make[6]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/e2fsprogs-1.42.12/e2fsck'
make[5]: *** [Makefile:382: all-progs-recursive] Error 1
make[5]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/e2fsprogs-1.42.12'
make[4]: *** [Makefile:319: all] Error 2
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/e2fsprogs-1.42.12'
make[3]: *** [Makefile:49: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/e2fsprogs-1.42.12/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/e2fsprogs'
make[2]: *** [tools/Makefile:130: tools/e2fsprogs/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (48 seconds) ####


real    0m47.607s
user    0m37.474s
sys    0m11.000s
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll e2fsprogs-1.42.12.tar.gz 
-rw-rw-r-- 1 rootroot rootroot 6381695 6月   1  2018 e2fsprogs-1.42.12.tar.gz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zxvf e2fsprogs-1.42.12.tar.gz 


Z:\wyb\r16\tinav3.0\dl\e2fsprogs-1.42.12\lib\blkid\devname.c
Z:\wyb\r16\tinav3.0\dl\e2fsprogs-1.42.12\lib\ext2fs\ismounted.c
Z:\wyb\r16\tinav3.0\dl\e2fsprogs-1.42.12\misc\ismounted.c
#include


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zcvf e2fsprogs-1.42.12.tar.gz e2fsprogs-1.42.12

问题5:
  CC      lib/libfec.o
In file included from /usr/include/string.h:494,
                 from lib/libfec.c:47:
In function 'memset',
    inlined from 'invert_mat' at lib/libfec.c:421:5,
    inlined from 'build_decode_matrix' at lib/libfec.c:817:9,
    inlined from 'fec_decode' at lib/libfec.c:848:13:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:71:10: warning: '__builtin_memset' specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
   71 |   return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:71:10: warning: '__builtin_memset' specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
  AR      lib/libmtd.a
  LD      mkfs.jffs2
/usr/bin/ld: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.o: in function `write_special_file':
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.c:944: undefined reference to `major'
/usr/bin/ld: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.c:944: undefined reference to `minor'
/usr/bin/ld: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.o: in function `recursive_populate_directory':
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.c:1273: undefined reference to `minor'
/usr/bin/ld: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.c:1273: undefined reference to `major'
/usr/bin/ld: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.c:1263: undefined reference to `minor'
/usr/bin/ld: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.c:1263: undefined reference to `major'
/usr/bin/ld: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.o: in function `interpret_table_entry':
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.c:467: undefined reference to `makedev'
/usr/bin/ld: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.c:503: undefined reference to `makedev'
/usr/bin/ld: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2.c:510: undefined reference to `makedev'
collect2: error: ld returned 1 exit status
make[4]: *** [common.mk:81: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/mkfs.jffs2] Error 1
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2'
make[3]: *** [Makefile:61: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/mtd-utils-1.5.2/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/mtd-utils'
make[2]: *** [tools/Makefile:130: tools/mtd-utils/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (25 seconds) ####


real    0m24.645s
user    0m21.151s
sys    0m4.655s
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 


mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b1.tar.gz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll mtd*.tar.gz
-rw-rw-r-- 1 rootroot rootroot 353960 6月   1  2018 mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b1.tar.gz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll mtd*.tar*
-rw-rw-r-- 1 rootroot rootroot 274162 6月   1  2018 mtdev-1.1.5.tar.bz2
-rw-rw-r-- 1 rootroot rootroot 353960 6月   1  2018 mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b1.tar.gz
-rw-rw-r-- 1 rootroot rootroot 276609 6月   1  2018 mtd-utils-1.5.2.tar.bz2
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll mtd-utils-1.5.2*
-rw-rw-r-- 1 rootroot rootroot 353960 6月   1  2018 mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b1.tar.gz
-rw-rw-r-- 1 rootroot rootroot 276609 6月   1  2018 mtd-utils-1.5.2.tar.bz2
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zxvf mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b1.tar.gz 


Z:\wyb\r16\tinav3.0\dl\mtd-utils-1.5.2\mkfs.ubifs\devtable.c
Z:\wyb\r16\tinav3.0\dl\mtd-utils-1.5.2\mkfs.ubifs\mkfs.ubifs.c
Z:\wyb\r16\tinav3.0\dl\mtd-utils-1.5.2\ubi-utils\libubi.c
Z:\wyb\r16\tinav3.0\dl\mtd-utils-1.5.2\mkfs.jffs2.c

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zcvf mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b1.tar.gz  mtd
mtdev-1.1.5.tar.bz2                                               mtd-utils-1.5.2/                                                  mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b11.tar.gz  mtd-utils-1.5.2.tar.bz2
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zcvf mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b1.tar.gz  mtd
mtdev-1.1.5.tar.bz2                                               mtd-utils-1.5.2/                                                  mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b11.tar.gz  mtd-utils-1.5.2.tar.bz2
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zcvf mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b1.tar.gz  mtd-utils-1.5.2

问题6:(不知道是否有关)
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll mtd*tar*
-rw-rw-r-- 1 rootroot rootroot 274162 6月   1  2018 mtdev-1.1.5.tar.bz2
-rw-rw-r-- 1 rootroot rootroot 353960 6月   1  2018 mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b11.tar.gz
-rw-rw-r-- 1 rootroot rootroot 354821 2月  22 15:03 mtd-utils-1.5.2-aea36417067dade75192bafa03af70b6eb2677b1.tar.gz
-rw-rw-r-- 1 rootroot rootroot 276609 6月   1  2018 mtd-utils-1.5.2.tar.bz2
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar jxvf mtd-utils-1.5.2.tar.bz2 


Z:\wyb\r16\tinav3.0\dl\mtd-utils-1.5.2\mkfs.ubifs\devtable.c
Z:\wyb\r16\tinav3.0\dl\mtd-utils-1.5.2\mkfs.ubifs\mkfs.ubifs.c
Z:\wyb\r16\tinav3.0\dl\mtd-utils-1.5.2\ubi-utils\libubi.c
Z:\wyb\r16\tinav3.0\dl\mtd-utils-1.5.2\mkfs.jffs2.c

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar jcvf mtd-utils-1.5.2.tar.bz2 mtd-utils-1.5.2


问题7:
      -e 's|@''REPLACE_FCHDIR''@|0|g' \
      -e 's|@''REPLACE_GETCWD''@|0|g' \
      -e 's|@''REPLACE_LCHOWN''@|0|g' \
      -e 's|@''REPLACE_LSEEK''@|0|g' \
      < ./unistd.in.h; \
} > unistd.h-t
mv unistd.h-t unistd.h
make  all-am
make[8]: Entering directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/findutils-4.4.2/gnulib/lib'
depbase=`echo areadlink-with-size.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../intl -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT areadlink-with-size.o -MD -MP -MF $depbase.Tpo -c -o areadlink-with-size.o areadlink-with-size.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo c-strstr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../intl -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT c-strstr.o -MD -MP -MF $depbase.Tpo -c -o c-strstr.o c-strstr.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo file-set.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../intl -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT file-set.o -MD -MP -MF $depbase.Tpo -c -o file-set.o file-set.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fpurge.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../intl -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT fpurge.o -MD -MP -MF $depbase.Tpo -c -o fpurge.o fpurge.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo freadahead.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../intl -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT freadahead.o -MD -MP -MF $depbase.Tpo -c -o freadahead.o freadahead.c &&\
mv -f $depbase.Tpo $depbase.Po
freadahead.c: In function 'freadahead':
freadahead.c:64: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread on your system, then report this to bug-gnulib."
make[8]: *** [Makefile:890: freadahead.o] Error 1
make[8]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/findutils-4.4.2/gnulib/lib'
make[7]: *** [Makefile:696: all] Error 2
make[7]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/findutils-4.4.2/gnulib/lib'
make[6]: *** [Makefile:606: all-recursive] Error 1
make[6]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/findutils-4.4.2/gnulib'
make[5]: *** [Makefile:643: all-recursive] Error 1
make[5]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/findutils-4.4.2'
make[4]: *** [Makefile:582: all] Error 2
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/findutils-4.4.2'
make[3]: *** [Makefile:21: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/findutils-4.4.2/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/findutils'
make[2]: *** [tools/Makefile:130: tools/findutils/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (40 seconds) ####

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ find . -name findutils-4.4.2
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ find . -name findutils-4.4.2*
./findutils-4.4.2.tar.gz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zxvf findutils-4.4.2.tar.gz 


#define _IO_ferror_unlocked
Z:\wyb\r16\tinav3.0\dl\findutils-4.4.2\gnulib\lib\freadahead.c

/* Retrieve information about a FILE stream.
   Copyright (C) 2007 Free Software Foundation, Inc.

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see .  */

#include

#define _IO_ferror_unlocked

/* Specification.  */
#include "freadahead.h"

size_t
freadahead (FILE *fp)
{
#if defined _IO_ferror_unlocked     /* GNU libc, BeOS */
  if (fp->_IO_write_ptr > fp->_IO_write_base)
    return 0;
  return fp->_IO_read_end - fp->_IO_read_ptr;
#elif defined __sferror             /* FreeBSD, NetBSD, OpenBSD, MacOS X, Cygwin */
  if ((fp->_flags & __SWR) != 0 || fp->_r < 0)
    return 0;
  return fp->_r;
#elif defined _IOERR                /* AIX, HP-UX, IRIX, OSF/1, Solaris, mingw */
# if defined __sun && defined _LP64 /* Solaris/{SPARC,AMD64} 64-bit */
#  define fp_ ((struct { unsigned char *_ptr; \
             unsigned char *_base; \
             unsigned char *_end; \
             long _cnt; \
             int _file; \
             unsigned int _flag; \
               } *) fp)
  if ((fp_->_flag & _IOWRT) != 0)
    return 0;
  return fp_->_cnt;
# else
  if ((fp->_flag & _IOWRT) != 0)
    return 0;
  return fp->_cnt;
# endif
#elif defined __UCLIBC__            /* uClibc */
# ifdef __STDIO_BUFFERS
  if (fp->__modeflags & __FLAG_WRITING)
    return 0;
  return fp->__bufread - fp->__bufpos;
# else
  return 0;
# endif
#elif defined __QNX__               /* QNX */
  if ((fp->_Mode & 0x2000 /* _MWRITE */) != 0)
    return 0;
  /* fp->_Buf <= fp->_Next <= fp->_Rend */
  return fp->_Rend - fp->_Next;
#else
 #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread on your system, then report this to bug-gnulib."
#endif
}


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zcvf findutils-4.4.2.tar.gz findutils-4.4.2

问题8:
checking for sys/stat.h... -- Performing Test curl_cv_send
make[4]: *** [: mksquashfs.o] Error 1
make[4]: Leaving directory '/home/rootroot/wyb/r16/u3tinav3.0/out/astar-parrot/compile_dir/host/squashfs4.2/squashfs-tools'
make[3]: *** [Makefile:43: /home/rootroot/wyb/r16/u3tinav3.0/out/astar-parrot/compile_dir/host/squashfs4.2/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/u3tinav3.0/tools/squashfs4'
make[2]: *** [tools/Makefile:130: tools/squashfs4/compile] Error 2
make[2]: *** Waiting for unfinished jobs....


patching file squashfs-tools/pseudo.c
touch /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/squashfs4.2/.prepareda109b81b26c1be595aabd2688df0d6f0
(cd /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/squashfs4.2/; if [ -x configure ]; then cp -fpR /home/rootroot/wyb/r16/tinav3.0/scripts/config.{guess,sub} /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/squashfs4.2// &&  bash ./configure CC="gcc" CFLAGS="-O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include " CPPFLAGS="-I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include " LDFLAGS="-L/home/rootroot/wyb/r16/tinav3.0/out/host/lib -L/home/rootroot/wyb/r16/tinav3.0/out/host/usr/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=/home/rootroot/wyb/r16/tinav3.0/out/host --exec-prefix=/home/rootroot/wyb/r16/tinav3.0/out/host --sysconfdir=/home/rootroot/wyb/r16/tinav3.0/out/host/etc --localstatedir=/home/rootroot/wyb/r16/tinav3.0/out/host/var --sbindir=/home/rootroot/wyb/r16/tinav3.0/out/host/bin ; fi )
touch /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/squashfs4.2/.configured
make -C /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/squashfs4.2/squashfs-tools CC="gcc" XZ_SUPPORT=1 LZMA_XZ_SUPPORT=1 XATTR_SUPPORT= LZMA_LIB="/home/rootroot/wyb/r16/tinav3.0/out/host/lib/liblzma.a" EXTRA_CFLAGS="-I/home/rootroot/wyb/r16/tinav3.0/out/host/include" mksquashfs unsquashfs
make[4]: Entering directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/squashfs4.2/squashfs-tools'
gcc  -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT   -c -o mksquashfs.o mksquashfs.c
mksquashfs.c: In function 'create_inode':
mksquashfs.c:1375: error: called object 'major' is not a function
mksquashfs.c:1376: error: called object 'minor' is not a function
mksquashfs.c:1399: error: called object 'major' is not a function
mksquashfs.c:1400: error: called object 'minor' is not a function
mksquashfs.c: In function 'dir_scan2':
mksquashfs.c:3805: warning: implicit declaration of function 'makedev'
make[4]: *** [: mksquashfs.o] Error 1
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/squashfs4.2/squashfs-tools'
make[3]: *** [Makefile:43: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/squashfs4.2/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/squashfs4'
make[2]: *** [tools/Makefile:130: tools/squashfs4/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (06:12 (mm:ss)) ####

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ ll squash*
-rw-rw-r-- 1 rootroot rootroot 133173 6月   1  2018 squashfs4.2.tar.gz
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zxvf squashfs4.2.tar.gz 

Z:\wyb\r16\tinav3.0\dl\squashfs4.2\squashfs-tools\mksquashfs.c
Z:\wyb\r16\tinav3.0\dl\squashfs4.2\squashfs-tools\unsquashfs.c

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/dl$ tar zcvf squashfs4.2.tar.gz squashfs4.2


问题9:ubuntu20.04的gcc是gcc 9版本,会出现头文件的异常:
In file included from /usr/include/stdio.h:869,
                 from scripts/kconfig/zconf.tab.c:84:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 13 and 4119 bytes into a destination of size 4097
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
*** Default configuration is based on 'sandbox_defconfig'
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10'
make -C /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10 tools-only  HOSTCFLAGS="-I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include " HOSTLDFLAGS="-L/home/rootroot/wyb/r16/tinav3.0/out/host/lib -L/home/rootroot/wyb/r16/tinav3.0/out/host/usr/lib "
make[4]: Entering directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10'
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk
In file included from include/linux/compiler.h:54,
                 from /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/arch/sandbox/include/asm/bitops.h:20,
                 from include/linux/bitops.h:110,
                 from /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/common.h:20:
include/linux/compiler-gcc.h:114:1: fatal error: linux/compiler-gcc9.h: No such file or directory
  114 | #include gcc_header(__GNUC__)
      | ^~~~
compilation terminated.
make[6]: *** [/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/scripts/Makefile.autoconf:64: include/autoconf.mk] Error 1
make[5]: *** [/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/Makefile:464: silentoldconfig] Error 1
make[4]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10'
make[3]: *** [Makefile:48: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/mkimage'
make[2]: *** [tools/Makefile:130: tools/mkimage/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (13 seconds) ####

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 


方法一:使用gcc4.4
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ which gcc
/usr/bin/gcc
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~$ cd /usr/bin/
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ ls -al gcc*
lrwxrwxrwx 1 root root      5 2月  21 18:41 gcc -> gcc-9
-rwxr-xr-x 1 root root 255080 3月  20  2014 gcc-4.4
lrwxrwxrwx 1 root root     22 2月   4 01:15 gcc-9 -> x86_64-linux-gnu-gcc-9
lrwxrwxrwx 1 root root      8 2月  21 18:41 gcc-ar -> gcc-ar-9
lrwxrwxrwx 1 root root     25 2月   4 01:15 gcc-ar-9 -> x86_64-linux-gnu-gcc-ar-9
lrwxrwxrwx 1 root root      8 2月  21 18:41 gcc-nm -> gcc-nm-9
lrwxrwxrwx 1 root root     25 2月   4 01:15 gcc-nm-9 -> x86_64-linux-gnu-gcc-nm-9
lrwxrwxrwx 1 root root     12 2月  21 18:41 gcc-ranlib -> gcc-ranlib-9
lrwxrwxrwx 1 root root     29 2月   4 01:15 gcc-ranlib-9 -> x86_64-linux-gnu-gcc-ranlib-9
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ ll gcc*
lrwxrwxrwx 1 root root      5 2月  21 18:41 gcc -> gcc-9*
-rwxr-xr-x 1 root root 255080 3月  20  2014 gcc-4.4*
lrwxrwxrwx 1 root root     22 2月   4 01:15 gcc-9 -> x86_64-linux-gnu-gcc-9*
lrwxrwxrwx 1 root root      8 2月  21 18:41 gcc-ar -> gcc-ar-9*
lrwxrwxrwx 1 root root     25 2月   4 01:15 gcc-ar-9 -> x86_64-linux-gnu-gcc-ar-9*
lrwxrwxrwx 1 root root      8 2月  21 18:41 gcc-nm -> gcc-nm-9*
lrwxrwxrwx 1 root root     25 2月   4 01:15 gcc-nm-9 -> x86_64-linux-gnu-gcc-nm-9*
lrwxrwxrwx 1 root root     12 2月  21 18:41 gcc-ranlib -> gcc-ranlib-9*
lrwxrwxrwx 1 root root     29 2月   4 01:15 gcc-ranlib-9 -> x86_64-linux-gnu-gcc-ranlib-9*
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.2.1-28ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.2.1 20200203 (Ubuntu 9.2.1-28ubuntu1) 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.2.1-28ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.2.1 20200203 (Ubuntu 9.2.1-28ubuntu1) 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ ll gcc*
lrwxrwxrwx 1 root root      5 2月  21 18:41 gcc -> gcc-9*
-rwxr-xr-x 1 root root 255080 3月  20  2014 gcc-4.4*
lrwxrwxrwx 1 root root     22 2月   4 01:15 gcc-9 -> x86_64-linux-gnu-gcc-9*
lrwxrwxrwx 1 root root      8 2月  21 18:41 gcc-ar -> gcc-ar-9*
lrwxrwxrwx 1 root root     25 2月   4 01:15 gcc-ar-9 -> x86_64-linux-gnu-gcc-ar-9*
lrwxrwxrwx 1 root root      8 2月  21 18:41 gcc-nm -> gcc-nm-9*
lrwxrwxrwx 1 root root     25 2月   4 01:15 gcc-nm-9 -> x86_64-linux-gnu-gcc-nm-9*
lrwxrwxrwx 1 root root     12 2月  21 18:41 gcc-ranlib -> gcc-ranlib-9*
lrwxrwxrwx 1 root root     29 2月   4 01:15 gcc-ranlib-9 -> x86_64-linux-gnu-gcc-ranlib-9*
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ ll g++*
lrwxrwxrwx 1 root root      5 2月  21 18:41 g++ -> g++-9*
-rwxr-xr-x 1 root root 259176 3月  20  2014 g++-4.4*
lrwxrwxrwx 1 root root     22 2月   4 01:15 g++-9 -> x86_64-linux-gnu-g++-9*
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ sudo ln -s gcc-4.4 gcc
[sudo] rootroot 的密码: 
ln: 无法创建符号链接'gcc': 文件已存在
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ sudo rm gcc
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ sudo rm g++
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ sudo ln -s gcc-4.4 gcc
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ sudo ln -s g++-4.4 g++
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ gcc -version
gcc: unrecognized option '-version'
gcc: no input files
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ gcc --version
gcc (Ubuntu/Linaro 4.4.7-8ubuntu1) 4.4.7
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ g++ --version
g++ (Ubuntu/Linaro 4.4.7-8ubuntu1) 4.4.7
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.7-8ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --disable-libmudflap --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.7 (Ubuntu/Linaro 4.4.7-8ubuntu1) 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ g++ -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.7-8ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --disable-libmudflap --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.7 (Ubuntu/Linaro 4.4.7-8ubuntu1) 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:/usr/bin$ 

方法二:(可选)
In file included from include/linux/compiler.h:54,
                 from /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/arch/sandbox/include/asm/bitops.h:20,
                 from include/linux/bitops.h:110,
                 from /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/common.h:20:
include/linux/compiler-gcc.h:114:1: fatal error: linux/compiler-gcc9.h: No such file or directory
  114 | #include gcc_header(__GNUC__)
      | ^~~~
compilation terminated.
make[6]: *** [/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/scripts/Makefile.autoconf:64: include/autoconf.mk] Error 1
make[5]: *** [/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/Makefile:464: silentoldconfig] Error 1
make[4]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10'
make[3]: *** [Makefile:48: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/mkimage'
make[2]: *** [tools/Makefile:130: tools/mkimage/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (13 seconds) ####

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ cd /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include$ ll compi*.h
-rw-r--r-- 1 rootroot rootroot 3489 2月  21 22:27 compiler.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include$ ll *.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include$ cd -
/home/rootroot/wyb/r16/tinav3.0
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ find . -name compiler-gcc.h
./out/astar-parrot/compile_dir/host/u-boot-2014.10/include/linux/compiler-gcc.h
./lichee/linux-3.4/include/linux/compiler-gcc.h
./lichee/linux-4.9/include/linux/compiler-gcc.h
./lichee/brandy/u-boot-2014.07/include/linux/compiler-gcc.h
./lichee/brandy/u-boot-2011.09/include/linux/compiler-gcc.h
./lichee/linux-3.10/include/linux/compiler-gcc.h
./lichee/linux-4.4/include/linux/compiler-gcc.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ out/astar-parrot/compile_dir/host/u-boot-2014.10/include/linux/
-bash: out/astar-parrot/compile_dir/host/u-boot-2014.10/include/linux/: 是一个目录
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ cd out/astar-parrot/compile_dir/host/u-boot-2014.10/include/linux/
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/linux$ ll com*.h
-rw-r--r-- 1 rootroot rootroot 10975 10月 14  2014 compat.h
-rw-r--r-- 1 rootroot rootroot   320 10月 14  2014 compiler-clang.h
-rw-r--r-- 1 rootroot rootroot   635 10月 14  2014 compiler-gcc3.h
-rw-r--r-- 1 rootroot rootroot  2885 2月  21 22:27 compiler-gcc4.h
-rw-r--r-- 1 rootroot rootroot  2455 2月  21 22:27 compiler-gcc5.h
-rw-r--r-- 1 rootroot rootroot  4347 10月 14  2014 compiler-gcc.h
-rw-r--r-- 1 rootroot rootroot 11347 10月 14  2014 compiler.h
-rw-r--r-- 1 rootroot rootroot  1047 10月 14  2014 compiler-intel.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/linux$ cp compiler-gcc5.h compiler-gcc9.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/linux$ cd -
/home/rootroot/wyb/r16/tinav3.0
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ make -j1


问题10:rsa-sign.c
  WRAP    tools/lib/libfdt/fdt_strerror.c
  HOSTCC  tools/lib/libfdt/fdt_strerror.o
  WRAP    tools/lib/libfdt/fdt_wip.c
  HOSTCC  tools/lib/libfdt/fdt_wip.o
  WRAP    tools/lib/md5.c
  HOSTCC  tools/lib/md5.o
In file included from /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/compiler.h:46,
                 from /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/libfdt_env.h:12,
                 from :0:
/home/rootroot/wyb/r16/tinav3.0/out/host/include/byteswap.h:2: warning: #include_next is a GCC extension
In file included from /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/md5.c:34,
                 from tools/lib/md5.c:1:
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/u-boot/md5.h:17: warning: ISO C doesn't support unnamed structs/unions
  WRAP    tools/lib/rsa/rsa-checksum.c
  HOSTCC  tools/lib/rsa/rsa-checksum.o
  WRAP    tools/lib/rsa/rsa-sign.c
  HOSTCC  tools/lib/rsa/rsa-sign.o
In file included from tools/lib/rsa/rsa-sign.c:1:
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_remove':
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:156: warning: 'ERR_remove_thread_state' is deprecated (declared at /usr/include/openssl/err.h:260)
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_get_exponent':
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:279: error: dereferencing pointer to incomplete type
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:282: error: dereferencing pointer to incomplete type
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:284: error: dereferencing pointer to incomplete type
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:289: error: dereferencing pointer to incomplete type
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_get_params':
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:340: error: dereferencing pointer to incomplete type
make[5]: *** [scripts/Makefile.host:134: tools/lib/rsa/rsa-sign.o] Error 1
make[4]: *** [Makefile:1195: tools-only] Error 2
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10'
make[3]: *** [Makefile:48: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/mkimage'
make[2]: *** [tools/Makefile:130: tools/mkimage/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (04:53 (mm:ss)) ####

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 

https://blog.csdn.net/zmlovelx/article/details/80904109
编译国芯GX8010 SDK笔记

针对openwrt编译对上openssl-1.1.x版本出错问题,
(由于ubuntu20.04是抢鲜版本/测试版本,就不降级了!)
一种方法就是降openssl版本到1.0,

另外一种方法下面讲
1)解决:

https://git.openwrt.org/?p=openwrt/openwrt.git;a=tree;f=tools/mkimage/patches;h=ee5e92e913e487f63a5d8a82ebd43ccdd7b0a3f7;hb=70b104f98c0657323b28fce140b73a94bf3eb756
下载210那个patch并放到
tools/mkimage/patchs/210-openssl-1.1.x-compat.patch

讲全部的文件修正之后还有有点问题:
(虽然惠普 星14所使用的AMD RYZEN5 3500U是4核心支持8线程的,但是使用make -j8编译之后会卡死,不知道是Makefile的配置异常。还是其他问题)
make -j4
(出错之后使用单线程查错)
make -j1

问题一:
base.Tpo -c -o fclose.o fclose.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fcntl.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99  -I.   -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT fcntl.o -MD -MP -MF $depbase.Tpo -c -o fcntl.o fcntl.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fflush.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99  -I.   -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT fflush.o -MD -MP -MF $depbase.Tpo -c -o fflush.o fflush.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo fpurge.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99  -I.   -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT fpurge.o -MD -MP -MF $depbase.Tpo -c -o fpurge.o fpurge.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo freadahead.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99  -I.   -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include   -O2 -I/home/rootroot/wyb/r16/tinav3.0/out/host/include -I/home/rootroot/wyb/r16/tinav3.0/out/host/usr/include  -MT freadahead.o -MD -MP -MF $depbase.Tpo -c -o freadahead.o freadahead.c &&\
mv -f $depbase.Tpo $depbase.Po
freadahead.c: In function 'freadahead':
freadahead.c:91: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
make[7]: *** [Makefile:1837: freadahead.o] Error 1
make[7]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17/lib'
make[6]: *** [Makefile:1602: all] Error 2
make[6]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17/lib'
make[5]: *** [Makefile:1506: all-recursive] Error 1
make[5]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17'
make[4]: *** [Makefile:1461: all] Error 2
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17'
make[3]: *** [Makefile:29: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/m4'
make[2]: *** [tools/Makefile:130: tools/m4/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (8 seconds) ####

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 


sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h


rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ cd out/astar-parrot/compile_dir/host/m4-1.4.17
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17$ ll
总用量 2448
drwxr-xr-x 10 rootroot rootroot    4096 2月  22 16:54 ./
drwxr-xr-x 20 rootroot rootroot    4096 2月  22 16:50 ../
-rw-r--r--  1 rootroot rootroot     863 9月  22  2013 acinclude.m4
-rw-r--r--  1 rootroot rootroot   47617 9月  22  2013 aclocal.m4
-rw-r--r--  1 rootroot rootroot    2448 9月  22  2013 AUTHORS
-rw-r--r--  1 rootroot rootroot    2584 9月  22  2013 BACKLOG
-rwxr-xr-x  1 rootroot rootroot  142895 9月  22  2013 bootstrap*
drwxr-xr-x  3 rootroot rootroot    4096 2月  22 14:18 build-aux/
-rw-r--r--  1 rootroot rootroot   15283 9月  22  2013 c-boxes.el
-rw-r--r--  1 rootroot rootroot    1889 9月  22  2013 cfg.mk
-rw-r--r--  1 rootroot rootroot  194892 9月  22  2013 ChangeLog
drwxr-xr-x  2 rootroot rootroot   12288 2月  22 16:50 checks/
-rwxrwxr-x  1 rootroot rootroot   43434 6月   1  2018 config.guess*
-rw-r--r--  1 rootroot rootroot  426287 2月  22 16:50 config.log
-rwxr-xr-x  1 rootroot rootroot   75377 2月  22 16:50 config.status*
-rwxrwxr-x  1 rootroot rootroot   36132 6月   1  2018 config.sub*
-rwxr-xr-x  1 rootroot rootroot 1089430 9月  22  2013 configure*
-rw-r--r--  1 rootroot rootroot    7979 9月  22  2013 configure.ac
-rw-r--r--  1 rootroot rootroot       0 2月  22 16:50 .configured
-rw-r--r--  1 rootroot rootroot   35147 9月  22  2013 COPYING
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 16:50 doc/
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 16:50 examples/
-rw-r--r--  1 rootroot rootroot    4573 9月  22  2013 GNUmakefile
-rw-r--r--  1 rootroot rootroot   15752 9月  22  2013 INSTALL
drwxr-xr-x  5 rootroot rootroot   16384 2月  22 16:54 lib/
drwxr-xr-x  2 rootroot rootroot    4096 2月  22 14:18 m4/
-rw-r--r--  1 rootroot rootroot   62890 9月  22  2013 maint.mk
-rw-r--r--  1 rootroot rootroot   55064 2月  22 16:50 Makefile
-rw-r--r--  1 rootroot rootroot    1936 9月  22  2013 Makefile.am
-rw-r--r--  1 rootroot rootroot   69291 9月  22  2013 Makefile.in
-rw-r--r--  1 rootroot rootroot   30087 9月  22  2013 NEWS
-rw-r--r--  1 rootroot rootroot       0 2月  22 16:50 .preparedd2c71c83f94494e834bc09b8c699a30d
-rw-r--r--  1 rootroot rootroot       0 2月  22 16:50 .preparedd2c71c83f94494e834bc09b8c699a30d_check
-rw-r--r--  1 rootroot rootroot       7 9月  22  2013 .prev-version
-rw-r--r--  1 rootroot rootroot    3983 9月  22  2013 README
drwxr-xr-x  3 rootroot rootroot    4096 2月  22 16:50 src/
-rw-r--r--  1 rootroot rootroot      29 2月  22 16:50 stamp-h
-rw-r--r--  1 rootroot rootroot       7 9月  22  2013 .tarball-version
drwxr-xr-x  3 rootroot rootroot   16384 2月  22 16:50 tests/
-rw-r--r--  1 rootroot rootroot    6438 9月  22  2013 THANKS
-rw-r--r--  1 rootroot rootroot    2062 9月  22  2013 TODO
-rw-r--r--  1 rootroot rootroot       7 9月  22  2013 .version
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17$ sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17$ echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/m4-1.4.17$ cd -
/home/rootroot/wyb/r16/tinav3.0
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 

问题2:
make -j4
make -j1


  HOSTCC  tools/lib/libfdt/fdt_strerror.o
  HOSTCC  tools/lib/libfdt/fdt_wip.o
  HOSTCC  tools/lib/md5.o
In file included from /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/compiler.h:46,
                 from /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/libfdt_env.h:12,
                 from :0:
/home/rootroot/wyb/r16/tinav3.0/out/host/include/byteswap.h:2: warning: #include_next is a GCC extension
In file included from /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/md5.c:34,
                 from tools/lib/md5.c:1:
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/include/u-boot/md5.h:17: warning: ISO C doesn't support unnamed structs/unions
  HOSTCC  tools/lib/rsa/rsa-checksum.o
  HOSTCC  tools/lib/rsa/rsa-sign.o
In file included from tools/lib/rsa/rsa-sign.c:1:
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_remove':
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:156: warning: 'ERR_remove_thread_state' is deprecated (declared at /usr/include/openssl/err.h:260)
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_get_exponent':
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:279: error: dereferencing pointer to incomplete type
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:282: error: dereferencing pointer to incomplete type
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:284: error: dereferencing pointer to incomplete type
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:289: error: dereferencing pointer to incomplete type
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_get_params':
/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:340: error: dereferencing pointer to incomplete type
make[5]: *** [scripts/Makefile.host:134: tools/lib/rsa/rsa-sign.o] Error 1
make[4]: *** [Makefile:1195: tools-only] Error 2
make[4]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10'
make[3]: *** [Makefile:48: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/compile_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0/tools/mkimage'
make[2]: *** [tools/Makefile:130: tools/mkimage/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make[1]: *** [tools/Makefile:128: /home/rootroot/wyb/r16/tinav3.0/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/r16/tinav3.0'
make: *** [/home/rootroot/wyb/r16/tinav3.0/build/toplevel.mk:274:world] 错误 2

#### make failed to build some targets (03:34 (mm:ss)) ####


real    3m33.501s
user    2m46.356s
sys    0m35.835s
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 

rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ 
rootroot@rootroot-HP-Laptop-14s-dp0xxx:~/wyb/r16/tinav3.0$ time(make -j4)

你可能感兴趣的:(杂质)