how to make roms?

Search This thread

psychem

Senior Member
Oct 18, 2011
1,288
336
@YumeMichi
using sultan camera source getting this error.
Code:
[ 82% 253/306] Building Kernel Config
make: Entering directory '/root/android/lineage/kernel/oneplus/onyx'
  GEN     /root/android/lineage/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make: Leaving directory '/root/android/lineage/kernel/oneplus/onyx'
make: Entering directory '/root/android/lineage/kernel/oneplus/onyx'
  GEN     /root/android/lineage/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make: Leaving directory '/root/android/lineage/kernel/oneplus/onyx'
[ 84% 260/306] build /root/android/lineage/out/t...file_contexts_intermediates/vendor_file_contexts
FAILED: /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts 
/bin/bash -c "(m4 -s     system/sepolicy/vendor/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/qcom/sepolicy-legacy/common/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/qcom/sepolicy-legacy/msm8974/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/qcom/sepolicy-legacy/test/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/qcom/sepolicy-legacy/legacy-common/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/lineage/sepolicy/qcom/common/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/oneplus/onyx/sepolicy/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/lineage/sepolicy/common/vendor/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl > /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp ) && (/root/android/lineage/out/host/linux-x86/bin/checkfc /root/android/lineage/out/target/product/onyx/obj/ETC/sepolicy_intermediates/sepolicy /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp ) && (/root/android/lineage/out/host/linux-x86/bin/fc_sort /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts )"
/root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp: Multiple same specifications for /dev/block/platform/msm_sdcc\.1/by-name/persist.
Error: could not load context file from /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp
[ 86% 265/306] Building Kernel
make: Entering directory '/root/android/lineage/kernel/oneplus/onyx'
  GEN     /root/android/lineage/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
  GEN     /root/android/lineage/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  Using /root/android/lineage/kernel/oneplus/onyx as source for kernel
make[2]: 'include/generated/mach-types.h' is up to date.
  CALL    /root/android/lineage/kernel/oneplus/onyx/scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
  CHK     kernel/config_data.h
  Kernel: arch/arm/boot/Image is ready
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  CAT     arch/arm/boot/zImage-dtb
  Kernel: arch/arm/boot/zImage-dtb is ready
make: Leaving directory '/root/android/lineage/kernel/oneplus/onyx'
Building DTBs
make: Entering directory '/root/android/lineage/kernel/oneplus/onyx'
make[2]: Nothing to be done for 'arch/arm/boot/dtbs'.
make: Leaving directory '/root/android/lineage/kernel/oneplus/onyx'
ninja: build stopped: subcommand failed.
11:19:40 ninja failed with: exit status 1

#### failed to build some targets (02:04 (mm:ss)) ####

Also can you say something about integrating onyparts.apk into the rom? how to do it?
 

YumeMichi

Senior Member
  • Nov 22, 2015
    481
    2,532
    Fuzhou
    blog.ikke.moe
    @YumeMichi
    using sultan camera source getting this error.
    Code:
    [ 82% 253/306] Building Kernel Config
    make: Entering directory '/root/android/lineage/kernel/oneplus/onyx'
      GEN     /root/android/lineage/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
    #
    # configuration written to .config
    #
    make: Leaving directory '/root/android/lineage/kernel/oneplus/onyx'
    make: Entering directory '/root/android/lineage/kernel/oneplus/onyx'
      GEN     /root/android/lineage/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
    scripts/kconfig/conf --savedefconfig=defconfig Kconfig
    make: Leaving directory '/root/android/lineage/kernel/oneplus/onyx'
    [ 84% 260/306] build /root/android/lineage/out/t...file_contexts_intermediates/vendor_file_contexts
    FAILED: /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts 
    /bin/bash -c "(m4 -s     system/sepolicy/vendor/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/qcom/sepolicy-legacy/common/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/qcom/sepolicy-legacy/msm8974/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/qcom/sepolicy-legacy/test/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/qcom/sepolicy-legacy/legacy-common/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/lineage/sepolicy/qcom/common/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/oneplus/onyx/sepolicy/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl    device/lineage/sepolicy/common/vendor/file_contexts  /root/android/lineage/out/target/product/onyx/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl > /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp ) && (/root/android/lineage/out/host/linux-x86/bin/checkfc /root/android/lineage/out/target/product/onyx/obj/ETC/sepolicy_intermediates/sepolicy /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp ) && (/root/android/lineage/out/host/linux-x86/bin/fc_sort /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts )"
    /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp: Multiple same specifications for /dev/block/platform/msm_sdcc\.1/by-name/persist.
    Error: could not load context file from /root/android/lineage/out/target/product/onyx/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts.tmp
    [ 86% 265/306] Building Kernel
    make: Entering directory '/root/android/lineage/kernel/oneplus/onyx'
      GEN     /root/android/lineage/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
    scripts/kconfig/conf --silentoldconfig Kconfig
      GEN     /root/android/lineage/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
      CHK     include/linux/version.h
      CHK     include/generated/utsrelease.h
      Using /root/android/lineage/kernel/oneplus/onyx as source for kernel
    make[2]: 'include/generated/mach-types.h' is up to date.
      CALL    /root/android/lineage/kernel/oneplus/onyx/scripts/checksyscalls.sh
      CHK     include/generated/compile.h
      GZIP    kernel/config_data.gz
      CHK     kernel/config_data.h
      Kernel: arch/arm/boot/Image is ready
      LD      arch/arm/boot/compressed/vmlinux
      OBJCOPY arch/arm/boot/zImage
      Kernel: arch/arm/boot/zImage is ready
      CAT     arch/arm/boot/zImage-dtb
      Kernel: arch/arm/boot/zImage-dtb is ready
    make: Leaving directory '/root/android/lineage/kernel/oneplus/onyx'
    Building DTBs
    make: Entering directory '/root/android/lineage/kernel/oneplus/onyx'
    make[2]: Nothing to be done for 'arch/arm/boot/dtbs'.
    make: Leaving directory '/root/android/lineage/kernel/oneplus/onyx'
    ninja: build stopped: subcommand failed.
    11:19:40 ninja failed with: exit status 1
    
    #### failed to build some targets (02:04 (mm:ss)) ####

    Also can you say something about integrating onyparts.apk into the rom? how to do it?

    https://github.com/YumeMichi/device_oneplus_onyx/commit/ee292ef3f6e78cde9f13761a52de7fde8393a939

    Is the configpanel (oppo-common) not working properly?
     
    • Like
    Reactions: psychem

    psychem

    Senior Member
    Oct 18, 2011
    1,288
    336
    @YumeMichi @Marado
    getting an error during build. how do i fix this?

    Code:
    [email protected]:~/android/lineage164knew
    $ brunch onyx
    including vendor/lineage/vendorsetup.sh
    Trying dependencies-only mode on a non-existing device tree?
    
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=9
    LINEAGE_VERSION=16.0-20191215-UNOFFICIAL-Psychem-onyx
    TARGET_PRODUCT=lineage_onyx
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_ARCH=arm
    TARGET_ARCH_VARIANT=armv7-a-neon
    TARGET_CPU_VARIANT=krait
    HOST_ARCH=x86_64
    HOST_2ND_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-5.4.0-antix.1-amd64-smp-x86_64-Debian-GNU/Linux-10-(buster)
    HOST_CROSS_OS=windows
    HOST_CROSS_ARCH=x86
    HOST_CROSS_2ND_ARCH=x86_64
    HOST_BUILD_TYPE=release
    BUILD_ID=PQ3A.190801.002
    OUT_DIR=/home/thinkmachine/android/lineage164knew/out
    PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8974 hardware/qcom/display-caf/msm8974 hardware/qcom/media-caf/msm8974
    ============================================
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=9
    LINEAGE_VERSION=16.0-20191215-UNOFFICIAL-Psychem-onyx
    TARGET_PRODUCT=lineage_onyx
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_ARCH=arm
    TARGET_ARCH_VARIANT=armv7-a-neon
    TARGET_CPU_VARIANT=krait
    HOST_ARCH=x86_64
    HOST_2ND_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-5.4.0-antix.1-amd64-smp-x86_64-Debian-GNU/Linux-10-(buster)
    HOST_CROSS_OS=windows
    HOST_CROSS_ARCH=x86
    HOST_CROSS_2ND_ARCH=x86_64
    HOST_BUILD_TYPE=release
    BUILD_ID=PQ3A.190801.002
    OUT_DIR=/home/thinkmachine/android/lineage164knew/out
    PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8974 hardware/qcom/display-caf/msm8974 hardware/qcom/media-caf/msm8974
    ============================================
    [1/1] /home/thinkmachine/android/lineage164knew/out/soong/.minibo...lav/android/lineage164knew/out/soong/.bootstrap/build.ninja
    [55/56] glob prebuilts/ndk/stl.bp
    [80/80] /home/thinkmachine/android/lineage164knew/out/soong/.boot...d /home/thinkmachine/android/lineage164knew/out/soong/build.ninja
    /home/thinkmachine/android/lineage164knew/out/build-lineage_onyx-cleanspec.ninja is missing, regenerating...
    /home/thinkmachine/android/lineage164knew/out/build-lineage_onyx.ninja is missing, regenerating...
    [623/1036] including system/sepolicy/Android.mk ...
    system/sepolicy/Android.mk:88: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
    [1036/1036] including vendor/qcom/opensource/dataservices/Android.mk ...
    [ 99% 799/800] glob bionic/libc/arch-arm/syscalls/**/*.S
    [  0% 169/73638] host C: compile_ioshark <= system/extras/ioshark/compile_ioshark.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.o 
    /bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang   	-I device/oneplus/onyx/include -I system/extras/ioshark -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/compile_ioshark_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_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  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -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   -std=gnu99  -g -O2 -Wall -Werror -D_GNU_SOURCE -fPIE -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.o system/extras/ioshark/compile_ioshark.c"
    prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
    [  0% 170/73638] host C: computestats <= system/extras/app-launcher/computestats.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.o 
    /bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang   	-I device/oneplus/onyx/include -I system/extras/app-launcher -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/computestats_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_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  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -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   -std=gnu99  -Wall -Werror -fPIE -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.o system/extras/app-launcher/computestats.c"
    prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
    [  0% 171/73638] host C: compile_ioshark <= system/extras/ioshark/compile_ioshark_subr.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.o 
    /bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang   	-I device/oneplus/onyx/include -I system/extras/ioshark -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/compile_ioshark_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_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  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -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   -std=gnu99  -g -O2 -Wall -Werror -D_GNU_SOURCE -fPIE -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.o system/extras/ioshark/compile_ioshark_subr.c"
    prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
     

    YumeMichi

    Senior Member
  • Nov 22, 2015
    481
    2,532
    Fuzhou
    blog.ikke.moe
    @YumeMichi @Marado
    getting an error during build. how do i fix this?

    Code:
    [email protected]:~/android/lineage164knew
    $ brunch onyx
    including vendor/lineage/vendorsetup.sh
    Trying dependencies-only mode on a non-existing device tree?
    
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=9
    LINEAGE_VERSION=16.0-20191215-UNOFFICIAL-Psychem-onyx
    TARGET_PRODUCT=lineage_onyx
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_ARCH=arm
    TARGET_ARCH_VARIANT=armv7-a-neon
    TARGET_CPU_VARIANT=krait
    HOST_ARCH=x86_64
    HOST_2ND_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-5.4.0-antix.1-amd64-smp-x86_64-Debian-GNU/Linux-10-(buster)
    HOST_CROSS_OS=windows
    HOST_CROSS_ARCH=x86
    HOST_CROSS_2ND_ARCH=x86_64
    HOST_BUILD_TYPE=release
    BUILD_ID=PQ3A.190801.002
    OUT_DIR=/home/thinkmachine/android/lineage164knew/out
    PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8974 hardware/qcom/display-caf/msm8974 hardware/qcom/media-caf/msm8974
    ============================================
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=9
    LINEAGE_VERSION=16.0-20191215-UNOFFICIAL-Psychem-onyx
    TARGET_PRODUCT=lineage_onyx
    TARGET_BUILD_VARIANT=userdebug
    TARGET_BUILD_TYPE=release
    TARGET_ARCH=arm
    TARGET_ARCH_VARIANT=armv7-a-neon
    TARGET_CPU_VARIANT=krait
    HOST_ARCH=x86_64
    HOST_2ND_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-5.4.0-antix.1-amd64-smp-x86_64-Debian-GNU/Linux-10-(buster)
    HOST_CROSS_OS=windows
    HOST_CROSS_ARCH=x86
    HOST_CROSS_2ND_ARCH=x86_64
    HOST_BUILD_TYPE=release
    BUILD_ID=PQ3A.190801.002
    OUT_DIR=/home/thinkmachine/android/lineage164knew/out
    PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8974 hardware/qcom/display-caf/msm8974 hardware/qcom/media-caf/msm8974
    ============================================
    [1/1] /home/thinkmachine/android/lineage164knew/out/soong/.minibo...lav/android/lineage164knew/out/soong/.bootstrap/build.ninja
    [55/56] glob prebuilts/ndk/stl.bp
    [80/80] /home/thinkmachine/android/lineage164knew/out/soong/.boot...d /home/thinkmachine/android/lineage164knew/out/soong/build.ninja
    /home/thinkmachine/android/lineage164knew/out/build-lineage_onyx-cleanspec.ninja is missing, regenerating...
    /home/thinkmachine/android/lineage164knew/out/build-lineage_onyx.ninja is missing, regenerating...
    [623/1036] including system/sepolicy/Android.mk ...
    system/sepolicy/Android.mk:88: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
    [1036/1036] including vendor/qcom/opensource/dataservices/Android.mk ...
    [ 99% 799/800] glob bionic/libc/arch-arm/syscalls/**/*.S
    [  0% 169/73638] host C: compile_ioshark <= system/extras/ioshark/compile_ioshark.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.o 
    /bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang   	-I device/oneplus/onyx/include -I system/extras/ioshark -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/compile_ioshark_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_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  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -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   -std=gnu99  -g -O2 -Wall -Werror -D_GNU_SOURCE -fPIE -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.o system/extras/ioshark/compile_ioshark.c"
    prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
    [  0% 170/73638] host C: computestats <= system/extras/app-launcher/computestats.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.o 
    /bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang   	-I device/oneplus/onyx/include -I system/extras/app-launcher -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/computestats_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_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  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -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   -std=gnu99  -Wall -Werror -fPIE -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.o system/extras/app-launcher/computestats.c"
    prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
    [  0% 171/73638] host C: compile_ioshark <= system/extras/ioshark/compile_ioshark_subr.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.o 
    /bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang   	-I device/oneplus/onyx/include -I system/extras/ioshark -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/compile_ioshark_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_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  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -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   -std=gnu99  -g -O2 -Wall -Werror -D_GNU_SOURCE -fPIE -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.o system/extras/ioshark/compile_ioshark_subr.c"
    prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

    apt-get install libtinfo5
     
    • Like
    Reactions: Marado and psychem

    psychem

    Senior Member
    Oct 18, 2011
    1,288
    336
    @YumeMichi

    one more error

    Code:
    [1036/1036] including vendor/qcom/opensource/dataservices/Android.mk ...
    [ 99% 799/800] glob bionic/libc/arch-arm/syscalls/**/*.S
    [  2% 1511/73638] Target buildinfo: /home/thinkmachine/android/li...uct/onyx/obj/ETC/system_build_prop_intermediates/build.prop
    Target buildinfo from: device/oneplus/onyx/system.prop
    [  5% 4079/73638] Yacc: ss <= external/iproute2/misc/ssfilter.y
    external/iproute2/misc/ssfilter.y: conflicts: 35 shift/reduce
    [  7% 5820/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_allocation.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_allocation.bc 
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_allocation.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_allocation.bc"
    prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    [  7% 5822/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_f16_math.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_f16_math.bc 
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_f16_math.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_f16_math.bc"
    prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    [  7% 5825/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_element.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_element.bc 
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_element.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_element.bc"
    prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    [  7% 5826/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_core.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_core.bc 
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_core.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_core.bc"
    prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    [  7% 5827/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_cl.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_cl.bc 
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_cl.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_cl.bc"
    prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    [  7% 5831/73638] Building Kernel Config
    make: Entering directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
      HOSTCC  scripts/basic/fixdep
      GEN     /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
      HOSTCC  scripts/kconfig/conf.o
      SHIPPED scripts/kconfig/zconf.tab.c
      SHIPPED scripts/kconfig/zconf.lex.c
      SHIPPED scripts/kconfig/zconf.hash.c
      HOSTCC  scripts/kconfig/zconf.tab.o
      HOSTLD  scripts/kconfig/conf
    #
    # configuration written to .config
    #
    make: Leaving directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
    make: Entering directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
      GEN     /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
    scripts/kconfig/conf --savedefconfig=defconfig Kconfig
    make: Leaving directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
    [  7% 5832/73638] build /home/thinkmachine/android/lineage164knew...bj/JAVA_LIBRARIES/core-oj_intermediates/annotated/timestamp
    WARNING: duplicate annotation of type libcore.util.NonNull
    WARNING: duplicate annotation of type libcore.util.NonNull
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(C)Ljava/io/Writer;, IN_METHOD=in method 'append(C)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(C)Ljava/lang/Appendable;, IN_METHOD=in method 'append(C)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;)Ljava/io/Writer;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
      @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
      @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;II)Ljava/io/Writer;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
      @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;II) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
      @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;II) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.util.HashMap, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)}
    Found class java.util.HashMap, but unable to insert @libcore.util.NullFromTypeParam:
      @libcore.util.NullFromTypeParam (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0), TYPE_ARGUMENT(0)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)}
    Found class java.util.HashMap, but unable to insert @libcore.util.NullFromTypeParam:
      @libcore.util.NullFromTypeParam (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0), TYPE_ARGUMENT(1)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)}
    [  7% 5833/73638] build /home/thinkmachine/android/lineage164knew/out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt
    ninja: build stopped: subcommand failed.
    15:30:58 ninja failed with: exit status 1
    
    #### failed to build some targets (01:04 (mm:ss)) ####
    
    [email protected]:~/android/lineage164knew
    $
     

    YumeMichi

    Senior Member
  • Nov 22, 2015
    481
    2,532
    Fuzhou
    blog.ikke.moe
    @YumeMichi

    one more error

    Code:
    [1036/1036] including vendor/qcom/opensource/dataservices/Android.mk ...
    [ 99% 799/800] glob bionic/libc/arch-arm/syscalls/**/*.S
    [  2% 1511/73638] Target buildinfo: /home/thinkmachine/android/li...uct/onyx/obj/ETC/system_build_prop_intermediates/build.prop
    Target buildinfo from: device/oneplus/onyx/system.prop
    [  5% 4079/73638] Yacc: ss <= external/iproute2/misc/ssfilter.y
    external/iproute2/misc/ssfilter.y: conflicts: 35 shift/reduce
    [  7% 5820/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_allocation.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_allocation.bc 
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_allocation.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_allocation.bc"
    prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    [  7% 5822/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_f16_math.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_f16_math.bc 
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_f16_math.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_f16_math.bc"
    prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    [  7% 5825/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_element.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_element.bc 
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_element.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_element.bc"
    prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    [  7% 5826/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_core.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_core.bc 
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_core.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_core.bc"
    prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    [  7% 5827/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_cl.c
    FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_cl.bc 
    /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_cl.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_cl.bc"
    prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    [  7% 5831/73638] Building Kernel Config
    make: Entering directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
      HOSTCC  scripts/basic/fixdep
      GEN     /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
      HOSTCC  scripts/kconfig/conf.o
      SHIPPED scripts/kconfig/zconf.tab.c
      SHIPPED scripts/kconfig/zconf.lex.c
      SHIPPED scripts/kconfig/zconf.hash.c
      HOSTCC  scripts/kconfig/zconf.tab.o
      HOSTLD  scripts/kconfig/conf
    #
    # configuration written to .config
    #
    make: Leaving directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
    make: Entering directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
      GEN     /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
    scripts/kconfig/conf --savedefconfig=defconfig Kconfig
    make: Leaving directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
    [  7% 5832/73638] build /home/thinkmachine/android/lineage164knew...bj/JAVA_LIBRARIES/core-oj_intermediates/annotated/timestamp
    WARNING: duplicate annotation of type libcore.util.NonNull
    WARNING: duplicate annotation of type libcore.util.NonNull
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(C)Ljava/io/Writer;, IN_METHOD=in method 'append(C)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(C)Ljava/lang/Appendable;, IN_METHOD=in method 'append(C)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;)Ljava/io/Writer;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
      @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
      @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;II)Ljava/io/Writer;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
      @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;II) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
      @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;II) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
    Found class java.util.HashMap, but unable to insert @libcore.util.NonNull:
      @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)}
    Found class java.util.HashMap, but unable to insert @libcore.util.NullFromTypeParam:
      @libcore.util.NullFromTypeParam (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0), TYPE_ARGUMENT(0)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)}
    Found class java.util.HashMap, but unable to insert @libcore.util.NullFromTypeParam:
      @libcore.util.NullFromTypeParam (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0), TYPE_ARGUMENT(1)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)}
    [  7% 5833/73638] build /home/thinkmachine/android/lineage164knew/out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt
    ninja: build stopped: subcommand failed.
    15:30:58 ninja failed with: exit status 1
    
    #### failed to build some targets (01:04 (mm:ss)) ####
    
    [email protected]:~/android/lineage164knew
    $

    apt-get install libncurses5
     
    • Like
    Reactions: Marado and psychem

    psychem

    Senior Member
    Oct 18, 2011
    1,288
    336
    @YumeMichi

    trying to build los 17. getting an error

    Code:
    [ 15% 11505/72747] Building Kernel
    FAILED: out/target/product/onyx/obj/KERNEL_OBJ/arch/arm/boot/zImage-dtb
    /bin/bash -c "(PATH=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-/bin:\$PATH PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/thinkmachine/android/los17/prebuilts/tools-lineage/common/perl-base /home/thinkmachine/android/los17/prebuilts/build-tools/linux-x86/bin/make  -j12 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ -C kernel/oneplus/onyx O=/home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" /home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\"   zImage-dtb ) && (if grep -q '^CONFIG_OF=y' out/target/product/onyx/obj/KERNEL_OBJ/.config; then 			echo \"Building DTBs\"; 	 PATH=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-/bin:\$PATH PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/thinkmachine/android/los17/prebuilts/tools-lineage/common/perl-base /home/thinkmachine/android/los17/prebuilts/build-tools/linux-x86/bin/make  -j12 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ -C kernel/oneplus/onyx O=/home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" /home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\"   dtbs; 		fi ) && (if grep -q '=m' out/target/product/onyx/obj/KERNEL_OBJ/.config; then 			echo \"Building Kernel Modules\"; 		 PATH=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-/bin:\$PATH PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/thinkmachine/android/los17/prebuilts/tools-lineage/common/perl-base /home/thinkmachine/android/los17/prebuilts/build-tools/linux-x86/bin/make  -j12 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ -C kernel/oneplus/onyx O=/home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" /home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\"   modules || exit \"\$?\"; 			echo \"Installing Kernel Modules\"; 			 PATH=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-/bin:\$PATH PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/thinkmachine/android/los17/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/thinkmachine/android/los17/prebuilts/tools-lineage/common/perl-base /home/thinkmachine/android/los17/prebuilts/build-tools/linux-x86/bin/make  -j12 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ -C kernel/oneplus/onyx O=/home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" /home/thinkmachine/android/los17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\"   INSTALL_MOD_PATH=/home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/kernel_modules_intermediates INSTALL_MOD_STRIP=1 modules_install; 			kernel_release=\$(cat out/target/product/onyx/obj/KERNEL_OBJ/include/config/kernel.release) 			modules=\$(find /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/kernel_modules_intermediates/lib/modules/\$kernel_release -type f -name '*.ko'); 			(    rm -rf out/target/product/onyx/system/vendor/lib/modules ) && (mkdir -p out/target/product/onyx/system/vendor/lib/modules ) && (cp \$modules out/target/product/onyx/system/vendor/lib/modules/ ) && (rm -rf /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates ) && (mkdir -p /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (cp \$modules /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (out/host/linux-x86/bin/depmod -b /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates 0.0 ) && (sed -e 's/\\(.*modules.*\\):/\\/\\1:/g' -e 's/ \\([^ ]*modules[^ ]*\\)/ \\/\\1/g' /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.dep > out/target/product/onyx/system/vendor/lib/modules/modules.dep ) && (cp /home/thinkmachine/android/los17/out/target/product/onyx/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.alias out/target/product/onyx/system/vendor/lib/modules); 		fi )"
    make: Entering directory '/home/thinkmachine/android/los17/kernel/oneplus/onyx'
      GEN     /home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
    scripts/kconfig/conf --silentoldconfig Kconfig
      GEN     /home/thinkmachine/android/los17/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
      CHK     include/generated/uapi/linux/version.h
      Using /home/thinkmachine/android/los17/kernel/oneplus/onyx as source for kernel
      CHK     include/generated/utsrelease.h
    make[2]: 'include/generated/mach-types.h' is up to date.
      CALL    /home/thinkmachine/android/los17/kernel/oneplus/onyx/scripts/checksyscalls.sh
      CHK     include/generated/compile.h
      GZIP    kernel/config_data.gz
      CHK     kernel/config_data.h
      CC      drivers/usb/class/ccid_bridge.o
      CC      drivers/usb/gadget/udc-core.o
      CC      drivers/usb/core/usb.o
      CC      drivers/usb/core/hub.o
      CC      drivers/usb/dwc3/core.o
      LD      drivers/usb/misc/built-in.o
      CC      drivers/usb/host/ehci-hcd.o
      CC      drivers/usb/mon/mon_main.o
      CC      drivers/usb/otg/otg.o
      CC      drivers/usb/serial/usb-serial.o
    /home/thinkmachine/android/los17/kernel/oneplus/onyx/drivers/usb/class/ccid_bridge.c: In function 'ccid_bridge_ioctl':
    /home/thinkmachine/android/los17/kernel/oneplus/onyx/drivers/usb/class/ccid_bridge.c:464:9: error: too few arguments to function '__usb_get_extra_descriptor'
       ret = __usb_get_extra_descriptor(udev->rawdescriptors[0],
             ^
    In file included from /home/thinkmachine/android/los17/kernel/oneplus/onyx/drivers/usb/class/ccid_bridge.c:21:0:
    /home/thinkmachine/android/los17/kernel/oneplus/onyx/include/linux/usb.h:305:5: note: declared here
     int __usb_get_extra_descriptor(char *buffer, unsigned size,
         ^
    make[4]: *** [/home/thinkmachine/android/los17/kernel/oneplus/onyx/scripts/Makefile.build:308: drivers/usb/class/ccid_bridge.o] Error 1
    make[3]: *** [/home/thinkmachine/android/los17/kernel/oneplus/onyx/scripts/Makefile.build:443: drivers/usb/class] Error 2
    make[3]: *** Waiting for unfinished jobs....
      CC      drivers/usb/otg/msm_otg.o
      CC      drivers/usb/mon/mon_stat.o
      CC      drivers/usb/mon/mon_text.o
      CC      drivers/usb/mon/mon_bin.o
      CC      drivers/usb/core/hcd.o
      CC      drivers/usb/gadget/ci13xxx_msm.o
      CC      drivers/usb/serial/generic.o
      CC      drivers/usb/gadget/android.o
      CC      drivers/usb/dwc3/host.o
      CC      drivers/usb/host/xhci.o
      CC      drivers/usb/dwc3/gadget.o
      CC      drivers/usb/serial/bus.o
      CC      drivers/usb/serial/csvt.o
      LD      drivers/usb/mon/usbmon.o
      LD      drivers/usb/mon/built-in.o
      CC      drivers/usb/dwc3/ep0.o
      CC      drivers/usb/core/urb.o
      LD      drivers/usb/serial/usbserial.o
      CC      drivers/usb/core/message.o
      LD      drivers/usb/serial/built-in.o
      CC      drivers/usb/core/driver.o
      CC      drivers/usb/core/config.o
      CC      drivers/usb/dwc3/dwc3_otg.o
      CC      drivers/usb/host/xhci-mem.o
      CC      drivers/usb/core/file.o
      CC      drivers/usb/core/buffer.o
      CC      drivers/usb/dwc3/debugfs.o
      CC      drivers/usb/core/sysfs.o
      CC      drivers/usb/core/endpoint.o
      CC      drivers/usb/core/devio.o
      CC      drivers/usb/core/notify.o
      LD      drivers/usb/otg/built-in.o
      CC      drivers/usb/dwc3/dwc3-msm.o
      CC      drivers/usb/core/generic.o
      CC      drivers/usb/core/quirks.o
      CC      drivers/usb/core/devices.o
      CC      drivers/usb/host/xhci-ring.o
      CC      drivers/usb/host/xhci-hub.o
      CC      drivers/usb/host/xhci-dbg.o
      CC      drivers/usb/host/xhci-plat.o
      CC      drivers/usb/dwc3/dwc3-exynos.o
      LD      drivers/usb/dwc3/dwc3.o
      LD      drivers/usb/core/usbcore.o
      LD      drivers/usb/core/built-in.o
      LD      drivers/usb/host/xhci-hcd.o
      LD      drivers/usb/dwc3/built-in.o
      LD      drivers/usb/host/built-in.o
      LD      drivers/usb/gadget/g_android.o
      LD      drivers/usb/gadget/built-in.o
    make[2]: *** [/home/thinkmachine/android/los17/kernel/oneplus/onyx/scripts/Makefile.build:443: drivers/usb] Error 2
    make[1]: *** [/home/thinkmachine/android/los17/kernel/oneplus/onyx/Makefile:979: drivers] Error 2
    make: *** [Makefile:130: sub-make] Error 2
    make: Leaving directory '/home/thinkmachine/android/los17/kernel/oneplus/onyx'
    15:03:42 ninja failed with: exit status 1
     

    Marado

    Senior Member
    Jan 28, 2015
    296
    119
    Putas
    yes using ym lineage 17 branch

    how does compiling kernel alone work?

    download ubertc arm-linux-androideabi-4.9 toolchain, and place it on your root directory.

    then go to kernel folder and open a terminal.
    then type:
    export ARCH=arm
    export CROSS_COMPILE=/home/ghost/gcc8.3/bin/arm-linux-androideabi- (REPLACE WITH YOUR TOOLCHAIN DIRECTORY)
    make onyx_defconfig
    make -j16

    when done type make clean && make mrproper, and close terminal.
     

    psychem

    Senior Member
    Oct 18, 2011
    1,288
    336
    download ubertc arm-linux-androideabi-4.9 toolchain, and place it on your root directory.

    then go to kernel folder and open a terminal.
    then type:
    export ARCH=arm
    export CROSS_COMPILE=/home/ghost/gcc8.3/bin/arm-linux-androideabi- (REPLACE WITH YOUR TOOLCHAIN DIRECTORY)
    make onyx_defconfig
    make -j16

    when done type make clean && make mrproper, and close terminal.

    downloaded ubertc arm-linux-androideabi-4.9 toolchain and unzipped to ~/android/los17/ubertc/

    Code:
    [email protected]:~/android/los17/kernel/oneplus/onyx
    $ export ARCH=arm
    [email protected]:~/android/los17/kernel/oneplus/onyx
    $ export CROSS_COMPILE=/home/thinkmachine/android/los17/ubertc/arm-linux-androideabi/
    [email protected]:~/android/los17/kernel/oneplus/onyx
    $ make onyx_defconfig
    #
    # configuration written to .config
    #
    [email protected]:~/android/los17/kernel/oneplus/onyx
    $ make -j16
    make: /home/thinkmachine/android/los17/ubertc/arm-linux-androideabi/gcc: Command not found
    scripts/kconfig/conf --silentoldconfig Kconfig
    make: /home/thinkmachine/android/los17/ubertc/arm-linux-androideabi/gcc: Command not found
      CHK     include/generated/uapi/linux/version.h
      CC      scripts/mod/empty.o
    /bin/sh: 1: /home/thinkmachine/android/los17/ubertc/arm-linux-androideabi/gcc: not found
    make[2]: *** [scripts/Makefile.build:308: scripts/mod/empty.o] Error 127
    make[1]: *** [scripts/Makefile.build:443: scripts/mod] Error 2
    make[1]: *** Waiting for unfinished jobs....
    make: *** [Makefile:531: scripts] Error 2
    make: *** Waiting for unfinished jobs....
    [email protected]:~/android/los17/kernel/oneplus/onyx
    $
     
    Last edited:

    Top Liked Posts

    • There are no posts matching your filters.
    • 2
      https://www.google.pt/search?source...i19k1j0i22i30i19k1j0i22i10i30k1.0.f0TyAkeA2NU

      google is your friend...
      you have to learn by yourself if you have no one that teaches you... I learned myself too...

      4 essential things:
      1- rom source
      2-device tree
      3- device kernel
      4-device vendor
      2
      @YumeMichi

      one more error

      Code:
      [1036/1036] including vendor/qcom/opensource/dataservices/Android.mk ...
      [ 99% 799/800] glob bionic/libc/arch-arm/syscalls/**/*.S
      [  2% 1511/73638] Target buildinfo: /home/thinkmachine/android/li...uct/onyx/obj/ETC/system_build_prop_intermediates/build.prop
      Target buildinfo from: device/oneplus/onyx/system.prop
      [  5% 4079/73638] Yacc: ss <= external/iproute2/misc/ssfilter.y
      external/iproute2/misc/ssfilter.y: conflicts: 35 shift/reduce
      [  7% 5820/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_allocation.c
      FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_allocation.bc 
      /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_allocation.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_allocation.bc"
      prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
      [  7% 5822/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_f16_math.c
      FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_f16_math.bc 
      /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_f16_math.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_f16_math.bc"
      prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
      [  7% 5825/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_element.c
      FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_element.bc 
      /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_element.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_element.bc"
      prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
      [  7% 5826/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_core.c
      FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_core.bc 
      /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_core.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_core.bc"
      prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
      [  7% 5827/73638] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_cl.c
      FAILED: /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_cl.bc 
      /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript32-linux-androideabi -fsigned-char  -Wno-deprecated -Werror  -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks/rs/driver/runtime/rs_cl.c -o /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_cl.bc"
      prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
      [  7% 5831/73638] Building Kernel Config
      make: Entering directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
        HOSTCC  scripts/basic/fixdep
        GEN     /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
        HOSTCC  scripts/kconfig/conf.o
        SHIPPED scripts/kconfig/zconf.tab.c
        SHIPPED scripts/kconfig/zconf.lex.c
        SHIPPED scripts/kconfig/zconf.hash.c
        HOSTCC  scripts/kconfig/zconf.tab.o
        HOSTLD  scripts/kconfig/conf
      #
      # configuration written to .config
      #
      make: Leaving directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
      make: Entering directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
        GEN     /home/thinkmachine/android/lineage164knew/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
      scripts/kconfig/conf --savedefconfig=defconfig Kconfig
      make: Leaving directory '/home/thinkmachine/android/lineage164knew/kernel/oneplus/onyx'
      [  7% 5832/73638] build /home/thinkmachine/android/lineage164knew...bj/JAVA_LIBRARIES/core-oj_intermediates/annotated/timestamp
      WARNING: duplicate annotation of type libcore.util.NonNull
      WARNING: duplicate annotation of type libcore.util.NonNull
      Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
        @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(C)Ljava/io/Writer;, IN_METHOD=in method 'append(C)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
      Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
        @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(C)Ljava/lang/Appendable;, IN_METHOD=in method 'append(C)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
      Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
        @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;)Ljava/io/Writer;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
      Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
        @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
      Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
        @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
      Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
        @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
      Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
        @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;II)Ljava/io/Writer;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
      Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
        @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;II) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/io/Writer;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
      Found class java.io.PrintWriter, but unable to insert @libcore.util.NonNull:
        @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, RETURN_TYPE=ReturnTypeCriterion for method: append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
      Found class java.io.PrintWriter, but unable to insert @libcore.util.Nullable:
        @libcore.util.Nullable (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at outermost type, PARAM=ParamCriterion for method: append(Ljava/lang/CharSequence;II) at position: 0, IN_METHOD=in method 'append(Ljava/lang/CharSequence;II)Ljava/lang/Appendable;', IN_CLASS=In class 'java.io.PrintWriter' (exactly)}
      Found class java.util.HashMap, but unable to insert @libcore.util.NonNull:
        @libcore.util.NonNull (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)}
      Found class java.util.HashMap, but unable to insert @libcore.util.NullFromTypeParam:
        @libcore.util.NullFromTypeParam (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0), TYPE_ARGUMENT(0)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)}
      Found class java.util.HashMap, but unable to insert @libcore.util.NullFromTypeParam:
        @libcore.util.NullFromTypeParam (nl=false) @ {GENERIC_ARRAY_LOCATION=GenericArrayLocationCriterion at ( [TYPE_ARGUMENT(0), TYPE_ARGUMENT(1)] ), RETURN_TYPE=ReturnTypeCriterion for method: entrySet()Ljava/util/Set;, IN_METHOD=in method 'entrySet()Ljava/util/Set;', IN_CLASS=In class 'java.util.HashMap' (exactly)}
      [  7% 5833/73638] build /home/thinkmachine/android/lineage164knew/out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt
      ninja: build stopped: subcommand failed.
      15:30:58 ninja failed with: exit status 1
      
      #### failed to build some targets (01:04 (mm:ss)) ####
      
      [email protected]:~/android/lineage164knew
      $

      apt-get install libncurses5
      2
      @YumeMichi @Marado
      getting an error during build. how do i fix this?

      Code:
      [email protected]:~/android/lineage164knew
      $ brunch onyx
      including vendor/lineage/vendorsetup.sh
      Trying dependencies-only mode on a non-existing device tree?
      
      ============================================
      PLATFORM_VERSION_CODENAME=REL
      PLATFORM_VERSION=9
      LINEAGE_VERSION=16.0-20191215-UNOFFICIAL-Psychem-onyx
      TARGET_PRODUCT=lineage_onyx
      TARGET_BUILD_VARIANT=userdebug
      TARGET_BUILD_TYPE=release
      TARGET_ARCH=arm
      TARGET_ARCH_VARIANT=armv7-a-neon
      TARGET_CPU_VARIANT=krait
      HOST_ARCH=x86_64
      HOST_2ND_ARCH=x86
      HOST_OS=linux
      HOST_OS_EXTRA=Linux-5.4.0-antix.1-amd64-smp-x86_64-Debian-GNU/Linux-10-(buster)
      HOST_CROSS_OS=windows
      HOST_CROSS_ARCH=x86
      HOST_CROSS_2ND_ARCH=x86_64
      HOST_BUILD_TYPE=release
      BUILD_ID=PQ3A.190801.002
      OUT_DIR=/home/thinkmachine/android/lineage164knew/out
      PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8974 hardware/qcom/display-caf/msm8974 hardware/qcom/media-caf/msm8974
      ============================================
      ============================================
      PLATFORM_VERSION_CODENAME=REL
      PLATFORM_VERSION=9
      LINEAGE_VERSION=16.0-20191215-UNOFFICIAL-Psychem-onyx
      TARGET_PRODUCT=lineage_onyx
      TARGET_BUILD_VARIANT=userdebug
      TARGET_BUILD_TYPE=release
      TARGET_ARCH=arm
      TARGET_ARCH_VARIANT=armv7-a-neon
      TARGET_CPU_VARIANT=krait
      HOST_ARCH=x86_64
      HOST_2ND_ARCH=x86
      HOST_OS=linux
      HOST_OS_EXTRA=Linux-5.4.0-antix.1-amd64-smp-x86_64-Debian-GNU/Linux-10-(buster)
      HOST_CROSS_OS=windows
      HOST_CROSS_ARCH=x86
      HOST_CROSS_2ND_ARCH=x86_64
      HOST_BUILD_TYPE=release
      BUILD_ID=PQ3A.190801.002
      OUT_DIR=/home/thinkmachine/android/lineage164knew/out
      PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8974 hardware/qcom/display-caf/msm8974 hardware/qcom/media-caf/msm8974
      ============================================
      [1/1] /home/thinkmachine/android/lineage164knew/out/soong/.minibo...lav/android/lineage164knew/out/soong/.bootstrap/build.ninja
      [55/56] glob prebuilts/ndk/stl.bp
      [80/80] /home/thinkmachine/android/lineage164knew/out/soong/.boot...d /home/thinkmachine/android/lineage164knew/out/soong/build.ninja
      /home/thinkmachine/android/lineage164knew/out/build-lineage_onyx-cleanspec.ninja is missing, regenerating...
      /home/thinkmachine/android/lineage164knew/out/build-lineage_onyx.ninja is missing, regenerating...
      [623/1036] including system/sepolicy/Android.mk ...
      system/sepolicy/Android.mk:88: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
      [1036/1036] including vendor/qcom/opensource/dataservices/Android.mk ...
      [ 99% 799/800] glob bionic/libc/arch-arm/syscalls/**/*.S
      [  0% 169/73638] host C: compile_ioshark <= system/extras/ioshark/compile_ioshark.c
      FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.o 
      /bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang   	-I device/oneplus/onyx/include -I system/extras/ioshark -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/compile_ioshark_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_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  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -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   -std=gnu99  -g -O2 -Wall -Werror -D_GNU_SOURCE -fPIE -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.o system/extras/ioshark/compile_ioshark.c"
      prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
      [  0% 170/73638] host C: computestats <= system/extras/app-launcher/computestats.c
      FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.o 
      /bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang   	-I device/oneplus/onyx/include -I system/extras/app-launcher -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/computestats_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_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  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -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   -std=gnu99  -Wall -Werror -fPIE -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.o system/extras/app-launcher/computestats.c"
      prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
      [  0% 171/73638] host C: compile_ioshark <= system/extras/ioshark/compile_ioshark_subr.c
      FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.o 
      /bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang   	-I device/oneplus/onyx/include -I system/extras/ioshark -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/compile_ioshark_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_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  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -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 -Wno-zero-as-null-pointer-constant -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   -std=gnu99  -g -O2 -Wall -Werror -D_GNU_SOURCE -fPIE -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.o system/extras/ioshark/compile_ioshark_subr.c"
      prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

      apt-get install libtinfo5
      1
      what if the source hasnt been updated? like hunfatal was updating RR before LOS was updated by YM

      You can send a pm to @hunfatal, he will certainly respond your questions....
      but RR is based on lineage, so their source is synchronized. ;)
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone