compilation error Lineage 17.1 - LineageOS Questions & Answers

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 !

Hi acetone802000,
you have one or more missing packages:
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
In the Lineageos Device OnePlus3 Build Wiki you find the Packages.
Code:
bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
So try to install them first. And visit a wiki for preparations. I did not found one for Ubuntu. But one for Archlinux hope this can help you.
Good Luck!

Related

Compiling PAC with SaberMod

Hello there
I recently discovered the SaberMod toolchain (4.8), and decided to try to compile PAC with it
I added the toolchains in my manifest, and modified the "TARGET_linux-arm.mk"
Repo sync went fine, but when trying to build, I get these errors :
system/core/adb/framebuffer_service.c: In function 'framebuffer_service':
system/core/adb/framebuffer_service.c:175:60: warning: 'pid' may be used uninitialized in this function [-Wmaybe-uninitialized]
TEMP_FAILURE_RETRY(waitpid(pid, NULL, 0));
^
target thumb C: adbd <= system/core/adb/log_service.c
Import includes file: /home/bud/pacman/out/target/product/bacon/obj/EXECUTABLES/healthd_intermediates/import_includes
Import includes file: /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libbatteryservice_intermediates/import_includes
Import includes file: /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libbinder_intermediates/import_includes
Import includes file: /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libutils_intermediates/import_includes
target thumb C++: libhealthd.default <= system/core/healthd/healthd_board_default.cpp
host C: checkseapp <= external/sepolicy/tools/check_seapp.c
system/core/healthd/healthd_board_default.cpp:19:6: warning: unused parameter 'config' [-Wunused-parameter]
void healthd_board_init(struct healthd_config *config)
^
system/core/healthd/healthd_board_default.cpp:25:5: warning: unused parameter 'props' [-Wunused-parameter]
int healthd_board_battery_update(struct android::BatteryProperties *props)
^
Import includes file: /home/bud/pacman/out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/import_includes
host C: libz <= external/zlib/src/adler32.c
host C: libz <= external/zlib/src/compress.c
host C: libz <= external/zlib/src/crc32.c
host C: libz <= external/zlib/src/deflate.c
host C: libz <= external/zlib/src/gzclose.c
host C: libz <= external/zlib/src/gzlib.c
host C: libz <= external/zlib/src/gzread.c
host C: libz <= external/zlib/src/infback.c
host C: libz <= external/zlib/src/gzwrite.c
host C: libz <= external/zlib/src/inflate.c
host C: libz <= external/zlib/src/inftrees.c
host C: libz <= external/zlib/src/inffast.c
host C: libz <= external/zlib/src/trees.c
host C: libz <= external/zlib/src/uncompr.c
host C: libz <= external/zlib/src/zutil.c
host C: dtbToolCM <= device/qcom/common/dtbtool/dtbtool.c
Import includes file: /home/bud/pacman/out/target/product/bacon/obj/RECOVERY_EXECUTABLES/bu_recovery_intermediates/import_includes
target thumb C: libsparse_static <= system/core/libsparse/backed_block.c
target thumb C: libsparse_static <= system/core/libsparse/output_file.c
target thumb C: libsparse_static <= system/core/libsparse/sparse.c
target thumb C: libsparse_static <= system/core/libsparse/sparse_crc32.c
system/core/libsparse/output_file.c: In function 'callback_file_open':
system/core/libsparse/output_file.c:275:51: warning: unused parameter 'out' [-Wunused-parameter]
static int callback_file_open(struct output_file *out, int fd)
^
system/core/libsparse/output_file.c:275:60: warning: unused parameter 'fd' [-Wunused-parameter]
static int callback_file_open(struct output_file *out, int fd)
^
system/core/libsparse/output_file.c: In function 'callback_file_pad':
system/core/libsparse/output_file.c:298:50: warning: unused parameter 'out' [-Wunused-parameter]
static int callback_file_pad(struct output_file *out, int64_t len)
^
system/core/libsparse/output_file.c:298:63: warning: unused parameter 'len' [-Wunused-parameter]
static int callback_file_pad(struct output_file *out, int64_t len)
^
system/core/libsparse/output_file.c: In function 'output_file_open_callback':
system/core/libsparse/output_file.c:642:57: warning: unused parameter 'gz' [-Wunused-parameter]
void *priv, unsigned int block_size, int64_t len, int gz, int sparse,
^
system/core/libsparse/sparse.c: In function 'out_counter_write':
system/core/libsparse/sparse.c:192:54: warning: unused parameter 'data' [-Wunused-parameter]
static int out_counter_write(void *priv, const void *data, int len)
^
target thumb C: libsparse_static <= system/core/libsparse/sparse_err.c
target thumb C: libsparse_static <= system/core/libsparse/sparse_read.c
target thumb C++: libvoldclient <= bootable/recovery-cm/voldclient/commands.cpp
system/core/libsparse/sparse_read.c: In function 'process_raw_chunk':
system/core/libsparse/sparse_read.c:122:4: warning: implicit declaration of function 'read_all' [-Wimplicit-function-declaration]
ret = read_all(fd, copybuf, chunk);
^
system/core/libsparse/sparse_read.c: In function 'process_skip_chunk':
system/core/libsparse/sparse_read.c:178:7: warning: unused parameter 'fd' [-Wunused-parameter]
int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)
^
system/core/libsparse/sparse_read.c:178:45: warning: unused parameter 'block' [-Wunused-parameter]
int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)
^
target thumb C++: libvoldclient <= bootable/recovery-cm/voldclient/dispatcher.cpp
target thumb C++: libvoldclient <= bootable/recovery-cm/voldclient/event_loop.cpp
target thumb C: libmtdutils <= bootable/recovery-cm/mtdutils/mtdutils.c
target thumb C: libmtdutils <= bootable/recovery-cm/mtdutils/mounts.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/adb.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/fdevent.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/transport.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/transport_usb.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/sockets.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/services.c
bootable/recovery-cm/voldclient/event_loop.cpp:191:14: error: unused parameter 'v' [-Werror=unused-parameter]
static void *event_thread_func(void* v) {
^
cc1plus: all warnings being treated as errors
make: *** [/home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libvoldclient_intermediates/event_loop.o] Error 1
make: *** Waiting for unfinished jobs....
bootable/recovery-cm/voldclient/dispatcher.cpp:202:5: error: unused parameter 'len' [-Werror=unused-parameter]
int vold_dispatch(int code, char** tokens, int len) {
^
cc1plus: all warnings being treated as errors
make: *** [/home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libvoldclient_intermediates/dispatcher.o] Error 1
make: *** wait: No child processes. Stop
Those looks like warning, but they are being trated as errors
If someone could help me on this :crying:
bud77 said:
Hello there
I recently discovered the SaberMod toolchain (4.8), and decided to try to compile PAC with it
I added the toolchains in my manifest, and modified the "TARGET_linux-arm.mk"
Repo sync went fine, but when trying to build, I get these errors :
system/core/adb/framebuffer_service.c: In function 'framebuffer_service':
system/core/adb/framebuffer_service.c:175:60: warning: 'pid' may be used uninitialized in this function [-Wmaybe-uninitialized]
TEMP_FAILURE_RETRY(waitpid(pid, NULL, 0));
^
target thumb C: adbd <= system/core/adb/log_service.c
Import includes file: /home/bud/pacman/out/target/product/bacon/obj/EXECUTABLES/healthd_intermediates/import_includes
Import includes file: /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libbatteryservice_intermediates/import_includes
Import includes file: /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libbinder_intermediates/import_includes
Import includes file: /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libutils_intermediates/import_includes
target thumb C++: libhealthd.default <= system/core/healthd/healthd_board_default.cpp
host C: checkseapp <= external/sepolicy/tools/check_seapp.c
system/core/healthd/healthd_board_default.cpp:19:6: warning: unused parameter 'config' [-Wunused-parameter]
void healthd_board_init(struct healthd_config *config)
^
system/core/healthd/healthd_board_default.cpp:25:5: warning: unused parameter 'props' [-Wunused-parameter]
int healthd_board_battery_update(struct android::BatteryProperties *props)
^
Import includes file: /home/bud/pacman/out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/import_includes
host C: libz <= external/zlib/src/adler32.c
host C: libz <= external/zlib/src/compress.c
host C: libz <= external/zlib/src/crc32.c
host C: libz <= external/zlib/src/deflate.c
host C: libz <= external/zlib/src/gzclose.c
host C: libz <= external/zlib/src/gzlib.c
host C: libz <= external/zlib/src/gzread.c
host C: libz <= external/zlib/src/infback.c
host C: libz <= external/zlib/src/gzwrite.c
host C: libz <= external/zlib/src/inflate.c
host C: libz <= external/zlib/src/inftrees.c
host C: libz <= external/zlib/src/inffast.c
host C: libz <= external/zlib/src/trees.c
host C: libz <= external/zlib/src/uncompr.c
host C: libz <= external/zlib/src/zutil.c
host C: dtbToolCM <= device/qcom/common/dtbtool/dtbtool.c
Import includes file: /home/bud/pacman/out/target/product/bacon/obj/RECOVERY_EXECUTABLES/bu_recovery_intermediates/import_includes
target thumb C: libsparse_static <= system/core/libsparse/backed_block.c
target thumb C: libsparse_static <= system/core/libsparse/output_file.c
target thumb C: libsparse_static <= system/core/libsparse/sparse.c
target thumb C: libsparse_static <= system/core/libsparse/sparse_crc32.c
system/core/libsparse/output_file.c: In function 'callback_file_open':
system/core/libsparse/output_file.c:275:51: warning: unused parameter 'out' [-Wunused-parameter]
static int callback_file_open(struct output_file *out, int fd)
^
system/core/libsparse/output_file.c:275:60: warning: unused parameter 'fd' [-Wunused-parameter]
static int callback_file_open(struct output_file *out, int fd)
^
system/core/libsparse/output_file.c: In function 'callback_file_pad':
system/core/libsparse/output_file.c:298:50: warning: unused parameter 'out' [-Wunused-parameter]
static int callback_file_pad(struct output_file *out, int64_t len)
^
system/core/libsparse/output_file.c:298:63: warning: unused parameter 'len' [-Wunused-parameter]
static int callback_file_pad(struct output_file *out, int64_t len)
^
system/core/libsparse/output_file.c: In function 'output_file_open_callback':
system/core/libsparse/output_file.c:642:57: warning: unused parameter 'gz' [-Wunused-parameter]
void *priv, unsigned int block_size, int64_t len, int gz, int sparse,
^
system/core/libsparse/sparse.c: In function 'out_counter_write':
system/core/libsparse/sparse.c:192:54: warning: unused parameter 'data' [-Wunused-parameter]
static int out_counter_write(void *priv, const void *data, int len)
^
target thumb C: libsparse_static <= system/core/libsparse/sparse_err.c
target thumb C: libsparse_static <= system/core/libsparse/sparse_read.c
target thumb C++: libvoldclient <= bootable/recovery-cm/voldclient/commands.cpp
system/core/libsparse/sparse_read.c: In function 'process_raw_chunk':
system/core/libsparse/sparse_read.c:122:4: warning: implicit declaration of function 'read_all' [-Wimplicit-function-declaration]
ret = read_all(fd, copybuf, chunk);
^
system/core/libsparse/sparse_read.c: In function 'process_skip_chunk':
system/core/libsparse/sparse_read.c:178:7: warning: unused parameter 'fd' [-Wunused-parameter]
int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)
^
system/core/libsparse/sparse_read.c:178:45: warning: unused parameter 'block' [-Wunused-parameter]
int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)
^
target thumb C++: libvoldclient <= bootable/recovery-cm/voldclient/dispatcher.cpp
target thumb C++: libvoldclient <= bootable/recovery-cm/voldclient/event_loop.cpp
target thumb C: libmtdutils <= bootable/recovery-cm/mtdutils/mtdutils.c
target thumb C: libmtdutils <= bootable/recovery-cm/mtdutils/mounts.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/adb.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/fdevent.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/transport.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/transport_usb.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/sockets.c
target thumb C: libminadbd <= bootable/recovery-cm/minadbd/services.c
bootable/recovery-cm/voldclient/event_loop.cpp:191:14: error: unused parameter 'v' [-Werror=unused-parameter]
static void *event_thread_func(void* v) {
^
cc1plus: all warnings being treated as errors
make: *** [/home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libvoldclient_intermediates/event_loop.o] Error 1
make: *** Waiting for unfinished jobs....
bootable/recovery-cm/voldclient/dispatcher.cpp:202:5: error: unused parameter 'len' [-Werror=unused-parameter]
int vold_dispatch(int code, char** tokens, int len) {
^
cc1plus: all warnings being treated as errors
make: *** [/home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libvoldclient_intermediates/dispatcher.o] Error 1
make: *** wait: No child processes. Stop
Those looks like warning, but they are being trated as errors
If someone could help me on this :crying:
Click to expand...
Click to collapse
http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
shumash said:
http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
Click to expand...
Click to collapse
Thanks for that
Where can I specify/remove those args when using the "build-pac.sh" ?
Are those sets by the toolchain ?
bud77 said:
Thanks for that
Where can I specify/remove those args when using the "build-pac.sh" ?
Are those sets by the toolchain ?
Click to expand...
Click to collapse
The build-pac shell script isn't involved. The compiler directives are set in the build/core/config.mk file and your device's BoardConfig.mk file. Look for COMMON_GLOBAL_CFLAGS.
Oh well, this goes far beyond my limited knowledge
Thanks for your time anyway, I really appreciate it
I decided to give it a last try, and managed to removed the error above
But I'm now having this issue :
/tmp/cc7R4Aqi.s:187: Error: selected processor does not support Thumb mode `mrc p15,0,r3,c13,c0,3'
make: *** [/home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_bionic_intermediates/bionic/pthread_internals.o] Error 1
Google search pointed me to several guys wth the same issue, but no one fixed it
If you have any idea ...
bud77 said:
I decided to give it a last try, and managed to removed the error above
But I'm now having this issue :
/tmp/cc7R4Aqi.s:187: Error: selected processor does not support Thumb mode `mrc p15,0,r3,c13,c0,3'
make: *** [/home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_bionic_intermediates/bionic/pthread_internals.o] Error 1
Google search pointed me to several guys wth the same issue, but no one fixed it
If you have any idea ...
Click to expand...
Click to collapse
Did you clean your build before trying to recompile? try 'make clean' or specify '-c1' in the build-pac.sh script.
shumash said:
Did you clean your build before trying to recompile? try 'make clean' or specify '-c1' in the build-pac.sh script.
Click to expand...
Click to collapse
I always build with "-c1", and I even clean the cache before each try (ccache -c)
Just tried the "make clean" in the pacman source directory (named ~/android in the guides), also tried with and without "-o3", but still the same error
Verbose mode tells me this :
target thumb C++: libc_bionic <= bionic/libc/bionic/pthread_internals.cpp
prebuilts/misc/linux-x86/ccache/ccache prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-g++ -I device/oppo/msm8974-common/include -I bionic/libc/stdlib -I bionic/libc/string -I bionic/libc/stdio -I external/safe-iop/include -I bionic/libc -I /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_bionic_intermediates -I libnativehelper/include/nativehelper -isystem system/core/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem external/skia/include -isystem /home/bud/pacman/out/target/product/bacon/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libstdc++/include -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/arch-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -isystem bionic/libthread_db/include -c -O3 -fno-exceptions -Wno-multichar -msoft-float -fpic -fPIE -ffunction-sections -fdata-sections -funwind-tables -fstack-protector -Wa,--noexecstack -Wno-unused-but-set-variable -fno-builtin-sin -fno-strict-volatile-bitfields -Wno-psabi -mthumb-interwork -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DQCOM_HARDWARE -DQCOM_BSP -DNEEDS_VECTORIMPL_SYMBOLS -DNO_SECURE_DISCARD -DOPPO_CAMERA_HARDWARE -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -DNDEBUG -g -Wstrict-aliasing=2 -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DNDEBUG -UDEBUG -DQCOM_HARDWARE -DQCOM_BSP -fvisibility-inlines-hidden -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wsign-promo -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -DNDEBUG -UDEBUG -DQCOM_HARDWARE -DQCOM_BSP -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -DWITH_ERRLIST -DANDROID_CHANGES -D_LIBC=1 -DFLOATING_POINT -DINET6 -Ibionic/libc/private -DPOSIX_MISTAKE -DLOG_ON_HEAP_ERROR -Wall -Wextra -DSOFTFLOAT -fstrict-aliasing -DANDROID_SMP=1 -Werror -MD -MF /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_bionic_intermediates/bionic/pthread_internals.d -o /home/bud/pacman/out/target/product/bacon/obj/STATIC_LIBRARIES/libc_bionic_intermediates/bionic/pthread_internals.o bionic/libc/bionic/pthread_internals.cpp
But I can't find where it gets this arg (twice !)
I'm not giving up !
I decided to grab CM sources, and try to compile with the sabermob toolchain, but I ended with the exact same issue
So I guessed there was something wrong with the toolchain
I then decided to try the 4.7 linaro toolchain, and ended up on JustArchi optimizations flags (https://github.com/JustArchi/android_build/commit/1125f60a15194e08fdf18feacefb47696647e05b)
After adapting those commits to the pacman sources, I managed to skip the problem above, and let it build for the night (with sabermod)
This morning I found the build broke during the kernel compilation, but without any error shown (only "error 2" was displayed in the last 500 lines)
I'm restarting a build with verbose to see what happens
Edit : Even verbose mode doesn't give any more explanation, only this :
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/bud/pacman/kernel/oneplus/msm8974'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
A 3rd try gave me a much better explanation
../../../../../../kernel/oneplus/msm8974/mm/slub.c: In function 'show_slab_objects':
../../../../../../kernel/oneplus/msm8974/mm/slub.c:4536:11: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: slub.c:4536
make[3]: *** [mm/slub.o] Error 1
make[2]: *** [mm] Error 2
make[2]: *** Waiting for unfinished jobs....
bud77 said:
A 3rd try gave me a much better explanation
../../../../../../kernel/oneplus/msm8974/mm/slub.c: In function 'show_slab_objects':
../../../../../../kernel/oneplus/msm8974/mm/slub.c:4536:11: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: slub.c:4536
make[3]: *** [mm/slub.o] Error 1
make[2]: *** [mm] Error 2
make[2]: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
I believe the change you need is something like this commit:
https://github.com/VanirAOSP/hardware_qcom_display/commit/737719caa4eff75cde2d8ecfa3118fd95994fa27

[Q]build cm14.1 error

Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_oneplus_oneplus3" path="device/oneplus/oneplus3" remote="github" />
<project name="CyanogenMod/android_device_oppo_common" path="device/oppo/common" remote="github" />
<project name="CyanogenMod/android_kernel_oneplus_msm8996" path="kernel/oneplus/msm8996" remote="github" />
<project name="CyanogenMod/android_vendor_nxp-nfc_opensource_frameworks" path="vendor/nxp-nfc/opensource/frameworks" remote="github" />
<project name="CyanogenMod/android_vendor_nxp-nfc_opensource_libnfc-nci" path="vendor/nxp-nfc/opensource/libnfc-nci" remote="github" />
<project name="CyanogenMod/android_vendor_nxp-nfc_opensource_Nfc" path="vendor/nxp-nfc/opensource/Nfc" remote="github" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" remote="github" revision="cm-14.1" />
<project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1" />
</manifest>
Code:
brunch oneplus3
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1
CM_VERSION=14.1-20161115-UNOFFICIAL-oneplus3
TARGET_PRODUCT=cm_oneplus3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.8.7-1-ARCH-x86_64-with-glibc2.2.5
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NDE63X
OUT_DIR=/home/android/cyanogenmod/system/out
============================================
make: Entering directory '/home/android/cyanogenmod/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1
CM_VERSION=14.1-20161115-UNOFFICIAL-oneplus3
TARGET_PRODUCT=cm_oneplus3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.8.7-1-ARCH-x86_64-with-glibc2.2.5
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NDE63X
OUT_DIR=/home/android/cyanogenmod/system/out
============================================
Running kati to generate build-cm_oneplus3.ninja...
Environment variable BUILD_NUMBER was modified (fd1178d4b1 => 00ef3f6dc6), regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1
CM_VERSION=14.1-20161115-UNOFFICIAL-oneplus3
TARGET_PRODUCT=cm_oneplus3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.8.7-1-ARCH-x86_64-with-glibc2.2.5
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NDE63X
OUT_DIR=/home/android/cyanogenmod/system/out
============================================
build/core/binary.mk:1231: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1231: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1231: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1231: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/android/cyanogenmod/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
PRODUCT_COPY_FILES frameworks/base/data/sounds/ringtones/material/ogg/Atria.ogg:system/media/audio/ringtones/Atria.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/ringtones/material/ogg/Pyxis.ogg:system/media/audio/ringtones/Pyxis.ogg ignored.
No private recovery resources for TARGET_DEVICE oneplus3
build/core/java.mk:334: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_calib3d.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_calib3d.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_core.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_core.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_features2d.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_features2d.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_flann.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_flann.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_highgui.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_highgui.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_imgcodecs.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_imgcodecs.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_imgproc.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_imgproc.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_ml.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_ml.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_objdetect.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_objdetect.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_photo.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_photo.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_shape.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_shape.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_stitching.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_stitching.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_superres.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_superres.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_videoio.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_videoio.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_video.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_video.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_videostab.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/lib/libopencv_videostab.so'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/etc/libnfc-brcm.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/etc/libnfc-brcm.conf'
build/core/Makefile:34: warning: overriding commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/etc/libnfc-nxp.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/android/cyanogenmod/system/out/target/product/oneplus3/system/etc/libnfc-nxp.conf'
Starting build with ninja
ninja: Entering directory `.'
[ 0% 22/50619] host C++: libaidl-common <= /home/android...IBRARIES/libaidl-common_intermediates/aidl_language_l.cpp
FAILED: /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.o
/bin/bash -c "(PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/oneplus/oneplus3/include -I external/gtest/include -I system/tools/aidl -I /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates -I /home/android/cyanogenmod/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libaidl-common_intermediates -I libnativehelper/include/nativehelper \$(cat /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem tools/include -isystem /home/android/cyanogenmod/system/out/host/linux-x86/obj/include -c -fno-exceptions -Wno-multichar -m64 -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 -fstack-protector-strong --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 -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -target x86_64-linux-gnu -Wsign-promo -Wno-inconsistent-missing-override --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 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -target x86_64-linux-gnu -fPIC -D_USING_LIBCXX -Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-function -Wno-unneeded-internal-declaration -Wno-deprecated-register -Wno-writable-strings -std=gnu++14 -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.d -o /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.o /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp ) && (cp /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.d /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.d >> /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.P; rm -f /home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.d )"
/home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp:904:23: error: comparison of integers of different signs: 'yy_size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
for ( yyl = 0; yyl < yyleng; ++yyl )
~~~ ^ ~~~~~~
/home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp:1395:3: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp:731:18: note: expanded from macro 'YY_INPUT'
for ( n = 0; n < max_size && \
~ ^ ~~~~~~~~
/home/android/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp:1966:17: error: comparison of integers of different signs: 'yy_size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
for ( i = 0; i < _yybytes_len; ++i )
~ ^ ~~~~~~~~~~~~
3 errors generated.
[ 0% 22/50619] target Java: libprotobuf-java-nano (/home...VA_LIBRARIES/libprotobuf-java-nano_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 0% 22/50619] host Java: doclava (/home/android/cyanoge.../common/obj/JAVA_LIBRARIES/doclava_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/android/cyanogenmod/system'
#### make failed to build some targets (48 seconds) ####
What version of JDK are you using?
daleski75 said:
What version of JDK are you using?
Click to expand...
Click to collapse
openjdk1.8_112 or Oracle jdk1.8
Try my roomservice file first
http://hastebin.com/juqahexune.xml
daleski75 said:
Try my roomservice file first
http://hastebin.com/juqahexune.xml
Click to expand...
Click to collapse
Same error.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ahh your using archlinux is it bbq linux by some chance?
daleski75 said:
Ahh your using archlinux is it bbq linux by some chance?
Click to expand...
Click to collapse
What is the difference with the original arch?Reinstalling the operating system is a painful process?
fiepi said:
What is the difference with the original arch?Reinstalling the operating system is a painful process
Click to expand...
Click to collapse
bbq linux is based on it and i always had build errors when using arch and swapped to ubuntu and zero problems.
daleski75 said:
bbq linux is based on it and i always had build errors when using arch and swapped to ubuntu and zero problems.
Click to expand...
Click to collapse
Thank you, I will install a ubuntu?
fiepi said:
Thank you, I will install a ubuntu
Click to expand...
Click to collapse
If it's a vm you can create a ubuntu vm, mount the arch linux vmdk within the ubuntu vm, mount it when it's installed and then copy across your build directory, will speed things up massively for you.

AOSP 7.1 Build Failure

Hi Guys,
Trying to build 7.1 AOSP and keep running in to this, anyone have any idea what it means or how to fix it?
Code:
[ 65% 31667/48245] target thumb C++: l...venc/src/video_encoder_device_v4l2.cpp
FAILED: /bin/bash -c "(PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/inc -I hardware/qcom/media/msm8974/mm-video-v4l2/vidc/../vidc/common/inc -I hardware/qcom/media/msm8974/mm-core/inc -I hardware/qcom/media/msm8974/libstagefrighthw -I out/target/product/satsuki/obj/include/qcom/display -I out/target/product/satsuki/obj/include/adreno -I frameworks/native/include/media/hardware -I frameworks/native/include/media/openmax -I hardware/qcom/media/msm8974/libc2dcolorconvert -I frameworks/av/include/media/stagefright -I frameworks/av/include/media/hardware -I hardware/qcom/media/msm8974/mm-video-v4l2/vidc -I out/target/product/satsuki/obj_arm/SHARED_LIBRARIES/libOmxVenc_intermediates -I out/target/product/satsuki/gen/SHARED_LIBRARIES/libOmxVenc_intermediates -I libnativehelper/include/nativehelper \$(cat out/target/product/satsuki/obj_arm/SHARED_LIBRARIES/libOmxVenc_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem out/target/product/satsuki/obj/include -isystem device/sony/common-headers/kernel-headers -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -mcpu=cortex-a7 -D__ARM_FEATURE_LPAE=1 -mfloat-abi=softfp -mfpu=neon -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -fvisibility-inlines-hidden -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -target arm-linux-androideabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -g -O3 -Dlrintf=_ffix_r -D__align=__alignx -D__alignx\\(x\\)=__attribute__\\(\\(__aligned__\\(x\\)\\)\\) -DT_ARM -Dinline=__inline -D_ANDROID_ -UENABLE_DEBUG_LOW -DENABLE_DEBUG_HIGH -DENABLE_DEBUG_ERROR -UINPUT_BUFFER_LOG -UOUTPUT_BUFFER_LOG -USINGLE_ENCODER_INSTANCE -DMAX_RES_1080P -DMAX_RES_1080P_EBI -D_MSM8974_ -DUSE_ION -D_ANDROID_ICS_ -fPIC -D_USING_LIBCXX -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF out/target/product/satsuki/obj_arm/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device_v4l2.d -o out/target/product/satsuki/obj_arm/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device_v4l2.o hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp ) && (cp out/target/product/satsuki/obj_arm/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device_v4l2.d out/target/product/satsuki/obj_arm/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device_v4l2.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < out/target/product/satsuki/obj_arm/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device_v4l2.d >> out/target/product/satsuki/obj_arm/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device_v4l2.P; rm -f out/target/product/satsuki/obj_arm/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device_v4l2.d )"
hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp:412:33: error: use of undeclared identifier 'V4L2_EVENT_MSM_VIDC_CLOSE_DONE'
if (dqevent.type == V4L2_EVENT_MSM_VIDC_CLOSE_DONE) {
^
hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp:459:5: error: use of undeclared identifier 'V4L2_EVENT_MSM_VIDC_CLOSE_DONE'
V4L2_EVENT_MSM_VIDC_CLOSE_DONE,
^
hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp:467:26: error: invalid application of 'sizeof' to an incomplete type 'const int []'
int array_sz = sizeof(event_type)/sizeof(int);
^~~~~~~~~~~~
hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp:1072:26: error: invalid application of 'sizeof' to an incomplete type 'const int []'
int array_sz = sizeof(event_type)/sizeof(int);
^~~~~~~~~~~~
hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp:2771:67: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
DEBUG_PRINT_ERROR("Failed setting color format in in etb %x", m_sVenc_cfg.inputformat);
~~ ^~~~~~~~~~~~~~~~~~~~~~~
%lx
hardware/qcom/media/msm8974/mm-video-v4l2/vidc/../vidc/common/inc/vidc_debug.h:48:23: note: expanded from macro 'DEBUG_PRINT_ERROR'
ALOGE(fmt,##args)
^~~~
system/core/include/log/log.h:156:52: note: expanded from macro 'ALOGE'
#define ALOGE(...) ((void)ALOG(LOG_ERROR, LOG_TAG, __VA_ARGS__))
^~~~~~~~~~~
system/core/include/log/log.h:453:38: note: expanded from macro 'ALOG'
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/include/log/log.h:461:37: note: expanded from macro 'LOG_PRI'
android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/include/log/log.h:618:36: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, fmt)
^~~
1 warning and 4 errors generated.
[ 65% 31667/48245] target Package: fra...amework-res_intermediates/package.apk)
warning: string 'gsm_alphabet_default_charset' has no default translation.
warning: string 'gsm_alphabet_default_charset' is missing 90 required localizations: af_ZA am_ET ar_EG az_AZ be_BY bg_BG bn_BD bs_BA ca_ES cs_CZ da_DK de_AT de_CH de_DE de_LI el_GR en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU es_ES es_US et_EE eu_ES fa_IR fi_FI fr_BE fr_CA fr_CH fr_FR gl_ES gu_IN hi_IN hr_HR hu_HU hy_AM in_ID is_IS it_CH it_IT iw_IL ja_JP ka_GE kk_KZ km_KH kn_IN ky_KG lo_LA lt_LT lv_LV mk_MK ml_IN mn_MN mr_IN ms_MY my_MM nb_NO ne_NP nl_BE nl_NL pa_IN pl_PL pt_BR pt_PT ro_RO ru_RU si_LK sk_SK sl_SI sq_AL sr_RS sv_SE sw_TZ ta_IN te_IN th_TH tl_PH tr_TR uk_UA ur_PK uz_UZ vi_VN zh_CN zh_HK zh_TW zu_ZA
warning: string 'wfcSpnFormat' has no default translation.
warning: string 'wfcSpnFormat' is missing 41 required localizations: az_AZ be_BY bn_BD bs_BA en_AU en_CA en_GB en_IN en_NZ en_SG en_US eo_EU et_EE eu_ES gl_ES gu_IN hy_AM is_IS ka_GE kk_KZ km_KH kn_IN ky_KG lo_LA mk_MK ml_IN mn_MN mr_IN ms_MY my_MM ne_NP pa_IN si_LK sq_AL ta_IN te_IN ur_PK uz_UZ zh_CN zh_HK zh_TW
warning: no entries written for dimen/password_keyboard_height (0x010500c3)
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (01:50:50 (hh:mm:ss)) ####
Thanks.
i have test me too and i have failure Ask for help @krabappel2548 @Archfeind2 !!!
You have to take care of the errors found in the hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp
I'm not at my computer, nor building AOSP 7.1 atm.
Did you get 7.1 from the Sony source and the vendor files from their binary downloads?
Archfeind2 said:
You have to take care of the errors found in the hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp
I'm not at my computer, nor building AOSP 7.1 atm.
Did you get 7.1 from the Sony source and the vendor files from their binary downloads?
Click to expand...
Click to collapse
Thanks for the response .
Yeah straight from the instructions, I nuked the source last night to try and build 7.0 to see if I got and similar errors which I'll be able to do tonight. I'll do a little googling on "mm-video-v4l2" to see what I can find out.
trozmagon said:
Thanks for the response .
Yeah straight from the instructions, I nuked the source last night to try and build 7.0 to see if I got and similar errors which I'll be able to do tonight. I'll do a little googling on "mm-video-v4l2" to see what I can find out.
Click to expand...
Click to collapse
I've built the AOSP 7.0 for Z5P dual and I didn't have any problems. I have to update my github with the latest files I used, but I suggest using r_21 for the system.img and r_17 for the boot.img. You can do this by making two separate folders (one for r17 and the other for r21), making an Android directory for both, referencing the Google source (Sony defaults the choice to r17 so if you just copy and paste the directions it's the second or third step "Initializing repo". To get r21 just change r17 to r21), follow the directions of copying the local_manifest and vendor files, and repo sync!
To make only boot.img run
Code:
make -j<number of cpu cores x2> bootimage
You can also try using
Code:
make -j<number of cpu cores x2> systemimage
to just make a system.img, but it'll make all the images except the userdata.img which you'll need to wipe your data (this wipes internal storage also!) So if you have TWRP I suggest you use their factory wipe.
You can reference my forum post here if you need any files also.
What you could also do is go to the Android Google source website and see the most updated branch of 7.1 is. Maybe the answer lies in there.
The website that you use in the Sony directions to Initialize the repo is a legitimate website you can navigate through and check out branches of a project.
Sorry that's a lot of information to consume at once, but I had to find this all out myself and it can take hours/days to fully utilize!
Good luck! :good:
Archfeind2 said:
I've built the AOSP 7.0 for Z5P dual and I didn't have any problems. I have to update my github with the latest files I used, but I suggest using r_21 for the system.img and r_17 for the boot.img. You can do this by making two separate folders (one for r17 and the other for r21), making an Android directory for both, referencing the Google source (Sony defaults the choice to r17 so if you just copy and paste the directions it's the second or third step "Initializing repo". To get r21 just change r17 to r21), follow the directions of copying the local_manifest and vendor files, and repo sync!
To make only boot.img run
Code:
make -j<number of cpu cores x2> bootimage
You can also try using
Code:
make -j<number of cpu cores x2> systemimage
to just make a system.img, but it'll make all the images except the userdata.img which you'll need to wipe your data (this wipes internal storage also!) So if you have TWRP I suggest you use their factory wipe.
You can reference my forum post here if you need any files also.
What you could also do is go to the Android Google source website and see the most updated branch of 7.1 is. Maybe the answer lies in there.
The website that you use in the Sony directions to Initialize the repo is a legitimate website you can navigate through and check out branches of a project.
Sorry that's a lot of information to consume at once, but I had to find this all out myself and it can take hours/days to fully utilize!
Good luck! :good:
Click to expand...
Click to collapse
Thanks for all the info mate, I built 7.0 r17 without a hitch last night, haven't flashed it yet but it completed successfully but that tells me that there's nothing wrong with my build environment, the issue with 7.1 is something in the source.
Strange that I haven't seen anyone else reporting issues with it though, assuming people are building it.
Tonight I'll do your recommendation and build r17/r21 and flash that until I can get 7.1 built .

Errors Building LOS15.1: Python or C++ Related?

I am trying to build LineageOS15.1 android rom on my PC in Manjaro KDE x64. I have the aosp-devel and lineageos-devel metapackges installed from aur. I get build errors though. I believe it's because it needs Python2 not Python3, or possibly a different c++ compiler? I believe it's python though. I tried the fix [here](https://wiki.archlinux.org/index.php/Python#Dealing_with_version_problem_in_build_scripts) in the wiki but it doesn't seem to have worked(I have rebooted since then), but still, have issues. Here is the build error:
Code:
SyntaxError: invalid syntax
[ 0% 74/115817] logtags: /media/Wrestling/Android/lineage15.1/out/target/common...va <= frameworks/base/services/core/java/com/android/server/EventLogTags.logtags
FAILED: /[media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java](http://media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java)
/bin/bash -c "[build/tools/java-event-log-tags.py](http://build/tools/java-event-log-tags.py) -o /[media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java](http://media/Wrestling/Android/lineage15.1/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java) frameworks/base/services/core/java/com/android/server/EventLogTags.logtags /[media/Wrestling/Android/lineage15.1/out/target/common/obj/all-event-log-tags.txt](http://media/Wrestling/Android/lineage15.1/out/target/common/obj/all-event-log-tags.txt)"
File "[build/tools/java-event-log-tags.py](http://build/tools/java-event-log-tags.py)", line 39
except getopt.GetoptError, err:
^
SyntaxError: invalid syntax
[ 0% 80/115817] host C++: libadb <= system/core/adb/adb.cpp
ninja: build stopped: subcommand failed.
00:45:04 ninja failed with: exit status 1
#### failed to build some targets (19:54 (mm:ss)) ####
Ok I ended up using pyenv to force Python2 and it worked! New error so I am wondering if I am missing a dependency? https://pastebin.com/knp8D17B
Managed to fix that, new error:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.14.71-1-MANJARO-x86_64-with-glibc2.4
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM6.171019.030.K1
OUT_DIR=/home/xplorer4x4/EVERT-ROMS/lineage15.1
============================================
ninja: no work to do.
[1/1] /home/xplorer4x4/EVERT-ROMS/lineage15.1/soong/.bootstrap/bin/soong_build /home/xplorer4x4/EVERT-ROMS/lineage15.1/soong/build.ninja
/home/xplorer4x4/EVERT-ROMS/lineage15.1/build-aosp_arm.ninja is missing, regenerating...
[619/1077] including ./packages/apps/WallpaperPicker/Android.mk ...
/bin/bash: line 0: test: -gt: unary operator expected
[745/1077] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1065/1077] including ./vendor/lineage/bootanimation/Android.mk ...
./vendor/lineage/bootanimation/Android.mk:19: warning: TARGET_SCREEN_WIDTH is not set, using default value: 1080
./vendor/lineage/bootanimation/Android.mk:23: warning: TARGET_SCREEN_HEIGHT is not set, using default value: 1920
[1077/1077] including ./vendor/qcom/opensource/rcs-service/Android.mk ...
PRODUCT_COPY_FILES device/generic/goldfish/fstab.ranchu:root/fstab.ranchu ignored.
PRODUCT_COPY_FILES device/generic/goldfish/fstab.ranchu.early:root/fstab.ranchu.early ignored.
ninja: error: '/.txt', needed by '/home/xplorer4x4/EVERT-ROMS/lineage15.1/target/common/obj/PACKAGING/checkpublicapi-lineage-last-timestamp', missing and no known rule to make it
22:34:50 ninja failed with: exit status 1
make: *** [build/core/main.mk:21: run_soong_ui] Error 1
➜ lineage15.1 git:(master) ✗

Building from Source Lineage 15.1 fails with errors

Hey guys I hope someone can help me figure this out...
Code:
sound/soc/codecs/Kconfig:564:warning: type of 'SND_SOC_HPH_WA' redefined from 'boolean' to 'tristate'
mm/Kconfig:415:warning: defaults for choice values not supported
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_APPLETOUCH which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_BCM5974 which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_SYNAPTICS_USB which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_APPLETOUCH which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_BCM5974 which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_SYNAPTICS_USB which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
make: Leaving directory '/home/g/android/lineage/kernel/lge/msm8992'
[ 2% 2530/98851] target C++: bu_recovery <= bootable/recovery/backup.cpp
Code:
FAILED: /home/g/android/lineage/out/target/product/h811/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/g/android/lineage/out/target/product/h811/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
[ 4% 4739/98851] target C++: libappl...ble/recovery/applypatch/applypatch.cpp
ninja: build stopped: subcommand failed.
16:38:03 ninja failed with: exit status 1
Using @thepieguy repo init:
Code:
repo init -u https://github.com/thepiguy0/g4_manifest.git -b lineage-15.1
Now using the roomservice file posted in the LOS 15.1 thread...
Synced repo with:
Code:
repo sync -c -j2 --force-sync --no-clone-bundle --no-tags
Any tips would be most appreciated!
Cheers!
grantdb said:
Hey guys I hope someone can help me figure this out...
Code:
sound/soc/codecs/Kconfig:564:warning: type of 'SND_SOC_HPH_WA' redefined from 'boolean' to 'tristate'
mm/Kconfig:415:warning: defaults for choice values not supported
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_APPLETOUCH which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_BCM5974 which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_SYNAPTICS_USB which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_APPLETOUCH which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_BCM5974 which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (LGE_USB_HOST_SUPPORT_LIST_INPUT) selects MOUSE_SYNAPTICS_USB which has unmet direct dependencies (!UML && INPUT && INPUT_MOUSE && USB_ARCH_HAS_HCD)
warning: (PCI_MSM && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
make: Leaving directory '/home/g/android/lineage/kernel/lge/msm8992'
[ 2% 2530/98851] target C++: bu_recovery <= bootable/recovery/backup.cpp
Code:
FAILED: /home/g/android/lineage/out/target/product/h811/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/g/android/lineage/out/target/product/h811/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
[ 4% 4739/98851] target C++: libappl...ble/recovery/applypatch/applypatch.cpp
ninja: build stopped: subcommand failed.
16:38:03 ninja failed with: exit status 1
Using @thepieguy repo init:
Code:
repo init -u https://github.com/thepiguy0/g4_manifest.git -b lineage-15.1
Now using the roomservice file posted in the LOS 15.1 thread...
Synced repo with:
Code:
repo sync -c -j2 --force-sync --no-clone-bundle --no-tags
Any tips would be most appreciated!
Cheers!
Click to expand...
Click to collapse
With the roomservice.xml file in place this is the error:
Code:
4% 4660/98851] Lex: applypatch <= bootable/recovery/edify/lexer.ll
FAILED: /home/g/android/lineage/out/target/product/h812_usu/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/g/android/lineage/out/target/product/h812_usu/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
[ 4% 4663/98851] target C++: adbd <= system/core/adb/shell_service.cpp
ninja: build stopped: subcommand failed.
22:16:01 ninja failed with: exit status 1
Code:
export LC_ALL=C
before building
P.S. don't use my repo to init any more - it's old and outdated. Make sure you repo init to the lineage repo and use the manifest from suicide org
Finally built after much frustration!

Categories

Resources