[Q] Compiling P.A.C. man rom on unsupported device ,kernel error - Miscellaneous Android Development

Hi, i'm trying to build P.a.c. man rom on unsupported device, htc desire hd.
foreword, i need to say that its my first time compiling a rom, im a noob, yes, but i want to improve.
when i try to compile from pac script, when it comes to kernel building, i get this error:
cc1: error: unrecognized command line option '-mno-unaligned-access'
/home/marco/android/kernel/htc/htc7x30-3.0/scripts/mod/empty.c:1:0: warning: switch -mcpu=cortex-a8 conflicts with -march=armv5t switch [enabled by default]
/home/marco/android/kernel/htc/htc7x30-3.0/scripts/mod/empty.c:1:0: sorry, unimplemented: Graphite loop optimizations cannot be used (-fgraphite, -fgraphite-identity, -floop-block, -floop-flatten, -floop-interchange, -floop-strip-mine, -floop-parallelize-all, and -ftree-loop-linear)
make[4]: *** [scripts/mod/empty.o] Errore 1
make[3]: *** [scripts/mod] Errore 2
make[2]: *** [scripts] Errore 2
make[1]: *** [sub-make] Errore 2
make[1]: uscita dalla directory "/home/marco/android/kernel/htc/htc7x30-3.0"
make: *** [TARGET_KERNEL_BINARIES] Errore 2
make: *** Attesa per i processi non terminati....
target StaticLib: libc_nomalloc (/home/marco/android/out/target/product/ace/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
Total time elapsed: 46 minutes (2787.207300735 seconds)
i attach a pastebin log for more information.
hope someone will help..thanks!

Related

[Q] Who could help me for compiling the kernel?

I build the ROM from source , but to automatically compile the kernel is always wrong.
/home/work/cm10.1/kernel/samsung/exynos5410/include/linux/kconfig.h:46:1: fatal error: drivers/gud//build_tag.h: No such file or directory
compilation terminated.
make[4]: *** [drivers/gud/MobiCoreDriver/logging.o] error 1
make[3]: *** [drivers/gud] error 2
make[2]: *** [drivers] error 2
make[1]: *** [sub-make] error 2
make: *** [TARGET_KERNEL_BINARIES] error 2
Who could help me ?
smallcsduck said:
I build the ROM from source , but to automatically compile the kernel is always wrong.
/home/work/cm10.1/kernel/samsung/exynos5410/include/linux/kconfig.h:46:1: fatal error: drivers/gud//build_tag.h: No such file or directory
compilation terminated.
make[4]: *** [drivers/gud/MobiCoreDriver/logging.o] error 1
make[3]: *** [drivers/gud] error 2
make[2]: *** [drivers] error 2
make[1]: *** [sub-make] error 2
make: *** [TARGET_KERNEL_BINARIES] error 2
Who could help me ?
Click to expand...
Click to collapse
It looks like you don't follow the kernel building process. Have a look at Sony's guide for building android kernels.
developer.sonymobile.com/knowledge-base/open-source/open-devices/how-to-build-and-flash-a-linux-kernel/how-to-build-and-flash-a-linux-kernel-for-aosp-supported-devices

[Q] Help with CM10.2 compilation errors (from source)

Hey all, so I've built out a development environment and have followed tutorials on how to build CM10.2 from source. I would consider myself an advanced Linux user and things have been going well with the exception of these compliation errors. Any help troubleshooting these would be greatly appreciated.
Code:
target thumb C++: libc <= bionic/libc/bionic/pthread_debug.cpp
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
make[3]: *** [linux] Error 2
make[2]: *** [headers_install] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/c0pp3r/android/cm10.2/kernel/htc/msm8960'
make: *** [/home/c0pp3r/android/cm10.2/out/target/product/evita/obj/KERNEL_OBJ/usr] Error 2
make: *** Waiting for unfinished jobs....
bionic/libc/bionic/pthread_debug.cpp:545:13: warning: 'void hashmap_removeEntry(HashTable*, HashEntry*)' defined but not used [-Wunused-function]
[email protected]:/home/c0pp3r/android/cm10.2#
You might get a better response in the Android Software/Hacking Development forum.
Sent from my Evita
Thanks for the tip. I'll do that.

Kernel compiling error

kernel compiling with GCC 4.8 google toolcahin:
Got this error during generating bcmdhd module:
CC [M] drivers/net/wireless/bcmdhd/wl_cfgp2p.o
drivers/net/wireless/bcmdhd/wl_cfgp2p.c: In function 'wl_cfgp2p_act_frm_search':
drivers/net/wireless/bcmdhd/wl_cfgp2p.c:769:31: error: array subscript is above array bounds [-Werror=array-bounds]
eparams->params.channel_list = htodchanspec(channels);
^
drivers/net/wireless/bcmdhd/wl_cfgp2p.c:769:31: error: array subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors
make[4]: *** [drivers/net/wireless/bcmdhd/wl_cfgp2p.o] Error 1
make[3]: *** [drivers/net/wireless/bcmdhd] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
kernel source : Here
OS: BBQ
I removed -Werror flag too. but i got thise error :
drivers/net/wireless/bcmdhd/wl_cfgp2p.c: In function 'wl_cfgp2p_act_frm_search':
drivers/net/wireless/bcmdhd/wl_cfgp2p.c:769:31: warning: array subscript is above array bounds [-Warray-bounds]
error, forbidden warning: wl_cfgp2p.c:769
make[4]: *** [drivers/net/wireless/bcmdhd/wl_cfgp2p.o] Error 1
make[3]: *** [drivers/net/wireless/bcmdhd] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
Thank you.

[HELP] Android kernel compiling error.

Hi every body, I am trying to compile kernel for SamSung Galaxy S5 (SM-G906K).
I always get this error message, i don't know how to solve it. Please help me !
Thank you all!
________________________________________________________
/home/vip7009pro/Kernel2/drivers/gpu/gpu_sysfs/Kbuild:29: **** Make sure target file is defined. Check the TARGET and GPU configs in Makefile and Kernel Config. Module won't work without target file. ****
scripts/Makefile.clean:17: /home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile'. Stop.
make[3]: *** [drivers/media/isdbt/fc8150] Error 2
make[2]: *** [drivers/media/isdbt] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [_clean_drivers] Error 2
[email protected]:~/Kernel2$ make mrproper
/home/vip7009pro/Kernel2/drivers/gpu/gpu_sysfs/Kbuild:29: **** Make sure target file is defined. Check the TARGET and GPU configs in Makefile and Kernel Config. Module won't work without target file. ****
scripts/Makefile.clean:17: /home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/vip7009pro/Kernel2/drivers/media/isdbt/fc8150/Makefile'. Stop.
make[3]: *** [drivers/media/isdbt/fc8150] Error 2
make[2]: *** [drivers/media/isdbt] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [_clean_drivers] Error 2
_________________________________________

[Kernel building error] SamSung Galaxy S6 G920L Kernel building error.

Hi everyone, I am gonna try to build my own kernel for my S6- G920L, but there was some errors that I havent figured out. I need your help.
I use, toolchain gcc 4.8 cross compiler.
Here is the result.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[2]: *** [scripts/mod/empty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC kernel/bounds.s
CC scripts/mod/devicetable-offsets.s
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[1]: *** [kernel/bounds.s] Error 1
arm-linux-androideabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
[email protected]:~/Downloads/laptrinhnhung/Kernel$
Thank you !
wrong toolchain mate.. you need to use the 4.9 arm64-linux-android as suggested in the readme for kernel in the sources
Sabermod prebuilt
for example or any other but minimum 4.9.. if you want to use a 5.0 you'll need to make some edits to the make file..
have fun
Thank you !. I got it done !... SOLVED

Categories

Resources