Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q]building kernel error lg g2 mini

OP invaderjohn

20th August 2014, 03:38 PM   |  #1  
invaderjohn's Avatar
OP Senior Member
Thanks Meter: 87
 
386 posts
Join Date:Joined: Jun 2009
More
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$
20th August 2014, 08:07 PM   |  #2  
Junior Member
Thanks Meter: 3
 
18 posts
Join Date:Joined: 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
Last edited by rpul; 20th August 2014 at 08:11 PM.
23rd August 2014, 10:19 AM   |  #3  
invaderjohn's Avatar
OP Senior Member
Thanks Meter: 87
 
386 posts
Join Date:Joined: Jun 2009
More
Quote:
Originally Posted by rpul

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.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes