Re: [android-building] failed to build some targets - libncurses.so.5: cannot open shared object file: No such file or dire

2019-03-07 Thread Edvard Heiberg Holst
You need to install libncurses5.

On Thu, Mar 7, 2019, 16:40  wrote:

> Trying to build AOSP for blueline
> Ive followed the build instructions several times, requirements,
> establishing build environment and so forth. Also included the vendor
> binaries. And I always run into this issue. I do run Ubuntu 18.10, should I
> roll back to 18.04 or even 14.04?
>
>
> make clobber
> 09:31:35 Entire build directory removed.
>
>  build completed successfully (1 seconds) 
>
> source build/envsetup.sh
>
> lunch aosp_blueline-userdebug
>
> 
> PLATFORM_VERSION_CODENAME=Q
> PLATFORM_VERSION=Q
> TARGET_PRODUCT=aosp_blueline
> TARGET_BUILD_VARIANT=userdebug
> TARGET_BUILD_TYPE=release
> TARGET_ARCH=arm64
> TARGET_ARCH_VARIANT=armv8-2a
> TARGET_CPU_VARIANT=kryo385
> TARGET_2ND_ARCH=arm
> TARGET_2ND_ARCH_VARIANT=armv8-2a
> TARGET_2ND_CPU_VARIANT=kryo385
> HOST_ARCH=x86_64
> HOST_2ND_ARCH=x86
> HOST_OS=linux
> HOST_OS_EXTRA=Linux-4.18.0-15-generic-x86_64-Ubuntu-18.10
> HOST_CROSS_OS=windows
> HOST_CROSS_ARCH=x86
> HOST_CROSS_2ND_ARCH=x86_64
> HOST_BUILD_TYPE=release
> BUILD_ID=PI
> OUT_DIR=out
> PRODUCT_SOONG_NAMESPACES=device/google/crosshatch hardware/google/av
> hardware/google/interfaces hardware/qcom/sdm845 vendor/qcom/sdm845
>
>
>
>
> make -j12
>
> 
> PLATFORM_VERSION_CODENAME=Q
> PLATFORM_VERSION=Q
> TARGET_PRODUCT=aosp_blueline
> TARGET_BUILD_VARIANT=userdebug
> TARGET_BUILD_TYPE=release
> TARGET_ARCH=arm64
> TARGET_ARCH_VARIANT=armv8-2a
> TARGET_CPU_VARIANT=kryo385
> TARGET_2ND_ARCH=arm
> TARGET_2ND_ARCH_VARIANT=armv8-2a
> TARGET_2ND_CPU_VARIANT=kryo385
> HOST_ARCH=x86_64
> HOST_2ND_ARCH=x86
> HOST_OS=linux
> HOST_OS_EXTRA=Linux-4.18.0-15-generic-x86_64-Ubuntu-18.10
> HOST_CROSS_OS=windows
> HOST_CROSS_ARCH=x86
> HOST_CROSS_2ND_ARCH=x86_64
> HOST_BUILD_TYPE=release
> BUILD_ID=PI
> OUT_DIR=out
> PRODUCT_SOONG_NAMESPACES=device/google/crosshatch hardware/google/av
> hardware/google/interfaces hardware/qcom/sdm845 vendor/qcom/sdm845
> 
> [100% 734/734] writing build rules ...
> build/make/core/dex_preopt_libart.mk:10: warning: overriding commands for
> target `out/target/product/blueline/system/etc/boot-image.prof'
> build/make/core/dex_preopt_libart.mk:10: warning: ignoring old commands
> for target `out/target/product/blueline/system/etc/boot-image.prof'
> build/make/core/Makefile:28: warning: overriding commands for target
> `out/target/product/blueline/vendor/etc/IPACM_cfg.xml'
> build/make/core/base_rules.mk:435: warning: ignoring old commands for
> target `out/target/product/blueline/vendor/etc/IPACM_cfg.xml'
> [  1% 2115/106550] Target buildinfo:
> out/target/product/blueline/obj/ETC/system_build_prop_intermediates/build.prop
> Target buildinfo from: device/google/crosshatch/system.prop
> [  2% 3106/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_core.c
> FAILED:
> out/target/product/blueline/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
> renderscript64-linux-android -fsigned-char  -Wno-deprecated -Werror
> -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS
> -DARCH_ARM64_HAVE_NEON -x renderscript
> frameworks/rs/driver/runtime/rs_core.c -o
> out/target/product/blueline/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
> [  2% 3107/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_allocation.c
> FAILED:
> out/target/product/blueline/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
> renderscript64-linux-android -fsigned-char  -Wno-deprecated -Werror
> -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS
> -DARCH_ARM64_HAVE_NEON -x renderscript
> frameworks/rs/driver/runtime/rs_allocation.c -o
> out/target/product/blueline/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
> [  2% 3108/106550] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_cl.c
> FAILED:
> out/target/product/blueline/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

Re: [android-building] failed to build some targets - libncurses.so.5: cannot open shared object file: No such file or dire

2019-03-07 Thread 'Dan Willemsen' via Android Building
It looks like you need to install libncurses5 (sudo apt install
libncurses5), as that's the package that provides the 64-bit
libncurses.so.5 on Ubuntu 18.04.

Let me know if that fixes the issue and we'll add it to the instructions on
source.android.com.

Thanks,
Dan

On Thu, Mar 7, 2019 at 7:40 AM  wrote:

> Trying to build AOSP for blueline
> Ive followed the build instructions several times, requirements,
> establishing build environment and so forth. Also included the vendor
> binaries. And I always run into this issue. I do run Ubuntu 18.10, should I
> roll back to 18.04 or even 14.04?
>
>
> make clobber
> 09:31:35 Entire build directory removed.
>
>  build completed successfully (1 seconds) 
>
> source build/envsetup.sh
>
> lunch aosp_blueline-userdebug
>
> 
> PLATFORM_VERSION_CODENAME=Q
> PLATFORM_VERSION=Q
> TARGET_PRODUCT=aosp_blueline
> TARGET_BUILD_VARIANT=userdebug
> TARGET_BUILD_TYPE=release
> TARGET_ARCH=arm64
> TARGET_ARCH_VARIANT=armv8-2a
> TARGET_CPU_VARIANT=kryo385
> TARGET_2ND_ARCH=arm
> TARGET_2ND_ARCH_VARIANT=armv8-2a
> TARGET_2ND_CPU_VARIANT=kryo385
> HOST_ARCH=x86_64
> HOST_2ND_ARCH=x86
> HOST_OS=linux
> HOST_OS_EXTRA=Linux-4.18.0-15-generic-x86_64-Ubuntu-18.10
> HOST_CROSS_OS=windows
> HOST_CROSS_ARCH=x86
> HOST_CROSS_2ND_ARCH=x86_64
> HOST_BUILD_TYPE=release
> BUILD_ID=PI
> OUT_DIR=out
> PRODUCT_SOONG_NAMESPACES=device/google/crosshatch hardware/google/av
> hardware/google/interfaces hardware/qcom/sdm845 vendor/qcom/sdm845
>
>
>
>
> make -j12
>
> 
> PLATFORM_VERSION_CODENAME=Q
> PLATFORM_VERSION=Q
> TARGET_PRODUCT=aosp_blueline
> TARGET_BUILD_VARIANT=userdebug
> TARGET_BUILD_TYPE=release
> TARGET_ARCH=arm64
> TARGET_ARCH_VARIANT=armv8-2a
> TARGET_CPU_VARIANT=kryo385
> TARGET_2ND_ARCH=arm
> TARGET_2ND_ARCH_VARIANT=armv8-2a
> TARGET_2ND_CPU_VARIANT=kryo385
> HOST_ARCH=x86_64
> HOST_2ND_ARCH=x86
> HOST_OS=linux
> HOST_OS_EXTRA=Linux-4.18.0-15-generic-x86_64-Ubuntu-18.10
> HOST_CROSS_OS=windows
> HOST_CROSS_ARCH=x86
> HOST_CROSS_2ND_ARCH=x86_64
> HOST_BUILD_TYPE=release
> BUILD_ID=PI
> OUT_DIR=out
> PRODUCT_SOONG_NAMESPACES=device/google/crosshatch hardware/google/av
> hardware/google/interfaces hardware/qcom/sdm845 vendor/qcom/sdm845
> 
> [100% 734/734] writing build rules ...
> build/make/core/dex_preopt_libart.mk:10: warning: overriding commands for
> target `out/target/product/blueline/system/etc/boot-image.prof'
> build/make/core/dex_preopt_libart.mk:10: warning: ignoring old commands
> for target `out/target/product/blueline/system/etc/boot-image.prof'
> build/make/core/Makefile:28: warning: overriding commands for target
> `out/target/product/blueline/vendor/etc/IPACM_cfg.xml'
> build/make/core/base_rules.mk:435: warning: ignoring old commands for
> target `out/target/product/blueline/vendor/etc/IPACM_cfg.xml'
> [  1% 2115/106550] Target buildinfo:
> out/target/product/blueline/obj/ETC/system_build_prop_intermediates/build.prop
> Target buildinfo from: device/google/crosshatch/system.prop
> [  2% 3106/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_core.c
> FAILED:
> out/target/product/blueline/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
> renderscript64-linux-android -fsigned-char  -Wno-deprecated -Werror
> -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS
> -DARCH_ARM64_HAVE_NEON -x renderscript
> frameworks/rs/driver/runtime/rs_core.c -o
> out/target/product/blueline/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
> [  2% 3107/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_allocation.c
> FAILED:
> out/target/product/blueline/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
> renderscript64-linux-android -fsigned-char  -Wno-deprecated -Werror
> -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS
> -DARCH_ARM64_HAVE_NEON -x renderscript
> frameworks/rs/driver/runtime/rs_allocation.c -o
> out/target/product/blueline/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
> [  2% 3108/106550] bc: