Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,290 Members 53,251 Now Online
XDA Developers Android and Mobile Development Forum

[Q]building kernel error lg g2 mini

Tip us?
 
invaderjohn
Old
#1  
invaderjohn's Avatar
Senior Member - OP
Thanks Meter 56
Posts: 339
Join Date: Jun 2009
Default [Q]building kernel error lg g2 mini

so ive been trying for a couple of days to build my own kernel for our lg g2 mini (d620R) devices since we just unlocked bootloader and got custom recovery. so we need a custom kernel to build custom roms.

ive been trying alot and ive gotten so far i got pass making the .config file and got into the menuconfig and saved it. now im trying to compile the new kernel
and this is what i get.
and i have no clue what to do.
hope someone can help me out.
should be realy great to have custom roms on the lg g2 mini asap

Code:
john@john-UL30VT:~/android/kernel/kernel$ make -j4 -Wsizeof-pointer-memaccess ARCH=arm CROSS_COMPILE=arm-linux-androideabi-
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
CHK include/generated/compile.h
CHK kernel/config_data.h
objcopy: '.ihex': No such file
/home/john/android/kernel/kernel/firmware/Makefile:328: target `/home/john/android/kernel/kernel/firmware/melfas/' given more than once in the same rule.
IHEX firmware/atmel/E2A47P1_2_04.fw
IHEX firmware/atmel/E2A47P2_2_04.fw
IHEX firmware/atmel/E4A47P1_2_04.fw
IHEX firmware/atmel/E4A47P2_2_04.fw
IHEX firmware/atmel/E4A47P2_2_05.fw
IHEX firmware/atmel/E7_0210.fw
IHEX firmware/atmel/E7_0214.fw
IHEX firmware/atmel/Jaguar01.fw
IHEX firmware/atmel/Jaguar02.fw
IHEX firmware/atmel/S0A47P1_2_05.fw
IHEX firmware/atmel/S0A47P1_2_06.fw
IHEX firmware/atmel/S0A47P1_2_07.fw
IHEX firmware/atmel/S2A47P1_2_05.fw
IHEX firmware/atmel/S2A47P1_2_06.fw
AS firmware/melfas/mms100a_core54_v01.mfsb.gen.o
AS firmware/atmel/E2A47P1_2_04.fw.gen.o
AS firmware/atmel/E2A47P2_2_04.fw.gen.o
AS firmware/atmel/E4A47P1_2_04.fw.gen.o
AS firmware/atmel/E4A47P2_2_04.fw.gen.o
AS firmware/atmel/E4A47P2_2_05.fw.gen.o
AS firmware/atmel/E7_0210.fw.gen.o
CC net/bluetooth/hci_conn.o
AS firmware/atmel/E7_0214.fw.gen.o
AS firmware/atmel/Jaguar01.fw.gen.o
AS firmware/atmel/Jaguar02.fw.gen.o
AS firmware/atmel/S0A47P1_2_05.fw.gen.o
AS firmware/atmel/S0A47P1_2_06.fw.gen.o
AS firmware/atmel/S0A47P1_2_07.fw.gen.o
AS firmware/atmel/S2A47P1_2_05.fw.gen.o
AS firmware/atmel/S2A47P1_2_06.fw.gen.o
LD firmware/built-in.o
net/bluetooth/hci_conn.c: In function 'hci_le_ltk_reply':
net/bluetooth/hci_conn.c:407:28: warning: argument to 'sizeof' in 'memcpy' call is the same pointer type '__u8 *' as the destination; expected '__u8' or an explicit length [-Wsizeof-pointer-memaccess]
error, forbidden warning: hci_conn.c:407
make[2]: *** [net/bluetooth/hci_conn.o] Error 1
make[1]: *** [net/bluetooth] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [net] Error 2
make: *** Waiting for unfinished jobs....
john@john-UL30VT:~/android/kernel/kernel$
 
rpul
Old
(Last edited by rpul; 20th August 2014 at 07:11 PM.)
#2  
Junior Member
Thanks Meter 2
Posts: 18
Join Date: May 2010
Please copy here the line 407 from file net/bluetooth/hci_conn.c
That line does not compile because of argument -Wsizeof-pointer-memaccess in your 'make' command. Try to compile without that argument, or copy the line here, so that we see what needs to be fixed in that line.


Edit:

It seems to be a issue/change in GCC 4.8:
https://gcc.gnu.org/gcc-4.8/porting_to.html
 
invaderjohn
Old
#3  
invaderjohn's Avatar
Senior Member - OP
Thanks Meter 56
Posts: 339
Join Date: Jun 2009
Quote:
Originally Posted by rpul View Post
Please copy here the line 407 from file net/bluetooth/hci_conn.c
That line does not compile because of argument -Wsizeof-pointer-memaccess in your 'make' command. Try to compile without that argument, or copy the line here, so that we see what needs to be fixed in that line.


Edit:

It seems to be a issue/change in GCC 4.8:
https://gcc.gnu.org/gcc-4.8/porting_to.html

oh thanks. got passed that error though. i use toolchain arm-linux-androideabi-4.9 to compile.
ive tried arm-none-eabi-4.8 and arm-eabi-4.7 the 4.9 seems to work best.
im compiing right at this point ill edit if i get errors again.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes