Hi,team
I have a problem when build android9(in ubuntu 20.04), would you please give me a favour or advice? and the logs is below:
$ make -j1 File "device/rockchip/common/auto_generator.py", line 114 continue ^ TabError: inconsistent use of tabs and spaces in indentation File "device/rockchip/common/auto_generator.py", line 114 continue ^ TabError: inconsistent use of tabs and spaces in indentation File "device/rockchip/common/auto_generator.py", line 114 continue ^ TabError: inconsistent use of tabs and spaces in indentation ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=9 TARGET_PRODUCT=rk3399 TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=release TARGET_ARCH=arm64 TARGET_ARCH_VARIANT=armv8-a TARGET_CPU_VARIANT=cortex-a53 TARGET_2ND_ARCH=arm TARGET_2ND_ARCH_VARIANT=armv7-a-neon TARGET_2ND_CPU_VARIANT=cortex-a15 HOST_ARCH=x86_64 HOST_2ND_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-5.8.0-59-generic-x86_64-Ubuntu-20.04.2-LTS HOST_CROSS_OS=windows HOST_CROSS_ARCH=x86 HOST_CROSS_2ND_ARCH=x86_64 HOST_BUILD_TYPE=release BUILD_ID=PI OUT_DIR=out ============================================ ninja: no work to do. ninja: no work to do. No need to regenerate ninja file No need to regenerate ninja file [ 0% 4/87811] build TAs FAILED: TAs /bin/bash -c "(make -j4 -C /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user O=/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user TA_DEV_KIT_DIR=/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/export-user_ta clean ) && (make -j4 -C /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user CROSS_COMPILE=\$(pwd)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- CROSS_COMPILE_HOST=\$(pwd)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- CROSS_COMPILE_TA=\$(pwd)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- CROSS_COMPILE_user_ta=\$(pwd)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- TA_DEV_KIT_DIR=/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/export-user_ta O=/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user )" make: Entering directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user' make[1]: Entering directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta' make[2]: Entering directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp' CLEAN . make[2]: Leaving directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp' make[2]: Entering directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp_storage' CLEAN . make[2]: Leaving directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp_storage' make[1]: Leaving directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta' make: Leaving directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user' make: Entering directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user' make[1]: Entering directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta' make[2]: Entering directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp' CPP /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp/ta.lds /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp/testapp_ta.o /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp/user_ta_header.o LD /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.elf OBJDUMP /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.dmp OBJCOPY /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.stripped.elf SIGN /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.ta SIGN KEY /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/export-user_ta/keys/oem_privkey.pem Traceback (most recent call last): File "/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/export-user_ta/scripts/sign.py", line 80, in main() File "/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/export-user_ta/scripts/sign.py", line 56, in main h = SHA256.new() File "/home/l/.local/lib/python3.8/site-packages/Crypto/Hash/SHA256.py", line 158, in new return SHA256Hash().new(data) File "/home/l/.local/lib/python3.8/site-packages/Crypto/Hash/SHA256.py", line 73, in __init__ result = _raw_sha256_lib.SHA256_init(state.address_of()) File "/usr/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__ func = self.__getitem__(name) File "/usr/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: /home/l/.local/lib/python3.8/site-packages/Crypto/Util/../Hash/_SHA256.cpython-38-x86_64-linux-gnu.so: undefined symbol: SHA256_init make[2]: *** [/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/export-user_ta/mk/link.mk:67: /media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp/8cccf200-2450-11e4-abe20002a5d5c52c.ta] Error 1 make[2]: Leaving directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta/testapp' make[1]: *** [Makefile:37: ta] Error 2 make[1]: Leaving directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user/ta' make: *** [Makefile:27: ta] Error 2 make: Leaving directory '/media/l/4802830f-14fd-468e-9147-16c37dc6d4ba/work/rockpi4-android9/external/rk_tee_user' ninja: build stopped: subcommand failed. 10:14:06 ninja failed with: exit status 1 #### failed to build some targets (13 seconds) ####