009全志R16平台tinav3.0下编译不过的问题

2018/11/13 11:39

版本:V1.0

开发板:SC3817R

SDK:tina v3.0

1、01原始编译全志r16平台tinav3.0系统:

rootroot@cm88:~$ cd /home/wwt

rootroot@cm88:/home/wwt$

rootroot@cm88:~$ cd /home/wwt

rootroot@cm88:/home/wwt$

rootroot@cm88:/home/wwt$

rootroot@cm88:/home/wwt$ md5sum tina_v3.0_20180606_1711git.tar.gz

ebf7ea460473f13a7f64248ed61cf998  tina_v3.0_20180606_1711git.tar.gz

rootroot@cm88:/home/wwt$

rootroot@cm88:/home/wwt$ tar zxvf tina_v3.0_20180606_1711git.tar.gz

rootroot@cm88:/home/wwt$

rootroot@cm88:/home/wwt$ cd tina_v3.0/

rootroot@cm88:/home/wwt/tina_v3.0$

rootroot@cm88:/home/wwt/tina_v3.0$

rootroot@cm88:/home/wwt/tina_v3.0$ source build/envsetup.sh

(请严重注意:lunch之后的选项是环境依赖的,请选择astar_parrot-tina前的实际数值!)

rootroot@cm88:/home/wwt/tina_v3.0$ lunch

You're building on Linux

Lunch menu... pick a combo:

5. astar_parrot-tina

Which would you like?5

rootroot@cm88:/home/wwt/tina_v3.0$ make -j12

rootroot@cm88:/home/wwt/tina_v3.0$ pack -d

2、起因:服务器上最初是可以编译全志R系列的tina/Android系统的。但是突然编译不了tina v3.0的SDK了(tina v2.5也异常),但是可以编译tina v2.1和Android。

出错现象:

rootroot@cm88:/home/wwt/tina_v3.0.4$ make -j12

[ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestVC.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesStringWidget.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackTarBZip2Generator.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGlobalVC.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestCVS.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSVN.cxx.o

[ 97%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackTarCompressGenerator.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestBZR.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGIT.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesWidget.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackZIPGenerator.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHG.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestP4.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPack7zGenerator.cxx.o

[ 98%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackDebGenerator.cxx.o

[ 99%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackRPMGenerator.cxx.o

[ 99%] Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o

[ 99%] Linking CXX static library libCTestLib.a

[100%] Linking CXX executable ../bin/ccmake

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

[100%] Built target CTestLib

make[6]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

Scanning dependencies of target ctest

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

make[6]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

[100%] Building CXX object Source/CMakeFiles/ctest.dir/ctest.cxx.o

[100%] Linking CXX static library libCPackLib.a

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

[100%] Built target CPackLib

make[6]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

Scanning dependencies of target cpack

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

make[6]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

[100%] Building CXX object Source/CMakeFiles/cpack.dir/CPack/cpack.cxx.o

[100%] Linking CXX executable ../bin/ctest

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

[100%] Built target ccmake

[100%] Linking CXX executable ../bin/cpack

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

[100%] Built target ctest

make[6]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

[100%] Built target cpack

make[5]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

make[4]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3'

touch /home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/cmake-3.4.3/.built

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/cmake'

make[2]: Leaving directory `/home/wwt/tina_v3.0.4'

make[1]: *** [/home/wwt/tina_v3.0.4/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2

make[1]: Leaving directory `/home/wwt/tina_v3.0.4'

Build failed - please re-run with -j1 to see the real error message

make: *** [world] 错误 1

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

rootroot@cm88:/home/wwt/tina_v3.0.4$

rootroot@cm88:/home/wwt/tina_v3.0.4$ make -j1

make[4]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8'

Making all in src

make[5]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/src'

x86_64-linux-gnu-g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.8\" -DPACKAGE_STRING=\"patchelf\ 0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.8\" -I.   -I/home/wwt/tina_v3.0.4/out/host/include -I/home/wwt/tina_v3.0.4/out/host/usr/include   -g -O2 -MT patchelf.o -MD -MP -MF .deps/patchelf.Tpo -c -o patchelf.o patchelf.cc

mv -f .deps/patchelf.Tpo .deps/patchelf.Po

x86_64-linux-gnu-g++  -g -O2  -L/home/wwt/tina_v3.0.4/out/host/lib -L/home/wwt/tina_v3.0.4/out/host/usr/lib  -o patchelf patchelf.o

make[5]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/src'

Making all in tests

make[5]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/tests'

make[5]: Nothing to be done for `all'.

make[5]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/tests'

make[5]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8'

make[5]: Nothing to be done for `all-am'.

make[5]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8'

make[4]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8'

touch /home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/.built

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/patchelf'

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/patchelf'

install -d -m0755 /home/wwt/tina_v3.0.4/out/host/bin

install -m0755 /home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/src/patchelf /home/wwt/tina_v3.0.4/out/host/bin/patchelf

mkdir -p /home/wwt/tina_v3.0.4/out/host/stamp

touch /home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/patchelf-0.8/.built

touch /home/wwt/tina_v3.0.4/out/host/stamp/.patchelf_installed

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/patchelf'

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/mtools'

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/mtools'

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/mtools'

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/mtools'

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/dosfstools'

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/dosfstools'

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/dosfstools'

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/dosfstools'

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/lzma'

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/lzma'

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/lzma'

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/lzma'

make[3]: Entering directory `/home/wwt/tina_v3.0.4/tools/squashfs4'

make -C /home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/squashfs4.3/squashfs-tools CC="gcc" XZ_SUPPORT=1 LZMA_XZ_SUPPORT=1 XATTR_SUPPORT=1 SELINUX_SUPPORT=0 LZMA_LIB="/home/wwt/tina_v3.0.4/out/host/lib/liblzma.a" EXTRA_CFLAGS="-I/home/wwt/tina_v3.0.4/out/host/include -I/home/wwt/tina_v3.0.4/out/host/usr/include" LDFLAGS="-L/home/wwt/tina_v3.0.4/out/host/lib -L/home/wwt/tina_v3.0.4/out/host/usr/lib " mksquashfs unsquashfs

make[4]: Entering directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/squashfs4.3/squashfs-tools'

gcc  -I/home/wwt/tina_v3.0.4/out/host/include -I/home/wwt/tina_v3.0.4/out/host/usr/include -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT   -c -o gzip_wrapper.o gzip_wrapper.c

gzip_wrapper.c:38:13: error: 'Z_FIXED' undeclared here (not in a function)

{ "fixed", Z_FIXED, 0 },

^

make[4]: *** [gzip_wrapper.o] Error 1

make[4]: Leaving directory `/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/squashfs4.3/squashfs-tools'

make[3]: *** [/home/wwt/tina_v3.0.4/out/astar-parrot/compile_dir/host/squashfs4.3/.built] Error 2

make[3]: Leaving directory `/home/wwt/tina_v3.0.4/tools/squashfs4'

make[2]: *** [tools/squashfs4/compile] Error 2

make[2]: Leaving directory `/home/wwt/tina_v3.0.4'

make[1]: *** [/home/wwt/tina_v3.0.4/out/astar-parrot/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2

make[1]: Leaving directory `/home/wwt/tina_v3.0.4'

make: *** [world] 错误 2

#### make failed to build some targets (07:00 (mm:ss)) ####

rootroot@cm88:/home/wwt/tina_v3.0.4$

就算你找到这个文件:

rootroot@cm88:/home/wwt/tinav3.0$ find . -name gzip_wrapper.c

./out/astar-parrot/compile_dir/host/squashfs4.3/squashfs-tools/gzip_wrapper.c

rootroot@cm88:/home/wwt/tinav3.0$

static struct strategy strategy[] = {

{ "default", Z_DEFAULT_STRATEGY, 0 },

{ "filtered", Z_FILTERED, 0 },

{ "huffman_only", Z_HUFFMAN_ONLY, 0 },

{ "run_length_encoded", Z_RLE, 0 },

{ "fixed", Z_FIXED, 0 },

{ NULL, 0, 0 }

};

修改为:

static struct strategy strategy[] = {

{ "default", Z_DEFAULT_STRATEGY, 0 },

{ "filtered", Z_FILTERED, 0 },

{ "huffman_only", Z_HUFFMAN_ONLY, 0 },

{ "run_length_encoded", Z_RLE, 0 },

{ "fixed", 4, 0 },

{ NULL, 0, 0 }

};

(来不及分清楚具体是哪个定义了,直接修改Z_FIXED为4了!^_)

rootroot@cm88:/home/wwt/pugongying_tinav3.0.6$ grep Z_FIXED . -R

./lichee/brandy/u-boot-2011.09/include/u-boot/zlib.h:#define Z_FIXED               4

./lichee/brandy/u-boot-2014.07/include/u-boot/zlib.h:#define Z_FIXED               4

./package/allwinner/liballwinner_tina/liballwinner/LIBRARY/EXTERNAL/include/zlib/zlib.h:#define Z_FIXED               4

./package/allwinner/tina_multimedia/libcedarx/external/include/zlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/Python-2.7.11/Modules/zlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/zlib-1.2.8/contrib/pascal/zlibpas.pas:  Z_FIXED               = 4;

./out/astar-parrot/compile_dir/target/zlib-1.2.8/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/zlib-1.2.8/ipkg-install/usr/include/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/host/Python-2.7.11/Modules/zlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/libcedarx/libcedarx/external/include/zlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/target/gdb-7.10.1/zlib/contrib/pascal/zlibpas.pas:  Z_FIXED               = 4;

./out/astar-parrot/compile_dir/target/gdb-7.10.1/zlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/host/u-boot-2014.10/include/u-boot/zlib.h:#define Z_FIXED               4

./out/astar-parrot/compile_dir/host/cmake-3.4.3/Utilities/cmzlib/zlib.h:#define Z_FIXED               4

./out/astar-parrot/staging_dir/target/usr/include/zlib.h:#define Z_FIXED               4

你编译的话,还是会继续出问题的,错误欠奉。

排查了很久,后来同事说是因为他安装了miniGUI的模拟器,其中的glibc库导致的问题。最后他自己还原了,具体方法未知。

009全志R16平台tinav3.0下编译不过的问题的更多相关文章

  1. 461在全志r16平台tinav3.0系统下使用地磁计QMC5883L

    461在全志r16平台tinav3.0系统下使用地磁计QMC5883L 2018/9/7 14:08 版本:V1.0 开发板:SC3817R SDK:tina v3.0 (基本确认全志tina v3. ...

  2. 460在全志r16平台tinav3.0系统下使用i2c-tools

    460在全志r16平台tinav3.0系统下使用i2c-tools 2018/9/6 19:05 版本:V1.0 开发板:SC3817R SDK:tina v3.0 1.01原始编译全志r16平台ti ...

  3. 501在全志r16平台tinav3.0系统下调通pwm1的10KHZ波形

    501在全志r16平台tinav3.0系统下调通pwm1的10KHZ波形 2018/10/19 19:52 版本:V1.0 开发板:SC3817R SDK:tina v3.0 1.01原始编译全志r1 ...

  4. 001原始编译全志r6平台tinav3.0.2系统

    001原始编译全志r6平台tinav3.0.2系统 2018/6/8 11:32 版本:V1.0 开发板:R6 SDK:tina v3.0.2 1.01原始编译全志r16平台tinav3.0系统: r ...

  5. 51全志R58平台Android4.4下Camera的HAL层修改

    51全志R58平台Android4.4下Camera的HAL层修改 2018/11/7 15:20 版本:V1.0 开发板:SC5806 1.系统编译: (略) 2.全志R58平台Android4.4 ...

  6. 在CUDA8.0下编译安装OpenCV3.1.0来实现GPU加速(Compiling OpenCV3.1.0 with CUDA8.0 support)

    在CUDA8.0下编译安装OpenCV3.1.0 一.本人电脑配置:ubuntu 14.04, NVIDIA GTX1060. 二.编译OpenCV3.1.0前,读者需要成功安装CUDA8.0(网上有 ...

  7. SharpDevelope 在 Windows 7 SP1 with .net framework4.0 下编译时找不到resgen.exe 解决办法

    如果在vs下编译正常,在SharpDevelope下编译报这个错误,可以更改编译时的.netframework版本和C#版本.在 Tool->Project Upgrade 进行项目转换后,一般 ...

  8. 解决libcurl7.50.3在windows XP SP3 VC++ 6.0下编译报错 unresolved external symbol __imp__IdnToAscii@20 unresolved external symbol __imp__IdnToUnicode@20

    错误重现: --------------------Configuration: curl - Win32 LIB Debug DLL Windows SSPI DLL WinIDN--------- ...

  9. [环境配置]Ubuntu 16.04+CUDA 9.0+OpenCV 3.2.0下编译基于Caffe的MobileNet-SSD踩过的一些坑

    SSD是Caffe的一个分支,源码在github上:https://github.com/weiliu89/caffe/tree/ssd $ git clone https://github.com/ ...

随机推荐

  1. URAL1519 Formula 1 —— 插头DP

    题目链接:https://vjudge.net/problem/URAL-1519 1519. Formula 1 Time limit: 1.0 secondMemory limit: 64 MB ...

  2. 前端如何展示商品属性:SKU多维属性状态判断算法的应用-Vue 实现

    由于公司开发了一个电商项目,涉及到前台商品属性的展示,所以百度上找了一下!找到了 周琪力写的一个算法例子,因为作者只有jQuery 实现demo, 自己仿照 demo 实现了一个 vue 的! 周琪力 ...

  3. hdu 2680 Choose the best route 解题报告

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2680 题目意思:实质就是给定一个多源点到单一终点的最短路. 卑鄙题---有向图.初始化map时 千万不 ...

  4. POJ2689:Prime Distance(大数区间素数筛)

    The branch of mathematics called number theory is about properties of numbers. One of the areas that ...

  5. win7下出现'telnet' 不是内部或外部命令,也不是可运行的程序或批处理文件的解决方法

    在win7竟然不可能使用telnet命令,使用时会出现“'telnet' 不是内部或外部命令,也不是可运行的程序或批处理文件”,研究了很多,才终于明白WIN7默认是没有安装这个命令. 处理办法: 依次 ...

  6. BZOJ[4127] Abs

    题目:http://www.lydsy.com/JudgeOnline/problem.php?id=4127 不算难的样子,才见过此类模型. 首先可以发现每次修改只增不减,那么这$O(n)$的负数最 ...

  7. class.forName()和.class有什么区别?

    class.forName()会初始化类的成员(静态的),最先加载的是类的静态成员变量,然后是静态代码块. 访问常量并不会导致类的初始化,但是访问静态成员会.

  8. 012--python字符编码和list列表和循环语句

    一.字符编码: ASCII码最多只能表示 256个符号,每一个字符占8位 为什么一个字节占8位?因为计算机在读一串二进制数111011001111101110的时候, 要按照规定的长度截取,才能分清一 ...

  9. Codeforces510B【dfs】

    判断一个图里是否有一个自环: 50*50 标记起点,然后暴搜? #include <bits/stdc++.h> #include<algorithm> using names ...

  10. bzoj 3261 最大异或和【可持久化trie】

    因为在后面加数字又求后缀和太麻烦,所以xor[p...n]=xor[1...n]^xor[p-1...n]. 首先处理出来区间异或前缀和,对前缀和建trie树(在最前面放一棵0表示最开始的前缀和 然后 ...