[LineageOS Questions & Answers] acetone802000:
Hello, i tried to compile myself the lineage 17.1 but compilation stop with some errors that i don't understand !

Looking for dependencies in device/oneplus/oneplus3

Looking for dependencies in device/oppo/common

device/oppo/common has no additional dependencies.

Looking for dependencies in kernel/oneplus/msm8996

kernel/oneplus/msm8996 has no additional dependencies.

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=10

LINEAGE_VERSION=17.1-20200224-UNOFFICIAL-oneplus3

TARGET_PRODUCT=lineage_oneplus3

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=kryo

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv8-a

TARGET_2ND_CPU_VARIANT=kryo

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-5.3.0-40-generic-x86_64-Ubuntu-19.10

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=QQ1B.200205.002

OUT_DIR=out

PRODUCT_SOONG_NAMESPACES=vendor/oneplus/oneplus3 device/oneplus/oneplus3 vendor/nxp/opensource/pn5xx hardware/qcom-caf/msm8996

============================================

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=10

LINEAGE_VERSION=17.1-20200224-UNOFFICIAL-oneplus3

TARGET_PRODUCT=lineage_oneplus3

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=kryo

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv8-a

TARGET_2ND_CPU_VARIANT=kryo

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-5.3.0-40-generic-x86_64-Ubuntu-19.10

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=QQ1B.200205.002

OUT_DIR=out

PRODUCT_SOONG_NAMESPACES=vendor/oneplus/oneplus3 device/oneplus/oneplus3 vendor/nxp/opensource/pn5xx hardware/qcom-caf/msm8996

============================================

[ 38% 246/632] including device/oneplus/oneplus3/Android.mk ...

device/oneplus/oneplus3/vndk/Android.mk:2: warning: ************* BOARD VNDK is not enabled - compiling vndk-sp ***************************

[ 2% 2245/102294] target C++: libgps.utils <= device/oneplus/oneplus3/gps/u

device/oneplus/oneplus3/gps/utils/MsgTask.cpp:77:16: warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]

if (msg && this) {

~~ ^~~~

1 warning generated.

[ 2% 2248/102294] target C++: libloc_core <= device/oneplus/oneplus3/gps/co

device/oneplus/oneplus3/gps/core/LocAdapterBase.cpp:50:5: warning: field 'mMsgTask' will be initialized after field 'mIsEngineCapabilitiesKnown' [-Wreorder]

mMsgTask(context->getMsgTask()),

^

device/oneplus/oneplus3/gps/core/LocAdapterBase.cpp:91:47: warning: unused parameter 'pDataNotify' [-Wunused-parameter]

GnssDataNotification* pDataNotify,

^

device/oneplus/oneplus3/gps/core/LocAdapterBase.cpp:92:29: warning: unused parameter 'msInWeek' [-Wunused-parameter]

int msInWeek)

^

device/oneplus/oneplus3/gps/core/LocAdapterBase.cpp:165:47: warning: unused parameter 'emergencyState' [-Wunused-parameter]

const LocInEmergency emergencyState)

^

device/oneplus/oneplus3/gps/core/LocAdapterBase.cpp:334:49: warning: unused parameter 'client' [-Wunused-parameter]

LocAdapterBase::stopClientSessions(LocationAPI* client)

^

5 warnings generated.

[ 2% 2252/102294] target C: libgps.utils <= device/oneplus/oneplus3/gps/uti

device/oneplus/oneplus3/gps/utils/msg_q.c:299:14: warning: implicit conversion from enumeration type 'linked_list_err_type' to different enumeration type 'msq_q_err_type' [-Wenum-conversion]

return eLINKED_LIST_EMPTY;

~~~~~~ ^~~~~~~~~~~~~~~~~~

1 warning generated.

[ 2% 2269/102294] target C++: libgps.utils <= device/oneplus/oneplus3/gps/u

In file included from device/oneplus/oneplus3/gps/utils/LocIpc.cpp:37:

