Compiling PAC with SaberMod - General PAC Discussion

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

Related

compile cm11 error

Checking build tools versions...
/home/blackcat/cm11/out/target/product/ancora/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
error help me
Import includes file: /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/import_includes
make: *** No rule to make target `vendor/cm/proprietary/Term.apk', needed by `/home/blackcat/cm11/out/target/product/ancora/system/app/Term.apk'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/vim/src/Android.mk -- /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/export_includes
blackcat67 said:
Checking build tools versions...
/home/blackcat/cm11/out/target/product/ancora/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
error help me
Import includes file: /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/import_includes
make: *** No rule to make target `vendor/cm/proprietary/Term.apk', needed by `/home/blackcat/cm11/out/target/product/ancora/system/app/Term.apk'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/vim/src/Android.mk -- /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/export_includes
Click to expand...
Click to collapse
Code:
cd vendor/cm
./get-prebuilts
then start your build again
Vendor:
git clone git://github.com/arco/android_vendor_samsung_ancora.git -b cm-10.2 ancora
Device :
git clone git://github.com/hadidjapri/android_device_samsung_ancora.git -b cm-11 ancora
Display Legacy
git clone git://github.com/alviteri/android_hardware_qcom_display-legacy -b
display-legacy
Media Legacy
git clone git://github.com/alviteri/android_hardware_qcom_media-legacy -b
media-legacy
Is it true source _?
lunch
- cm_ancora-userdebug
make -j4
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
external/iproute2/tc/q_prio.c:133:30: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
make: *** [/home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/tc_intermediates/q_prio.o] Error 1
make: *** Waiting for unfinished jobs....
blackcat67 said:
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
external/iproute2/tc/q_prio.c:133:30: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
make: *** [/home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/tc_intermediates/q_prio.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Same error did you fix it? and how?
Thank you
Which repos should i use for arco cm11 ?
Can some one help?
I get error
device/samsung/ancora/camerahal/cameraHAL.cpp:38:31: fatal error: ui/legacy/Overlay.h: No such file or directory
compilation terminated.
make: *** [/home/acc/cm11/out/target/product/ancora/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Madridii said:
Same error did you fix it? and how?
Thank you
Click to expand...
Click to collapse
Any fixes yet?
blackcat67 said:
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
external/iproute2/tc/q_prio.c:133:30: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
make: *** [/home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/tc_intermediates/q_prio.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Same error also how did you fix
Edit
I found way to fix by git revert to a earlier commit type this in terminal
Code:
cd ~/your/build/dir/external/iproute2
git revert 4c48963517f1569ce909ad2f8a4b7a675de5a1f6

[SOLVED] Build Error - QCamera2

Can anyone help me resolve this? Thanks in advance!
Code:
device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:1612:23: [COLOR=Red]error[/COLOR]: 'value' is used uninitialized in this function [-Werror=uninitialized]
control.value = *value;
^
device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:680:13: [COLOR=MediumTurquoise][COLOR=DeepSkyBlue]note:[/COLOR] [/COLOR]'value' was declared here
int32_t value;
^
arget thumb C: libFFTEm <= external/neven/Embedded/common/src/b_TensorEm/Int32Mat.c
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_TensorEm/MapSequence.c
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_TensorEm/Mat.c
cc1: all warnings being treated as errors
make: *** [out/target/product/flo/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
**Fixed it

Compiling Recovery E5-SM500 BUG TWRP

Hello Guys.
I am new at developing for android.
Have some problems compiling the TWRP for this device. I know that the recovery is already compiled, but I am doing this for learning purpose.
Device Tree: https://github.com/E5-CyanogenMod/android_device_samsung_e5ltexx
Kenel: https://github.com/E5-CyanogenMod/android_kernel_samsung_e5ltexx
The problem is when i use TWRP. I am using branch "android-5.1"
This is the error message:
Code:
bootable/recovery/minui/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minui/graphics_overlay.c:151:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minuitwrp/graphics_overlay.c:163:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'allocate_overlay':
bootable/recovery/minuitwrp/graphics_overlay.c:205:5: warning: implicit declaration of function 'isDisplaySplit' [-Wimplicit-function-declaration]
if (!isDisplaySplit()) {
^
bootable/recovery/minuitwrp/graphics_overlay.c:231:9: warning: implicit declaration of function 'getFbXres' [-Wimplicit-function-declaration]
float xres = getFbXres();
^
bootable/recovery/minuitwrp/graphics_overlay.c:232:9: warning: implicit declaration of function 'getLeftSplit' [-Wimplicit-function-declaration]
int lSplit = getLeftSplit();
^
target Executable: erase_image (/home/eabz/cm12/out/target/product/e5lte/obj/RECOVERY_EXECUTABLES/erase_image_intermediates/LINKED/erase_image)
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/STATIC_LIBRARIES/libminui_intermediates/graphics_overlay.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/graphics_overlay.o] Error 1
If someone knows how to fix?
eabz2000 said:
Hello Guys.
I am new at developing for android.
Have some problems compiling the TWRP for this device. I know that the recovery is already compiled, but I am doing this for learning purpose.
Device Tree: https://github.com/E5-CyanogenMod/android_device_samsung_e5ltexx
Kenel: https://github.com/E5-CyanogenMod/android_kernel_samsung_e5ltexx
The problem is when i use TWRP. I am using branch "android-5.1"
This is the error message:
Code:
bootable/recovery/minui/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minui/graphics_overlay.c:151:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minuitwrp/graphics_overlay.c:163:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'allocate_overlay':
bootable/recovery/minuitwrp/graphics_overlay.c:205:5: warning: implicit declaration of function 'isDisplaySplit' [-Wimplicit-function-declaration]
if (!isDisplaySplit()) {
^
bootable/recovery/minuitwrp/graphics_overlay.c:231:9: warning: implicit declaration of function 'getFbXres' [-Wimplicit-function-declaration]
float xres = getFbXres();
^
bootable/recovery/minuitwrp/graphics_overlay.c:232:9: warning: implicit declaration of function 'getLeftSplit' [-Wimplicit-function-declaration]
int lSplit = getLeftSplit();
^
target Executable: erase_image (/home/eabz/cm12/out/target/product/e5lte/obj/RECOVERY_EXECUTABLES/erase_image_intermediates/LINKED/erase_image)
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/STATIC_LIBRARIES/libminui_intermediates/graphics_overlay.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/graphics_overlay.o] Error 1
If someone knows how to fix?
Click to expand...
Click to collapse
Enrique change TW_NEW_ION_HEAP to Flag to false ??

[CM 13]Error when compile rom

Hello,
When compile the rom occurs such error(sorry for my bad launguage, i'm from Poland)
Code:
deprecated-register]
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
^~~~~~~~~
/root/CM13/out/host/linux-x86/obj/EXECUTABLES/rsg-generator_support_intermediates/spec.cpp:1462:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
register char *source =
^~~~~~~~~
19 warnings generated.
Import includes file: /root/CM13/out/target/product/w55n/obj/SHARED_LIBRARIES/libblasV8_intermediates/import_includes
target thumb C++: libF77blasV8 <= external/eigen/blas/single.cpp
target thumb C++: libF77blasV8 <= external/eigen/blas/double.cpp
make: *** [/root/CM13/out/target/product/w55n/obj/STATIC_LIBRARIES/libF77blasV8_intermediates/single.o] Killed
make: *** Waiting for unfinished jobs....
make: *** [/root/CM13/out/target/product/w55n/obj/STATIC_LIBRARIES/libF77blasV8_intermediates/double.o] Killed
make: Leaving directory `/root/CM13'
I make device tree for w55n from device tree w5

compilation error Lineage 17.1

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!

Categories

Resources