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 <[email protected]> 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
> -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_cl.c
> -o
> out/target/product/blueline/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
> [  2% 3109/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_matrix.c
> FAILED:
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_matrix.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_matrix.c -o
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_matrix.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% 3110/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_mesh.c
> FAILED:
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_mesh.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_mesh.c -o
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_mesh.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% 3111/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_element.c
> FAILED:
> out/target/product/blueline/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
> 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_element.c -o
> out/target/product/blueline/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
> [  2% 3112/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_program.c
> FAILED:
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_program.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_program.c -o
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_program.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% 3113/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_f16_math.c
> FAILED:
> out/target/product/blueline/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
> 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_f16_math.c -o
> out/target/product/blueline/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
> [  2% 3114/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_sample.c
> FAILED:
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_sample.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_sample.c -o
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_sample.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% 3115/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_sampler.c
> FAILED:
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_sampler.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_sampler.c -o
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_sampler.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% 3116/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_convert.c
> FAILED:
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_convert.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_convert.c -o
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_convert.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% 3117/106550] bc: libclcore.bc <=
> frameworks/rs/driver/runtime/rs_quaternion.c
> FAILED:
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_quaternion.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_quaternion.c -o
> out/target/product/blueline/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_quaternion.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
> 09:35:30 ninja failed with: exit status 1
>
> #### failed to build some targets (03:19 (mm:ss)) ####
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to