Hi, all
我按照WIKI( http://processors.wiki.ti.com/index.php/Processor_SDK_Building_The_SDK) 编译AM5728 SDK
$ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk $ cd tisdk $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.01.00.06-config.txt $ cd build $ . conf/setenv $ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH $ MACHINE=am57xx-evm bitbake arago-core-tisdk-image
然后遇到下面错误,谁能帮助下我,谢谢!
/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/Release/lib/libclang.so: undefined reference to `typeinfo name for clang::Sema::VerifyIntegerConstantExpression(clang::Expr*, llvm::APSInt*, unsigned int, bool)::IDDiagnoser'
/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/Release/lib/libclang.so: undefined reference to `typeinfo name for clang::Sema::VerifyIntegerConstantExpression(clang::Expr*, llvm::APSInt*, clang::Sema::VerifyICEDiagnoser&, bool)::CXX11ConvertDiagnoser'
collect2: error: ld returned 1 exit status
/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/git/Makefile.rules:1427: recipe for target '/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/Release/bin/c-index-test' failed
make[4]: *** [/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/Release/bin/c-index-test] Error 1
make[4]: Leaving directory '/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/tools/clang/tools/c-index-test'
/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/git/Makefile.rules:873: recipe for target 'all' failed
make[3]: *** [all] Error 1
make[3]: *** Waiting for unfinished jobs….
/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/Release/lib/libclangSema.a(SemaExpr.o):(.data.rel.ro._ZTIZN5clang4Sema31VerifyIntegerConstantExpressionEPNS_4ExprEPN4llvm6APSIntERNS0_18VerifyICEDiagnoserEbE21CXX11ConvertDiagnoser+0x4): undefined reference to `typeinfo name for clang::Sema::VerifyIntegerConstantExpression(clang::Expr*, llvm::APSInt*, clang::Sema::VerifyICEDiagnoser&, bool)::CXX11ConvertDiagnoser'
/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/Release/lib/libclangSema.a(SemaExpr.o):(.data.rel.ro._ZTIZN5clang4Sema31VerifyIntegerConstantExpressionEPNS_4ExprEPN4llvm6APSIntEjbE11IDDiagnoser+0x4): undefined reference to `typeinfo name for clang::Sema::VerifyIntegerConstantExpression(clang::Expr*, llvm::APSInt*, unsigned int, bool)::IDDiagnoser'
collect2: error: ld returned 1 exit status
/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/git/Makefile.rules:1427: recipe for target '/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/Release/bin/clang' failed
make[4]: *** [/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/Release/bin/clang] Error 1
make[4]: Leaving directory '/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/tools/clang/tools/driver'
/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/git/Makefile.rules:932: recipe for target 'driver/.makeall' failed
make[3]: *** [driver/.makeall] Error 2
make[3]: Leaving directory '/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/tools/clang/tools'
/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/git/Makefile.rules:873: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/llvm-3.6.build/tools/clang'
/home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/git/Makefile.rules:932: recipe for target 'clang/.makeall' failed
make[1]: *** [clang/.makeall] Error 2
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /home/david/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/ti-llvm3.6/3.6-r6/temp/log.do_compile.12703)
Jian Zhou:
你的SDK是git下来的?而不是从官网下的SDK安装包么?
david shen:
回复 Jian Zhou:
是的,按照WIKI上的方式装的,这样才有源码。官方下的SDK bin没有源码吧?
david shen:
回复 Jian Zhou:
我仔细的又查了下,应该是编译arm版的clang工具出的错误,编译x86版这个工具没出错,如果是这样,我可以不编译ARM版本的,现在不知道怎么去掉ARM版本的代码编译,另外我查了下老版本SDK编译,里面并没有ARM版本的编译。