各位大佬们,请问有遇到这个问题吗? 我上周同样操作步骤,能够编译成功并输出固件,这周换了几个编译环境了,都是一样的问题,ubuntu18.04,20.04,22.04,都是一样的报错,原来能编译过的环境时20.04,我给SDK换了下路径,清理,重新编译,也无法编译通过了,都是报的intltool-0.51.0错误。
一、编译环境搭建
1、WSL2 Ubuntu20.04
2、安装编译环境依赖
sudo apt-get update
sudo apt-get upgrade -y
安装开发依赖
sudo apt-get install build-essential subversion git libncurses5-dev zlib1g-dev gawk flex bison quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lsof
安装相关工具
sudo apt-get install kconfig-frontends android-tools-mkbootimg python2 libpython3-dev
增加架构支持
sudo dpkg --add-architecture i386
sudo apt-get update
安装支持包
sudo apt install gcc-multilib
sudo apt install libc6:i386 libstdc++6:i386 lib32z1
二、SDK源码拉取及编译
1、拉取社区tina sdk
repo init -u https://sdk.aw-ol.com/git_repo/D1_Tina_Open/manifest.git -b master -m tina-d1-h.xml
2、同步最新代码到本地
repo sync
此时sdk目录下文件如下:
:~/workspace/system$ ls tina-t113-sdk/
Config.in Makefile README.md build config device dl lichee out package prebuilt rules.mk scripts target tmp toolchain tools
3、拉取t113s3 sdk支持包
git clone https://gitee.com/weidongshan/100ASK_T113-Pro_TinaSDK.git
cd 100ASK_T113-Pro_TinaSDK && git submodule update --init
4、将t113s3配置导入tina-sdk
cp ./100ASK_T113-Pro_TinaSDK* -rfvd ./tina-t113-sdk
5、导入环境变量,选择编译选项 选择 4
:~/workspace/system/tina-t113-sdk$ source build/envsetup.sh
Setup env done! Please run lunch next.
:~/workspace/system$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. d1-h_nezha-tina
2. d1-h_nezha_min-tina
3. d1s_nezha-tina
4. t113_100ask-tina
Which would you like? [Default t113_100ask]: 4
三、编译报错
1、mboot 编译uboot,成功
/home/yann/workspace/system/tina-t113-sdk/lichee/brandy-2.0/spl/../tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-strip -g /home/yann/workspace/system/tina-t113-sdk/lichee/brandy-2.0/spl/sboot/libsun8iw20p1_sboot.o
'sboot_sun8iw20p1.bin' -> '/home/yann/workspace/system/tina-t113-sdk/lichee/brandy-2.0/spl/../../../device/config/chips/t113/bin/sboot_sun8iw20p1.bin'
'sboot_sun8iw20p1.bin' -> '/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/sboot_sun8iw20p1.bin'
mboot0 success!
2、mkernek编译内核,成功
make[3]: Leaving directory '/home/yann/workspace/system/tina-t113-sdk/target/allwinner/t113-100ask'
make[2]: Leaving directory '/home/yann/workspace/system/tina-t113-sdk/target/allwinner'
make[1]: Leaving directory '/home/yann/workspace/system/tina-t113-sdk'
#### make completed successfully (04:37 (mm:ss)) ####
3、make 编译所有,失败,报错
make[3]: Leaving directory '/home/yann/workspace/system/tina-t113-sdk/package/libs/libinput'
make[3]: Entering directory '/home/yann/workspace/system/tina-t113-sdk/package/libs/intltool'
(cd /home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/compile_dir/target/host/intltool-0.51.0; rm -f aclocal.m4; if [ -f ./configure.ac ] || [ -f ./configure.in ]; then [ -d ./autom4te.cache ] && rm -rf autom4te.cache; [ -e ./config.rpath ] || ln -s /home/yann/workspace/system/tina-t113-sdk/scripts/config.rpath ./config.rpath; touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; AUTOM4TE=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/autom4te AUTOCONF=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/autoconf AUTOMAKE=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/automake ACLOCAL=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/aclocal AUTOHEADER=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/autoheader LIBTOOLIZE=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/libtoolize LIBTOOL=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/libtool M4=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/m4 AUTOPOINT=true /home/yann/workspace/system/tina-t113-sdk/out/host/bin/autoreconf -v -f -i -s -B /home/yann/workspace/system/tina-t113-sdk/out/host/share/aclocal -I m4 -I . . || true; fi; ); (cd /home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/compile_dir/target/host/intltool-0.51.0; rm -f aclocal.m4; if [ -f ./configure.ac ] || [ -f ./configure.in ]; then [ -d ./autom4te.cache ] && rm -rf autom4te.cache; [ -e ./config.rpath ] || ln -s /home/yann/workspace/system/tina-t113-sdk/scripts/config.rpath ./config.rpath; touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; AUTOM4TE=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/autom4te AUTOCONF=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/autoconf AUTOMAKE=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/automake ACLOCAL=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/aclocal AUTOHEADER=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/autoheader LIBTOOLIZE=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/libtoolize LIBTOOL=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/libtool M4=/home/yann/workspace/system/tina-t113-sdk/out/host/bin/m4 AUTOPOINT=true /home/yann/workspace/system/tina-t113-sdk/out/host/bin/autoreconf -v -f -i -s -B /home/yann/workspace/system/tina-t113-sdk/out/host/share/aclocal -I m4 -I . . || true; fi; );
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /home/yann/workspace/system/tina-t113-sdk/out/host/bin/aclocal -I m4 -I . --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/yann/workspace/system/tina-t113-sdk/out/host/bin/autoconf --include=m4 --include=. --prepend-include=/home/yann/workspace/system/tina-t113-sdk/out/host/share/aclocal --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: /home/yann/workspace/system/tina-t113-sdk/out/host/bin/automake --add-missing --force-missing
autoreconf: Leaving directory `.'
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /home/yann/workspace/system/tina-t113-sdk/out/host/bin/aclocal -I m4 -I . --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /home/yann/workspace/system/tina-t113-sdk/out/host/bin/autoconf --include=m4 --include=. --prepend-include=/home/yann/workspace/system/tina-t113-sdk/out/host/share/aclocal --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: /home/yann/workspace/system/tina-t113-sdk/out/host/bin/automake --add-missing --force-missing
autoreconf: Leaving directory `.'
(cd /home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/compile_dir/target/host/intltool-0.51.0/; if [ -x configure ]; then cp -fpR /home/yann/workspace/system/tina-t113-sdk/scripts/config.{guess,sub} /home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/compile_dir/target/host/intltool-0.51.0// && bash ./configure CC="gcc" CFLAGS="-O2 -I/home/yann/workspace/system/tina-t113-sdk/out/host/include -I/home/yann/workspace/system/tina-t113-sdk/out/host/usr/include -I/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/include" CPPFLAGS="-I/home/yann/workspace/system/tina-t113-sdk/out/host/include -I/home/yann/workspace/system/tina-t113-sdk/out/host/usr/include -I/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/include" LDFLAGS="-L/home/yann/workspace/system/tina-t113-sdk/out/host/lib -L/home/yann/workspace/system/tina-t113-sdk/out/host/usr/lib -L/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/lib" SHELL="/usr/bin/env bash" PATH=/bin:/usr/bin:/home/yann/workspace/system/tina-t113-sdk/out/host/bin:/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/out/host/bin:/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/out/host/bin:/home/yann/workspace/system/tina-t113-sdk/out/host/bin:/home/yann/.local/bin/:/home/yann/.local/bin:/home/yann/.local/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program:Files:(x86)/VMware/VMware:Workstation/bin/:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program:Files/Git/cmd:/mnt/c/Program:Files/Microsoft:VS:Code/bin:/mnt/c/User/QT/Tools/CMake_64/bin:/mnt/c/User/QT/Tools/mingw810_64/bin:/mnt/c/User/QT/Tools/mingw1120_64/bin:/mnt/c/User/QT/Tools/QtCreator/bin:/mnt/c/User/QT/Tools/sdktool/bin:/mnt/c/User/QT/5.15.2/mingw81_64/bin:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps/PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0:/mnt/c/Users/Administrator/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0/LocalCache/local-packages/Python310/site-packages:/mnt/c/qp/qtools/MinGW32/bin:/mnt/c/qp/qtools/bin:/mnt/c/User/usbip-win-0.3.6-dev:/mnt/c/Users/Administrator/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0/LocalCache/local-packages/Python310/Scripts:/mnt/d/ProgramFiles/mysql-8.3.0-winx64/bin:/mnt/d/ProgramFiles/ADB_auto_tab/platform-tools_r30.0.5-windows_tab自动补全/platform-tools:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/mnt/d/ProgramFiles/PyCharm:2023.2.3/bin:/mnt/f/files/T113/T113-Pro开发板/02-100ASK_T113-Pro开发板上手体验/AllwinnertechPhoeniSuit/:/snap/bin --target=x86_64-linux-gnu --host=x86_64-linux-gnu --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host --exec-prefix=/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host --sysconfdir=/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/etc --localstatedir=/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/var --sbindir=/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/bin ; fi )
bash: -c: line 0: syntax error near unexpected token `('
bash: -c: line 0: `(cd /home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/compile_dir/target/host/intltool-0.51.0/; if [ -x configure ]; then cp -fpR /home/yann/workspace/system/tina-t113-sdk/scripts/config.{guess,sub} /home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/compile_dir/target/host/intltool-0.51.0// && bash ./configure CC="gcc" CFLAGS="-O2 -I/home/yann/workspace/system/tina-t113-sdk/out/host/include -I/home/yann/workspace/system/tina-t113-sdk/out/host/usr/include -I/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/include" CPPFLAGS="-I/home/yann/workspace/system/tina-t113-sdk/out/host/include -I/home/yann/workspace/system/tina-t113-sdk/out/host/usr/include -I/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/include" LDFLAGS="-L/home/yann/workspace/system/tina-t113-sdk/out/host/lib -L/home/yann/workspace/system/tina-t113-sdk/out/host/usr/lib -L/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/lib" SHELL="/usr/bin/env bash" PATH=/bin:/usr/bin:/home/yann/workspace/system/tina-t113-sdk/out/host/bin:/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/out/host/bin:/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/bin:/home/yann/workspace/system/tina-t113-sdk/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin:/home/yann/workspace/system/tina-t113-sdk/out/host/bin:/home/yann/workspace/system/tina-t113-sdk/out/host/bin:/home/yann/.local/bin/:/home/yann/.local/bin:/home/yann/.local/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program:Files:(x86)/VMware/VMware:Workstation/bin/:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program:Files/Git/cmd:/mnt/c/Program:Files/Microsoft:VS:Code/bin:/mnt/c/User/QT/Tools/CMake_64/bin:/mnt/c/User/QT/Tools/mingw810_64/bin:/mnt/c/User/QT/Tools/mingw1120_64/bin:/mnt/c/User/QT/Tools/QtCreator/bin:/mnt/c/User/QT/Tools/sdktool/bin:/mnt/c/User/QT/5.15.2/mingw81_64/bin:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps/PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0:/mnt/c/Users/Administrator/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0/LocalCache/local-packages/Python310/site-packages:/mnt/c/qp/qtools/MinGW32/bin:/mnt/c/qp/qtools/bin:/mnt/c/User/usbip-win-0.3.6-dev:/mnt/c/Users/Administrator/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0/LocalCache/local-packages/Python310/Scripts:/mnt/d/ProgramFiles/mysql-8.3.0-winx64/bin:/mnt/d/ProgramFiles/ADB_auto_tab/platform-tools_r30.0.5-windows_tab自动补全/platform-tools:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/mnt/d/ProgramFiles/PyCharm:2023.2.3/bin:/mnt/f/files/T113/T113-Pro开发板/02-100ASK_T113-Pro开发板上手体验/AllwinnertechPhoeniSuit/:/snap/bin --target=x86_64-linux-gnu --host=x86_64-linux-gnu --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host --exec-prefix=/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host --sysconfdir=/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/etc --localstatedir=/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/var --sbindir=/home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/host/bin ; fi )'
make[3]: *** [Makefile:43: /home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/compile_dir/target/host/intltool-0.51.0/.configured] Error 1
make[3]: Leaving directory '/home/yann/workspace/system/tina-t113-sdk/package/libs/intltool'
make[2]: *** [package/Makefile:192: package/libs/intltool/host/compile] Error 2
make[2]: Leaving directory '/home/yann/workspace/system/tina-t113-sdk'
make[1]: *** [package/Makefile:189: /home/yann/workspace/system/tina-t113-sdk/out/t113-100ask/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/yann/workspace/system/tina-t113-sdk'
make: *** [/home/yann/workspace/system/tina-t113-sdk/build/toplevel.mk:306: world] Error 2
[2]+ Done $T/tools/build/buildserver --path $T 2> /dev/null 1>&2
#### make failed to build some targets (32 seconds) ####