[CM 13]Error when compile rom - OS Porting

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

Related

[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

compile error ?? help please

target thumb C++: libandroid_servers <= frameworks/base/services/jni/onload.cpp
target thumb C++: libdashplayer <= hardware/qcom/media-caf-new/dashplayer/DashPlayerDecoder.cpp
hardware/qcom/media-caf-new/dashplayer/DashPlayerDecoder.cpp:24:25: fatal error: QCMediaDefs.h: No such file or directory
compilation terminated.
make: *** [/home/subatomicone/android/out/target/product/hlte/obj/SHARED_LIBRARIES/libdashplayer_intermediates/DashPlayerDecoder.o] Error 1
make: *** Waiting for unfinished jobs....
Total time elapsed: 7 minutes (443.808555530 seconds)
this is where it ends building using legacy and for HLTE note 3

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

CM 12 build error

I get following error when building on Ubuntu 14.04.1 64 bit I got my properity files from https://github.com/TheMuppets/proprietary_vendor_htc
make: *** No rule to make target `/home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libinit_m8_intermediates/libinit_m8.a', needed by `/home/cpatrick08/android/system/out/target/product/m8/obj/EXECUTABLES/init_intermediates/LINKED/init'. Stop.
make: *** Waiting for unfinished jobs....
Import includes file: /home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libext4_utils_static_intermediates/import_includes
CM m12 Build error
cpatrick08 said:
I get following error when building on Ubuntu 14.04.1 64 bit I got my properity files from https://github.com/TheMuppets/proprietary_vendor_htc
make: *** No rule to make target `/home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libinit_m8_intermediates/libinit_m8.a', needed by `/home/cpatrick08/android/system/out/target/product/m8/obj/EXECUTABLES/init_intermediates/LINKED/init'. Stop.
make: *** Waiting for unfinished jobs....
Import includes file: /home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libext4_utils_static_intermediates/import_includes
Click to expand...
Click to collapse
Now when I try to build CM 12 for my HTC One M8 Phone on Ubuntu 14.04.1LTS 64 bit I Get following error message. I got properity files from https://github.com/TheMuppets/proprietary_vendor_htc
make: *** No rule to make target `/home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libinit_m8_intermediates/export_includes', needed by `/home/cpatrick08/android/system/out/target/product/m8/obj/EXECUTABLES/init_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/compiler-rt/Android.mk -- /home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/export_includes
touch /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
echo '#ifndef 'policy_parse_h > /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#define 'policy_parse_h >> /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
cat /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h

[fix] Nexus 5x Kernel 3.10.x CONFIG_MODULES Makefile:822: recipe for target 'driver'

Hello guys,
this my first post and I want to share how to fix the error when compiling a kernel 3.10.x with the CONFIG_MODULES enabled
the error that comes up is something like
...
LD drivers/staging/qcacld-2.0/wlan.o
LD drivers/staging/qcacld-2.0/built-in.o
LD drivers/staging/built-in.o
Makefile:822: recipe for target 'drivers' failed
make: *** [drivers] Error 2
compiling twice without cleaning you got the entire error
drivers/usb/phy/class-dual-role.c:91:1: error: expected ',' or ';' before 'int'
int dual_role_get_property(struct dual_role_phy_instance *dual_role,
^
scripts/Makefile.build:308: recipe for target 'drivers/usb/phy/class-dual-role.o' failed
make[3]: *** [drivers/usb/phy/class-dual-role.o] Error 1
make[3]: *** Waiting for unfinished jobs....
scripts/Makefile.build:455: recipe for target 'drivers/usb/phy' failed
make[2]: *** [drivers/usb/phy] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:822: recipe for target 'drivers' failed
make: *** [drivers] Error 2
that is a syntax error, pretty easy to fix:
- open the file drivers/usb/phy/class-dual-role.c within a text editor
- go to line 90
this:
EXPORT_SYMBOL_GPL(dual_role_get_property)
should be
EXPORT_SYMBOL_GPL(dual_role_get_property);
the error was a missing ";" in the end of that line
I hope I have been helpful for the all the developers and compilers who want to enable "the loadable module support"
cheers
thank you
WOW!!! Thank you

Categories

Resources