全志tina v3.0系统编译时的时间错误的解决(全志SDK的维护BUG)
全志tina v3.0系统编译时的时间错误的解决(全志SDK的维护BUG)
2018/6/13 15:52
版本:V1.0
开发板:SC3817R
SDK:tina v3.0
1、01原始编译全志r16平台tinav3.0系统:
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb$ md5sum tinav3.0_wybpack_20180602_2239.tar.gz
7f43008be7dcc32e6e370ce8f280e355 tinav3.0_wybpack_20180602_2239.tar.gz
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb$
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb$ tar zxvf tinav3.0_wybpack_20180602_2239.tar.gz
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb$
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb$ mv tinav3.0 22cello_pro-tinav3.0
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb$
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb$
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb$ cd 22cello_pro-tinav3.0/
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$ ll
总用量 248
drwxrwxr-x 19 rootroot rootroot 4096 6? 13 16:14 ./
drwxrwxr-x 7 rootroot rootroot 4096 6? 13 16:14 ../
drwxrwxr-x 4 rootroot rootroot 4096 6? 1 18:17 build/
drwxrwxr-x 3 rootroot rootroot 4096 6? 1 18:17 config/
-rwxrwxr-x 1 rootroot rootroot 118649 6? 12 17:08 .config*
-r--r--r-- 1 rootroot rootroot 647 6? 1 18:17 Config.in
drwxrwxr-x 3 rootroot rootroot 36864 6? 1 18:17 dl/
drwxrwxr-x 3 rootroot rootroot 4096 6? 1 18:17 docs/
drwxrwxr-x 7 rootroot rootroot 4096 6? 1 18:19 lichee/
drwxrwxr-x 3 rootroot rootroot 4096 6? 12 16:20 logs/
-r--r--r-- 1 rootroot rootroot 82 6? 1 18:17 Makefile
drwxrwxr-x 4 rootroot rootroot 4096 6? 12 16:21 out/
drwxrwxr-x 24 rootroot rootroot 4096 6? 1 18:19 package/
drwxrwxr-x 4 rootroot rootroot 4096 6? 1 18:19 prebuilt/
drwxrwxr-x 7 rootroot rootroot 4096 6? 1 17:59 repo/
drwxrwxr-x 7 rootroot rootroot 4096 6? 1 18:17 .repo/
-r-xr-xr-x 1 rootroot rootroot 15028 6? 1 18:17 rules.mk*
drwxrwxr-x 6 rootroot rootroot 4096 6? 12 17:07 scripts/
drwxrwxr-x 7 rootroot rootroot 4096 6? 1 18:19 target/
drwxrwxr-x 15 rootroot rootroot 4096 6? 1 18:19 tinav3.0/
drwxrwxr-x 3 rootroot rootroot 4096 6? 12 17:13 tmp/
drwxrwxr-x 12 rootroot rootroot 4096 6? 1 18:19 toolchain/
drwxrwxr-x 66 rootroot rootroot 4096 6? 1 18:19 tools/
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-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
(请严重注意:lunch之后的选项是环境依赖的,请选择cello_pro-tina前的实际数值!)
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-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?22
============================================
PLATFORM_VERSION_CODENAME=Neptune
PLATFORM_VERSION=3.0.0
PRODUCT_VERSION=v2.1
TARGET_PRODUCT=cello_pro
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=Linux-4.13.0-45-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=5A0C0971
TARGET_OUT_DIR=out/cello-pro
============================================
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$ make -j4
编译过程中,如果碰到需要选择的,一律选择:n。
make[3]: Entering directory '/home/rootroot/wyb/22cello_pro-tinav3.0/package/utils/bzip2'
make[3]: Leaving directory '/home/rootroot/wyb/22cello_pro-tinav3.0/package/utils/bzip2'
make[3]: Entering directory '/home/rootroot/wyb/22cello_pro-tinav3.0/package/lang/python'
make -C /home/rootroot/wyb/22cello_pro-tinav3.0/out/cello-pro/compile_dir/target/host/Python-2.7.11
make[4]: Entering directory '/home/rootroot/wyb/22cello_pro-tinav3.0/out/cello-pro/compile_dir/target/host/Python-2.7.11'
gcc -pthread -c -fno-strict-aliasing -O2 -I/home/rootroot/wyb/22cello_pro-tinav3.0/out/host/include -I/home/rootroot/wyb/22cello_pro-tinav3.0/out/host/usr/include -I/home/rootroot/wyb/22cello_pro-tinav3.0/out/cello-pro/staging_dir/target/host/include -I/usr/include/ncursesw -I/usr/include/ncurses -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/home/rootroot/wyb/22cello_pro-tinav3.0/out/host/include -I/home/rootroot/wyb/22cello_pro-tinav3.0/out/host/usr/include -I/home/rootroot/wyb/22cello_pro-tinav3.0/out/cello-pro/staging_dir/target/host/include -DPy_BUILD_CORE \
-DSVNVERSION="\"`LC_ALL=C echo Unversioned directory`\"" \
-DHGVERSION="\"`LC_ALL=C `\"" \
-DHGTAG="\"`LC_ALL=C `\"" \
-DHGBRANCH="\"`LC_ALL=C `\"" \
-o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
./Modules/getbuildinfo.c: In function 'Py_GetBuildInfo':
./Modules/getbuildinfo.c:55:19: error: environment variable SOURCE_DATE_EPOCH must expand to a non-negative integer less than or equal to 253402300799
DATE, TIME);
^
Makefile:629: recipe for target 'Modules/getbuildinfo.o' failed
make[4]: *** [Modules/getbuildinfo.o] Error 1
make[4]: Leaving directory '/home/rootroot/wyb/22cello_pro-tinav3.0/out/cello-pro/compile_dir/target/host/Python-2.7.11'
Makefile:241: recipe for target '/home/rootroot/wyb/22cello_pro-tinav3.0/out/cello-pro/compile_dir/target/host/Python-2.7.11/.built' failed
make[3]: *** [/home/rootroot/wyb/22cello_pro-tinav3.0/out/cello-pro/compile_dir/target/host/Python-2.7.11/.built] Error 2
make[3]: Leaving directory '/home/rootroot/wyb/22cello_pro-tinav3.0/package/lang/python'
package/Makefile:192: recipe for target 'package/lang/python/host/compile' failed
make[2]: *** [package/lang/python/host/compile] Error 2
make[2]: Leaving directory '/home/rootroot/wyb/22cello_pro-tinav3.0'
package/Makefile:189: recipe for target '/home/rootroot/wyb/22cello_pro-tinav3.0/out/cello-pro/staging_dir/target/stamp/.package_compile' failed
make[1]: *** [/home/rootroot/wyb/22cello_pro-tinav3.0/out/cello-pro/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/rootroot/wyb/22cello_pro-tinav3.0'
/home/rootroot/wyb/22cello_pro-tinav3.0/build/toplevel.mk:272: recipe for target 'world' failed
make: *** [world] Error 2
#### make failed to build some targets (11:31 (mm:ss)) ####
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$
2、解决方法:
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$ find . -name getbuildinfo.c
./out/cello-pro/compile_dir/target/host/Python-2.7.11/Modules/getbuildinfo.c
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$
虽然找到了getbuildinfo.c,但是只是编译生成的文件!
(切记!只能修改,不能替换。否则继续出错的!)
L:\wyb\22cello_pro-tinav3.0\scripts\get_source_date_epoch.sh
try_git() {
[ -e .git ] || return 1
SOURCE_DATE_EPOCH="$(git log -1 --format=format:%ct)"
[ -n "$SOURCE_DATE_EPOCH" ]
}
修改为:
try_git() {
[ -e target/.git ] || return 1
SOURCE_DATE_EPOCH="$(cd target;git log -1 --format=format:%ct)"
[ -n "$SOURCE_DATE_EPOCH" ]
}
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$ make -j8
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$ pack -d
rootroot@rootroot-Lenovo-IdeaPad-S410:~/wyb/22cello_pro-tinav3.0$ pack
全志tina v3.0系统编译时的时间错误的解决(全志SDK的维护BUG)的更多相关文章
- VS2015+OpenGL4.0开发编译时弹出错误:glaux.lib(tk.obj) : error LNK2019: 无法解析的外部符号 _sscanf,该符号在函数 _GetRegistrySysColors@8 中被引用
一.问题描述: VS2015+OpenGL4.0开发编译时弹出如下所示的错误: 1>glaux.lib(tk.obj) : error LNK2019: 无法解析的外部符号 _sscanf,该符 ...
- ubuntu下编译时遇到的错误及解决方式
1.错误展示: hangma@ubuntu:~/test/test/protest/stack_test$ gcc -c my_stack.c -o my_stack.o In file inclu ...
- iOS开发笔记:编译时出现的错误和解决办法
1."std::ios_base::Init::~Init()", referenced from 出现这样的编译问题,是需要再加进libstdc++.dylib和libstdc+ ...
- 安装Oracle客户端时,检查系统要求时状态为错误的解决办法
这是我自己安装oracle11g至win7的错误记录: 正在检查操作系统要求... 要求的结果: 5.0,5.1,5.2,6.0 之一 实际结果: 6.1 我换了 10g,11g从32bit到64bi ...
- VS2017新建或拷贝项目编译时出现:找不到 Windows SDK 版本8.1.请安装所需的版本的 Windows SDK
VS2017新建或拷贝项目编译时出现:找不到 Windows SDK 版本8.1.请安装所需的版本的 Windows SDK 或者在项目属性页的问题解决方案 解决方法: 右击项目解决方案, 选择:重定 ...
- Win7系统打开防火墙出现0x6D9错误的解决方法
防火墙是Windows系统内的一道屏障,开启防火墙可以对系统起到一定的保护作用,可以说非常重要.但是有些Win7系统用户在开启防火墙时会被系统提示出现0x6D9的错误代码,从而不能打开防火墙. 当我们 ...
- Xcode常见的编译、运行等错误的解决
Xcode常见的编译.运行等错误的解决 项目没找到Info.plist的错误 The solution for this particular instance of the error was “I ...
- Apache commons StringUtils 在运行时出现NoClassDefError错误的解决方法
Apache commons StringUtils 在运行时出现NoClassDefError错误的解决方法 在用tomcat运行WEB项目,并且使用了StringUtils包的时候,会出现 jav ...
- ubuntu64位系统编译时头文件找不到的问题(可以查看g++ -v路径,设置export C_INCLUDE_PATH,CPLUS_INCLUDE_PATH)
今天编译webrtc时出现以下错误: ninja -C out/Debug Allninja: Entering directory `out/Debug'[1/6] CXX obj/talk/app ...
随机推荐
- 立面图 平面图 剖面图 CAD
http://www.qinxue.com/88.html http://www.xsteach.com/course/2855 前后左右各个侧面的外部投影图——立面图:对建筑物各个侧面进行投影所得到 ...
- jmeter的Classpath即类或者jar包的搜索路径设置
对于master-slave模式,插件和依赖都需要放到slave上才能生效,并且需要重启slave使插件生效 查看配置文件:apache-jmeter-3.1/bin/jmeter.propertie ...
- Django学习系列之Cookie、Session
Cookie和Session介绍 cookie 保存在客户端 session 保存在服务端 session依赖于cookie,比如服务端想往客户端写东西的时候就把cookie写到客户端浏览器 djan ...
- HDU 4968(杭电多校#9 1009题)Improving the GPA (瞎搞)
题目地址:HDU 4968 这题的做法是全部学科的学分情况枚举,然后推断在这样的情况下是否会符合平均分. 直接暴力枚举就可以. 代码例如以下: #include <cstring> #in ...
- 破碎纪念---记第二次Nexus4换屏
四太子的屏幕太易碎了.去年九月份在美国买的,十月便碎了,十二月修好,前几天又摔碎了. 本着对此机的喜爱,今天就进行了第二次换屏. 用同事的话说,如今已经是熟练工种了. 先来看看破碎景象: 右下角破碎, ...
- YTU 2697: 血型统计
2697: 血型统计 时间限制: 1 Sec 内存限制: 128 MB 提交: 405 解决: 164 题目描述 黑猫警长在犯罪现场发现了一些血迹,现已经委托检验机构确定了血型,需要统计各种血型的 ...
- Apache Ignite——集合分布式缓存、计算、存储的分布式框架
Apache Ignite内存数据组织平台是一个高性能.集成化.混合式的企业级分布式架构解决方案,核心价值在于可以帮助我们实现分布式架构透明化,开发人员根本不知道分布式技术的存在,可以使分布式缓存.计 ...
- python 获取当前文件夹路径及父级目录的几种方法
获取当前文件夹路径及父级目录: import os current_dir = os.path.abspath(os.path.dirname(__file__)) print(current_dir ...
- vue watcher
观察 Watchers 虽然计算属性在大多数情况下更合适,但有时也需要一个自定义的 watcher .这是为什么 Vue 提供一个更通用的方法通过watch 选项,来响应数据的变化.当你想要在数据变化 ...
- js moment.js日期操作类 datetime,日期操作,dayjs
http://momentjs.com/ JS时间处理插件MomentJS https://juejin.im/post/5a2bdc55f265da432b4abf5e Day.js 2kB超轻量时 ...