timer_s 发表于 2021-9-8 12:57:58

ubuntu20.04 编译安卓8.1报错,求救!!!

./build-nanopc-t4.sh -F -M
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
CHK   include/config.h
GEN   include/autoconf.mk
GEN   include/autoconf.mk.dep
CHK   include/config/uboot.release
CHK   include/generated/timestamp_autogenerated.h
UPD   include/generated/timestamp_autogenerated.h
CHK   include/generated/version_autogenerated.h
HOSTCCtools/dumpimage.o
HOSTCCtools/image-host.o
HOSTCCtools/loaderimage.o
HOSTCCtools/mkenvimage.o
tools/loaderimage.c: In function ‘main’:
tools/loaderimage.c:116:28: warning: variable ‘name’ set but not used [-Wunused-but-set-variable]
116 |char   *magic, *version, *name;
      |                            ^~~~
tools/loaderimage.c:116:18: warning: variable ‘version’ set but not used [-Wunused-but-set-variable]
116 |char   *magic, *version, *name;
      |                  ^~~~~~~
tools/loaderimage.c:339:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
339 |   fread(hdr, sizeof(struct tag_second_loader_hdr), 1, fi);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOSTCCtools/mkimage.o
HOSTCCtools/boot_merger
HOSTLDtools/mkenvimage
HOSTLDtools/dumpimage
HOSTLDtools/mkimage
HOSTLDtools/loaderimage
HOSTLDtools/trust_merger
HOSTLDtools/checksum
tools/boot_merger.c: In function ‘initOpts’:
tools/boot_merger.c:490:52: warning: ‘_loader_v’ directive output may be truncated writing 9 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
490 |snprintf(gOpts.outPath, sizeof(gOpts.outPath), "%s_loader_v%d.%02d.%d%02d.bin", gOpts.chip, v0, v1, v2, v3);
      |                                                    ^~~~~~~~~
In file included from /usr/include/stdio.h:867,
               from /home/timer/work/share/rk3399-android-8.1.git-20210108/rk3399-android-8.1/u-boot/include/compiler.h:25,
               from /home/timer/work/share/rk3399-android-8.1.git-20210108/rk3399-android-8.1/u-boot/include/libfdt_env.h:12,
               from <command-line>:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 22 and 315 bytes into a destination of size 256
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |      __bos (__s), __fmt, __va_arg_pack ());
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/boot_merger.c: In function ‘main’:
tools/boot_merger.c:882:11: warning: array subscript 20 is outside array bounds of ‘char’ [-Warray-bounds]
882 |str = 0;
      |~~~~~~~~~^~~
tools/boot_merger.c:920:7: note: while referencing ‘name’
920 |char name;
      |       ^~~~
CC      board/rockchip/rk33xx/rk33xx.o
CC      board/rockchip/common/rkboot/fastboot.o
LD      board/rockchip/rk33xx/built-in.o
LD      board/rockchip/common/built-in.o
CC      common/main.o
CC      common/board_f.o
CC      common/cmd_version.o
CC      common/cmd_fastboot.o
CC      common/cmd_bootrk.o
LD      common/built-in.o
CC      lib/display_options.o
LD      lib/built-in.o
LD      u-boot
OBJCOPY u-boot.bin
OBJCOPY u-boot.srec
start=$(/home/timer/work/share/rk3399-android-8.1.git-20210108/rk3399-android-8.1/u-boot/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(/home/timer/work/share/rk3399-android-8.1.git-20210108/rk3399-android-8.1/u-boot/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot.bin 0x00200000 $start $end
./tools/boot_merger ./tools/rk_tools/RKBOOT/RK3399MINIALL.ini
out:rk3399_loader_v1.24.119.bin
fix opt:rk3399_loader_v1.24.119.bin
merge success(rk3399_loader_v1.24.119.bin)
./tools/trust_merger   ./tools/rk_tools/RKTRUST/RK3399TRUST.ini
out:trust.img
merge success(trust.img)
./tools/loaderimage --pack --uboot u-boot.bin uboot.img

load addr is 0x200000!
pack input u-boot.bin
pack file size: 553052
crc = 0xcdb37b57
pack uboot.img success!

#### make completed successfully (13 seconds) ####

#
# configuration written to .config
#
scripts/kconfig/conf--silentoldconfig Kconfig
CHK   include/config/kernel.release
CHK   include/generated/uapi/linux/version.h
CHK   include/generated/utsrelease.h
CHK   scripts/mod/devicetable-offsets.h
CHK   include/generated/timeconst.h
CHK   include/generated/bounds.h
CHK   include/generated/asm-offsets.h
CALL    scripts/checksyscalls.sh
make: “include/generated/vdso-offsets.h”已是最新。
CHK   include/generated/compile.h
GZIP    kernel/config_data.gz
CHK   kernel/config_data.h
make: “arch/arm64/boot/Image.lz4”已是最新。
Image:kernel.img is ready
CHK   include/config/kernel.release
CHK   include/generated/uapi/linux/version.h
CHK   include/generated/utsrelease.h
CHK   scripts/mod/devicetable-offsets.h
CHK   include/generated/timeconst.h
CHK   include/generated/bounds.h
CHK   include/generated/asm-offsets.h
CALL    scripts/checksyscalls.sh
make: “include/generated/vdso-offsets.h”已是最新。
Building modules, stage 2.
MODPOST 13 modules
Pack to resource.img successed!
Image:resource.img (with rockchip/rk3399-nanopi4-rev*.dtb logo.bmp logo_kernel.bmp) is ready

#### make completed successfully (31 seconds) ####

including device/rockchip/rk3399/vendorsetup.sh
including sdk/bash_completion/adb.bash

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=nanopc_t4
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
TARGET_BUILD_APPS=
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.11.0-27-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM8.190605.005
OUT_DIR=out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=nanopc_t4
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.11.0-27-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM8.190605.005
OUT_DIR=out
============================================
ninja: no work to do.
out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
device/rockchip/rk3399/preinstall/Android.mk was modified, regenerating...
including ./bootable/recovery/Android.mk ...
./bootable/recovery/Android.mk:101: warning: *** Redirect log to UART
including ./hardware/rockchip/camera/Android.mk ...
BOARD_DEFAULT_CAMERA_HAL_VERSION=1.0
including ./hardware/rockchip/librga/Android.mk ...
Generated version.h
including ./hardware/rockchip/omx_il/Android.mk ...

including ./vendor/rockchip/common/vpu/Android.mk ...
PRODUCT_COPY_FILES device/rockchip/common/init.rk30board.usb.rc:root/init.rk30board.usb.rc ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/phone/etc/ppp/ip-down:system/etc/ppp/ip-down ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/phone/etc/ppp/ip-up:system/etc/ppp/ip-up ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/phone/etc/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE nanopc-t4
build/core/aapt2.mk:32: warning: overriding commands for target `out/target/product/nanopc-t4/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat'
build/core/aapt2.mk:32: warning: ignoring old commands for target `out/target/product/nanopc-t4/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/nanopc-t4/system/bin/chat'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/nanopc-t4/system/bin/chat'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/nanopc-t4/vendor/lib/libjpeghwenc.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/nanopc-t4/vendor/lib/libjpeghwenc.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/nanopc-t4/vendor/lib/libjpeghwdec.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/nanopc-t4/vendor/lib/libjpeghwdec.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/nanopc-t4/vendor/lib64/libjpeghwenc.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/nanopc-t4/vendor/lib64/libjpeghwenc.so'
[ 50% 1/2] glob art
host C++: validatekeymaps <= ...ameworks/base/tools/validatekeymaps/Main.cpp
FAILED: out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o
/bin/bash -c "PWD=/proc/self/cwdprebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/base/tools/validatekeymaps -I out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates -I out/host/linux-x86/gen/EXECUTABLES/validatekeymaps_intermediates -I libnativehelper/include_deprecated \$(cat out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/import_includes)-I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include-c-fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/=   -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin-Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14-Wall -Werror -fPIE -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type   -MD -MF out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.d -o out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o frameworks/base/tools/validatekeymaps/Main.cpp"
prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
host C++: conscrypt_generate_...constants/src/gen/cpp/generate_constants.cpp
FAILED: out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o
/bin/bash -c "PWD=/proc/self/cwdprebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I external/conscrypt -I out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates -I out/host/linux-x86/gen/EXECUTABLES/conscrypt_generate_constants_intermediates -I libnativehelper/include_deprecated \$(cat out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/import_includes)-I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include-c-fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/=   -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin-Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14-fPIE -D_USING_LIBCXX -nostdinc++-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type   -MD -MF out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.d -o out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o external/conscrypt/constants/src/gen/cpp/generate_constants.cpp"
prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
logtags: out/target/common/ob...ndroid/internal/logging/EventLogTags.logtags
ninja: build stopped: subcommand failed.
21:52:37 ninja failed with: exit status 1

#### failed to build some targets (01:49 (mm:ss)) ####

timer_s 发表于 2021-9-8 13:00:34

tools/loaderimage.c: In function ‘main’:
tools/loaderimage.c:116:28: warning: variable ‘name’ set but not used [-Wunused-but-set-variable]
116 |char   *magic, *version, *name;
      |                            ^~~~
tools/loaderimage.c:116:18: warning: variable ‘version’ set but not used [-Wunused-but-set-variable]
116 |char   *magic, *version, *name;
      |                  ^~~~~~~
tools/loaderimage.c:339:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
339 |   fread(hdr, sizeof(struct tag_second_loader_hdr), 1, fi);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
编译uboot这里报了警告

timer_s 发表于 2021-9-8 13:06:17

tools/boot_merger.c: In function ‘initOpts’:
tools/boot_merger.c:490:52: warning: ‘_loader_v’ directive output may be truncated writing 9 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
490 |snprintf(gOpts.outPath, sizeof(gOpts.outPath), "%s_loader_v%d.%02d.%d%02d.bin", gOpts.chip, v0, v1, v2, v3);
      |                                                    ^~~~~~~~~
In file included from /usr/include/stdio.h:867,
               from /home/timer/work/share/rk3399-android-8.1.git-20210108/rk3399-android-8.1/u-boot/include/compiler.h:25,
               from /home/timer/work/share/rk3399-android-8.1.git-20210108/rk3399-android-8.1/u-boot/include/libfdt_env.h:12,
               from <command-line>:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 22 and 315 bytes into a destination of size 256
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |      __bos (__s), __fmt, __va_arg_pack ());
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/boot_merger.c: In function ‘main’:
tools/boot_merger.c:882:11: warning: array subscript 20 is outside array bounds of ‘char’ [-Warray-bounds]
882 |str = 0;
      |~~~~~~~~~^~~
tools/boot_merger.c:920:7: note: while referencing ‘name’
920 |char name;






start=$(/home/timer/work/share/rk3399-android-8.1.git-20210108/rk3399-android-8.1/u-boot/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(/home/timer/work/share/rk3399-android-8.1.git-20210108/rk3399-android-8.1/u-boot/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot.bin 0x00200000 $start $end

/*****************************************************************************************************************************************/



./bootable/recovery/Android.mk:101: warning: *** Redirect log to UART



No private recovery resources for TARGET_DEVICE nanopc-t4
build/core/aapt2.mk:32: warning: overriding commands for target `out/target/product/nanopc-t4/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat'
build/core/aapt2.mk:32: warning: ignoring old commands for target `out/target/product/nanopc-t4/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/nanopc-t4/system/bin/chat'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/nanopc-t4/system/bin/chat'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/nanopc-t4/vendor/lib/libjpeghwenc.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/nanopc-t4/vendor/lib/libjpeghwenc.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/nanopc-t4/vendor/lib/libjpeghwdec.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/nanopc-t4/vendor/lib/libjpeghwdec.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/nanopc-t4/vendor/lib64/libjpeghwenc.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/nanopc-t4/vendor/lib64/libjpeghwenc.so'
[ 50% 1/2] glob art
host C++: validatekeymaps <= ...ameworks/base/tools/validatekeymaps/Main.cpp
FAILED: out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o
/bin/bash -c "PWD=/proc/self/cwdprebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/base/tools/validatekeymaps -I out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates -I out/host/linux-x86/gen/EXECUTABLES/validatekeymaps_intermediates -I libnativehelper/include_deprecated \$(cat out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/import_includes)-I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include-c-fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/=   -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin-Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14-Wall -Werror -fPIE -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type   -MD -MF out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.d -o out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o frameworks/base/tools/validatekeymaps/Main.cpp"
prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
host C++: conscrypt_generate_...constants/src/gen/cpp/generate_constants.cpp
FAILED: out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o

页: [1]
查看完整版本: ubuntu20.04 编译安卓8.1报错,求救!!!