Hi people,
I have a problem with Update2 sourcecode, kernel.
If I do "make mrproper" then he will not clean the drivers, this error:
scripts/Makefile.clean:17: /home/name/android/samsung/galaxys2/kernel/drivers/staging/westbridge/astoria/Makefile: No such file or directory
make[3]: *** No rule to make target `/home/name/android/samsung/galaxys2/kernel/drivers/staging/westbridge/astoria/Makefile'. Stop.
make[2]: *** [drivers/staging/westbridge/astoria] Error 2
make[1]: *** [drivers/staging] Error 2
make: *** [_clean_drivers] Error 2
Click to expand...
Click to collapse
Thanks in advance!
i was compile rom for my device Htc Pico /Explorer A310e ...and have this is error and im unable to fix it ..no matter what sources or Toolchain i use ...i use more than 10 different source and toolchains ...i even gone through toturial about compiling roms and kernels ..but unbale to fix this error ...getting same error everytime !!:crying:
little help will appreciated..!!:fingers-crossed:
CC net/ipv6/netfilter.o
CC net/ipv4/xfrm4_state.o
drivers/net/wireless/bcmdhd/wl_cfgp2p.c: In function 'wl_cfgp2p_ifidx':
drivers/net/wireless/bcmdhd/wl_cfgp2p.c:439:31: error: argument to 'sizeof' in 'memcpy' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
memcpy(index, getbuf, sizeof(index));
^
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
make: *** Waiting for unfinished jobs....
CC net/ipv4/xfrm4_input.o
CC net/ipv6/fib6_rules.o
Click to expand...
Click to collapse
akshay4 said:
i was compile rom for my device Htc Pico /Explorer A310e ...and have this is error and im unable to fix it ..no matter what sources or Toolchain i use ...i use more than 10 different source and toolchains ...i even gone through toturial about compiling roms and kernels ..but unbale to fix this error ...getting same error everytime !!:crying:
little help will appreciated..!!:fingers-crossed:
Click to expand...
Click to collapse
i know old, but in case anyone else googles this error the answer is
replace sizeof(index) with sizeof(s32)
Code:
CC net/netfilter/xt_qtaguid.o
CC net/netfilter/xt_quota.o
CC net/netfilter/xt_quota2.o
CC net/netfilter/xt_socket.o
In file included from include/linux/kernel.h:23:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from net/netfilter/xt_socket.c:13:
net/netfilter/xt_socket.c: In function 'xt_socket_get4_sk':
include/linux/dynamic_debug.h:75:21: warning: 'protocol' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: dynamic_debug.h:75
make[2]: *** [net/netfilter/xt_socket.o] Error 1
make[1]: *** [net/netfilter] Error 2
make: *** [net] Error 2
[email protected]:~/kernel$
Original file here.
I'm using ndk gcc 4.8. This error is present also on gcc 4.7. The only way to get rid of this error is to use toolchain 4.6. I need to compile it using a newer toolchain, that's why I request your help.
Any ideas?
Kernel Compilation
srsdani said:
Code:
CC net/netfilter/xt_qtaguid.o
CC net/netfilter/xt_quota.o
CC net/netfilter/xt_quota2.o
CC net/netfilter/xt_socket.o
In file included from include/linux/kernel.h:23:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from net/netfilter/xt_socket.c:13:
net/netfilter/xt_socket.c: In function 'xt_socket_get4_sk':
include/linux/dynamic_debug.h:75:21: warning: 'protocol' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: dynamic_debug.h:75
make[2]: *** [net/netfilter/xt_socket.o] Error 1
make[1]: *** [net/netfilter] Error 2
make: *** [net] Error 2
[email protected]:~/kernel$
Original file here.
I'm using ndk gcc 4.8. This error is present also on gcc 4.7. The only way to get rid of this error is to use toolchain 4.6. I need to compile it using a newer toolchain, that's why I request your help.
Click to expand...
Click to collapse
I guess you are looking on another file.
Code:
error, forbidden warning: dynamic_debug.h:75
I guess there is a problem in dynamic_debug.h in line 75. I guess you need to initialise something.
Here is dynamic_debug.h but I can't find the problem.
I will appreciate any opinion.
Try this method!
srsdani said:
Here is dynamic_debug.h but I can't find the problem.
Click to expand...
Click to collapse
I am not much used to kernel related development but I analysed your dynamic_debug.h and found the problem (maybe a problem):
Normally, a do-while loop syntax is this:
Code:
do
{
Statement1;
Statement2;
...
}while(condition);
But I don't see a semicolon in the end of those loops in your code. This maybe a syntax error.
Also analyse these codes:
Code:
#if defined(CONFIG_DYNAMIC_DEBUG)
extern int ddebug_remove_module(const char *mod_name);
extern __printf(2, 3)
int __dynamic_pr_debug(struct _ddebug *descriptor, const char *fmt, ...);
struct device;
extern __printf(3, 4)
int __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev,
const char *fmt, ...);
struct net_device;
extern __printf(3, 4)
int __dynamic_netdev_dbg(struct _ddebug *descriptor,
const struct net_device *dev,
const char *fmt, ...);
Every intialisation has 4 protocols but the first initialisation contain only 3.
Try the above things and tell me back if it works or not.
So, the problem was in Makefile and .config. I compared and added some flags from Mako (from franco) and it worked. I still have some warning/s, some breakpoints but at least now it's working. Anyway, this thread may be useful for all of us. Thanks a lot for help.
Now, another problem.
Code:
CC fs/proc/loadavg.o
CC fs/proc/meminfo.o
fs/proc/meminfo.c: In function ‘meminfo_proc_show’:
fs/proc/meminfo.c:175:1: internal compiler error: in optimize_sc, at modulo-sched.c:1069
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.launchpad.net/gcc-linaro> for instructions.
make[2]: *** [fs/proc/meminfo.o] Error 1
make[1]: *** [fs/proc] Error 2
make: *** [fs] Error 2
[email protected]:~/kernel2$
With linaro 4.8.3 => OK;
linaro 4.8.3 + A15 optimize=> fail, error above. meminfo.c it's exactly like the one from nexus 4.
FIX: compiler bug;
srsdani said:
Code:
CC net/netfilter/xt_qtaguid.o
CC net/netfilter/xt_quota.o
CC net/netfilter/xt_quota2.o
CC net/netfilter/xt_socket.o
In file included from include/linux/kernel.h:23:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from net/netfilter/xt_socket.c:13:
net/netfilter/xt_socket.c: In function 'xt_socket_get4_sk':
include/linux/dynamic_debug.h:75:21: warning: 'protocol' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: dynamic_debug.h:75
make[2]: *** [net/netfilter/xt_socket.o] Error 1
make[1]: *** [net/netfilter] Error 2
make: *** [net] Error 2
[email protected]:~/kernel$
Original file here.
I'm using ndk gcc 4.8. This error is present also on gcc 4.7. The only way to get rid of this error is to use toolchain 4.6. I need to compile it using a newer toolchain, that's why I request your help.
Click to expand...
Click to collapse
Hey sarsdani Apologies that I'm quoting you 12 month later. I am getting an identical error in the same file/address as you had when you posted this question. Im compiling stock HTC m7 Android L kernel with Google tool chain 4.8 - android 5.1 r1
You mentioned later on that you changed the Makefile and .config to fix the [-Wmaybe-uninitialized] error. Can you please detail what those changes were or point me to an example ( if you can remember ) I could just change Wmaybe in Makefile to Wno but turning the flag off altogether seems dangerous.
@Joeisgood99 there are two ways to solve this.
1. using a "hack". So, you need to add in makefile (in root folder from kernel source) at KBUILD_CFLAGS: -Wno-maybe-uninitialized \
2. Open that file with the error and asign a value to protocol.
The first option is not dangerous. Why? Because only the toolchain say this. In gcc 4.6, the reason why you don't get this error is because it assign a value automatically to that "protocol", usualy random value but not always. In gcc 4.7/4.8/4.9(or 4.10) this is threated as warning/error.
/home/austin/cm11/kernel/lge/w3c/net/ipv4/ipconfig.c:264: undefined reference to `msecs_to_jiffies'
/home/austin/cm11/kernel/lge/w3c/Makefile:877: recipe for target '.tmp_vmlinux1' failed
make[2]: *** [.tmp_vmlinux1] Error 1
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/austin/cm11/kernel/lge/w3c'
build/core/tasks/kernel.mk:188: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
Any ideas what this could be? I'm a bit stumped i've never seen an error like this before
It's okay i retired the project as of now since trying to modify the kernel source code isn't do anything but causing more errors. I do appreciate any help when everyone has a chance
Hi!
I'm getting this error when I try to compile kernel from this source:
Code:
CC drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/common/mali_kernel_utilization.o
arm-linux-androideabi-gcc: error: no: No such file or directory
arm-linux-androideabi-gcc: error: versionado: No such file or directory
arm-linux-androideabi-gcc: error: no: No such file or directory
arm-linux-androideabi-gcc: error: versionado": No such file or directory
make[4]: *** [drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/common/mali_kernel_utilization.o] Error 1
make[3]: *** [drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali] Error 2
make[2]: *** [drivers/gpu/mali] Error 2
make[1]: *** [drivers/gpu] Error 2
make: *** [drivers] Error 2
I don't know what to do, I'm using Google 4.6 toolchain and also tried with CyanogenMod 4.4.3 toolchain, but I get the same error
What can I do?
Thanks!
PS: @etch04 can you help me?
Anyone?
Error trying to build kernel for Xperia Go
Hello, have you found a solution? I have same problem with kernel for xperia go
My source is latest XperiaSTE for go at github
Garcia98 said:
Hi!
I'm getting this error when I try to compile kernel from this source:
Code:
CC drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/common/mali_kernel_utilization.o
arm-linux-androideabi-gcc: error: no: No such file or directory
arm-linux-androideabi-gcc: error: versionado: No such file or directory
arm-linux-androideabi-gcc: error: no: No such file or directory
arm-linux-androideabi-gcc: error: versionado": No such file or directory
make[4]: *** [drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/common/mali_kernel_utilization.o] Error 1
make[3]: *** [drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali] Error 2
make[2]: *** [drivers/gpu/mali] Error 2
make[1]: *** [drivers/gpu] Error 2
make: *** [drivers] Error 2
I don't know what to do, I'm using Google 4.6 toolchain and also tried with CyanogenMod 4.4.3 toolchain, but I get the same error
What can I do?
Thanks!
PS: @etch04 can you help me?
Click to expand...
Click to collapse
f5bud said:
Hello, have you found a solution? I have same problem with kernel for xperia go
My source is latest XperiaSTE for go at github
Click to expand...
Click to collapse
I think that was a setup problem while preparing the environment in my PC, I don't know, I haven't had this error again.
Garcia98 said:
I think that was a setup problem while preparing the environment in my PC, I don't know, I haven't had this error again.
Click to expand...
Click to collapse
Yes, after reloaded a new lubuntu it's work !!!
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
Thank you.
@rcane said:
kernel compiling with GCC 4.8 google toolcahin:
Got this error during generating bcmdhd module:
kernel source : Here
OS: BBQ
Thank you.
Click to expand...
Click to collapse
Here warnings are taken as errors. Suppress those errors by adding the array flag in the makefile present in kernel source. Add the flag under KBUILD_CFLAGS.
Regards and good luck
MasterAwesome
Sent from my Moto G
MasterAwesome said:
Here warnings are taken as errors. Suppress those errors by adding the array flag in the makefile present in kernel source. Add the flag under KBUILD_CFLAGS.
Regards and good luck
MasterAwesome
Sent from my Moto G
Click to expand...
Click to collapse
Thank you for your reply. I did that 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
@rcane said:
Thank you for your reply. I did that too. but i got thise error :
Click to expand...
Click to collapse
I'm not very sure if it'll work but try suppressing that error to.. To suppress all warnings add KBUILD_CFLAGS =-w
Regards
MasterAwesome
Sent from my Moto G