device/oneplus/oneplus3/gps/utils/LocIpc.h:135:83: warning: unused parameter 'listener' [-Wunused-parameter]

virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener) {

^

1 warning generated.

[ 2% 2273/102294] target C++: libgnss <= device/oneplus/oneplus3/gps/gnss/A

In file included from device/oneplus/oneplus3/gps/gnss/Agps.cpp:32:

device/oneplus/oneplus3/gps/gnss/Agps.h:158:9: warning: field 'mFrameworkStatusV4Cb' will be initialized after field 'mAgpsManager' [-Wreorder]

mFrameworkStatusV4Cb(NULL),

^

1 warning generated.

[ 2% 2285/102294] target C++: libgnss <= device/oneplus/oneplus3/gps/gnss/l

In file included from device/oneplus/oneplus3/gps/gnss/location_gnss.cpp:30:

In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.h:37:

device/oneplus/oneplus3/gps/gnss/Agps.h:158:9: warning: field 'mFrameworkStatusV4Cb' will be initialized after field 'mAgpsManager' [-Wreorder]

mFrameworkStatusV4Cb(NULL),

^

In file included from device/oneplus/oneplus3/gps/gnss/location_gnss.cpp:30:

In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.h:39:

In file included from device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.h:34:

device/oneplus/oneplus3/gps/utils/LocIpc.h:135:83: warning: unused parameter 'listener' [-Wunused-parameter]

virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener) {

^

2 warnings generated.

[ 2% 2311/102294] target C++: libgnss <= device/oneplus/oneplus3/gps/gnss/X

In file included from device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.cpp:46:

In file included from device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.h:34:

device/oneplus/oneplus3/gps/utils/LocIpc.h:135:83: warning: unused parameter 'listener' [-Wunused-parameter]

virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener) {

^

device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.cpp:68:55: warning: unused parameter 'length' [-Wunused-parameter]

virtual void onReceive(const char* data, uint32_t length,

^

device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.cpp:69:48: warning: unused parameter 'recver' [-Wunused-parameter]

const LocIpcRecver* recver) override {

^

3 warnings generated.

[ 2% 2328/102294] target C++: libgeofencing <= device/oneplus/oneplus3/gps/

device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:170:81: warning: unused parameter 'err' [-Wunused-parameter]

new LocApiResponse(*getContext(), [] (LocationError err ) {}));

^

device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:248:53: warning: unused parameter 'err' [-Wunused-parameter]

errs, i] (LocationError err ) {

^

device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:349:63: warning: unused parameter 'err' [-Wunused-parameter]

&mApi = mApi, errs, i] (LocationError err ) {

^

device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:425:63: warning: unused parameter 'err' [-Wunused-parameter]

&mApi = mApi, errs, i] (LocationError err ) {

^

device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:500:63: warning: unused parameter 'err' [-Wunused-parameter]

&mApi = mApi, errs, i] (LocationError err ) {

^

device/oneplus/oneplus3/gps/geofence/GeofenceAdapter.cpp:583:88: warning: unused parameter 'err' [-Wunused-parameter]

&mApi = mApi, mOptions = mOptions, errs, i] (LocationError err ) {

^

6 warnings generated.

[ 2% 2644/102294] target C++: libgnss <= device/oneplus/oneplus3/gps/gnss/G

In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:41:

In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.h:37:

device/oneplus/oneplus3/gps/gnss/Agps.h:158:9: warning: field 'mFrameworkStatusV4Cb' will be initialized after field 'mAgpsManager' [-Wreorder]

mFrameworkStatusV4Cb(NULL),

^

In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:41:

In file included from device/oneplus/oneplus3/gps/gnss/GnssAdapter.h:39:

In file included from device/oneplus/oneplus3/gps/gnss/XtraSystemStatusObserver.h:34:

device/oneplus/oneplus3/gps/utils/LocIpc.h:135:83: warning: unused parameter 'listener' [-Wunused-parameter]

virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener) {

^

device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:72:5: warning: field 'mLocPositionMode' will be initialized after field 'mNHzNeeded' [-Wreorder]

mLocPositionMode(),

^

device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:94:5: warning: field 'mBlockCPIInfo' will be initialized after field 'mNfwCb' [-Wreorder]

mBlockCPIInfo{},

^

device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:99:5: warning: field 'mPowerStateCb' will be initialized after field 'mIsE911Session' [-Wreorder]

mPowerStateCb(nullptr),

^

device/oneplus/oneplus3/gps/gnss/GnssAdapter.cpp:100:5: warning: field 'mIsE911Session' will be initialized after field 'mGnssMbSvIdUsedInPosition' [-Wreorder]

mIsE911Session(NULL),

^

6 warnings generated.

[ 3% 3813/102294] target C: libwpa_client <= external/wpa_supplicant_8/wpa_

external/wpa_supplicant_8/wpa_supplicant/src/common/wpa_ctrl.c:291:9: warning: 'readdir_r' is deprecated: readdir_r is deprecated; use readdir instead [-Wdeprecated-declarations]

while (readdir_r(dir, &entry, &result) == 0 && result != NULL) {

^

bionic/libc/include/dirent.h:83:92: note: 'readdir_r' has been explicitly marked deprecated here

int readdir_r(DIR* __dir, struct dirent* __entry, struct dirent** __buffer) __attribute__((__deprecated__("readdir_r is deprecated; use readdir instead")));

^

1 warning generated.

[ 3% 3936/102294] Building Kernel Config

make: Entering directory '/home/francois/android/lineage/kernel/oneplus/msm8996'

make[1]: Entering directory '/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'

HOSTCC scripts/basic/fixdep

GEN ./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[1]: Leaving directory '/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'

make: Leaving directory '/home/francois/android/lineage/kernel/oneplus/msm8996'

make: Entering directory '/home/francois/android/lineage/kernel/oneplus/msm8996'

make[1]: Entering directory '/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'

GEN ./Makefile

scripts/kconfig/conf --savedefconfig=defconfig Kconfig

make[1]: Leaving directory '/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'

make: Leaving directory '/home/francois/android/lineage/kernel/oneplus/msm8996'

[ 4% 4391/102294] build out/target/common/obj/all-event-log-tags.txt

packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:6: warning: tag "lock_screen_type" (90200) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:6

packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:9: warning: tag "exp_det_device_admin_activated_by_user" (90201) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:9

packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:12: warning: tag "exp_det_device_admin_declined_by_user" (90202) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:12

packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:15: warning: tag "exp_det_device_admin_uninstalled_by_user" (90203) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:15

packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:18: warning: tag "settings_latency" (90204) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:18

[ 6% 6640/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_cl.

FAILED: out/target/product/oneplus3/obj_arm/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 out/target/product/oneplus3/obj_arm/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

[ 6% 6641/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_ele

FAILED: out/target/product/oneplus3/obj_arm/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 out/target/product/oneplus3/obj_arm/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

[ 6% 6642/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_f16

FAILED: out/target/product/oneplus3/obj_arm/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 out/target/product/oneplus3/obj_arm/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

[ 6% 6643/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_mes

FAILED: out/target/product/oneplus3/obj_arm/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 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_mesh.c -o out/target/product/oneplus3/obj_arm/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

[ 6% 6644/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_mat

FAILED: out/target/product/oneplus3/obj_arm/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 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_matrix.c -o out/target/product/oneplus3/obj_arm/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

[ 6% 6645/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_cor

FAILED: out/target/product/oneplus3/obj_arm/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 out/target/product/oneplus3/obj_arm/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

[ 6% 6646/102294] bc: libclcore.bc_32 <= frameworks/rs/driver/runtime/rs_all

FAILED: out/target/product/oneplus3/obj_arm/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 out/target/product/oneplus3/obj_arm/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

12:05:22 ninja failed with: exit status 1

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

if i'am in wrong secton please don't blame me, just say where i can have any help ;)

thank's in advance !