I am compiling a custom kernel for CM using cm source and a few other minor tweaks from others, and myself, and I am getting an error having to do with the bcm4329 while compiling.
I am pretty new to c programing and compiling and am not sure how to fix this error any help is greatly appreciated.
cc1: warnings being treated as errors
drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_set_ap_security.clone.0':
drivers/net/wireless/bcm4329/wl_iw.c:4881: error: 'output' may be used uninitialized in this function
make[4]: *** [drivers/net/wireless/bcm4329/wl_iw.o] Error 1
make[3]: *** [drivers/net/wireless/bcm4329] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
Gr8gorilla said:
I am compiling a custom kernel for CM using cm source and a few other minor tweaks from others, and myself, and I am getting an error having to do with the bcm4329 while compiling.
I am pretty new to c programing and compiling and am not sure how to fix this error any help is greatly appreciated.
cc1: warnings being treated as errors
drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_set_ap_security.clone.0':
drivers/net/wireless/bcm4329/wl_iw.c:4881: error: 'output' may be used uninitialized in this function
make[4]: *** [drivers/net/wireless/bcm4329/wl_iw.o] Error 1
make[3]: *** [drivers/net/wireless/bcm4329] 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
have you modified the wlan source at all?
if not, repull down the source fresh, and then re-merge your changes in.
havn't modified the wlan source at all, so I will repull and try again, will report back. Thanks.
Ok i got the kernel compiled and now I I want to compile the .ko for the wireless, can I get a little help with that?
Gr8gorilla said:
Ok i got the kernel compiled and now I I want to compile the .ko for the wireless, can I get a little help with that?
Click to expand...
Click to collapse
If u ran a make, it was compiled.
Pick it up in drivers/net/wireless/bcm4329
I ran the make command from the cyanogen wiki, and used make ARCH=arm command and the wireless driver is not in the file it is supposed to be in.
Gr8gorilla said:
I ran the make command from the cyanogen wiki, and used make ARCH=arm command and the wireless driver is not in the file it is supposed to be in.
Click to expand...
Click to collapse
Pass this to make:
Foldertoputmodulesin/ modules_install
Then you'll see your modules in there.
Gr8gorilla,
What did you do to get the kernel to compile? I'm getting the same error with a fresh pull.
If you check out my overclock how to, I take you step by step through making a kernel.
Gr8gorilla said:
If you check out my overclock how to, I take you step by step through making a kernel.
Click to expand...
Click to collapse
I still get the compile error after I followed the guide except I didn't use your modified files; I'm not overvolting or overclocking.
For what its worth, if I remove the bcm4329 kernel module from the config then it builds fine and is running stable on my Nexus One, albeit, without wifi.
Nevermind, apparently there was something wrong with my kernel config.
how long ago did you resync your repo? I had a compile error today that is involving some of the new changes there was a new option when doing old config, I hit yes the first time and had an error, no wifi driver, but a boot image. Second time I hit enter and it compiled fine.
I have sgp 5.0 intl.
I have no Idea why but I get such an error when compiling kernel from Ambrice's source:
Code:
In file included from drivers/gpu/pvr/osfunc.c:39:0:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
drivers/gpu/pvr/osfunc.c: In function 'OSAccessOK':
drivers/gpu/pvr/osfunc.c:2144:13: error: variable 'linuxType' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [drivers/gpu/pvr/osfunc.o] Error 1
make[2]: *** [drivers/gpu/pvr] Error 2
make[1]: *** [drivers/gpu] Error 2
make: *** [drivers] Error 2
[email protected]:~/android/kernel/AMBRICES$
any idea?
KOala888 said:
I have sgp 5.0 intl.
I have no Idea why but I get such an error when compiling kernel from Ambrice's source:
Code:
In file included from drivers/gpu/pvr/osfunc.c:39:0:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
drivers/gpu/pvr/osfunc.c: In function 'OSAccessOK':
drivers/gpu/pvr/osfunc.c:2144:13: error: variable 'linuxType' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [drivers/gpu/pvr/osfunc.o] Error 1
make[2]: *** [drivers/gpu/pvr] Error 2
make[1]: *** [drivers/gpu] Error 2
make: *** [drivers] Error 2
[email protected]:~/android/kernel/AMBRICES$
any idea?
Click to expand...
Click to collapse
Which toolchain are you using?
zaclimon said:
Which toolchain are you using?
Click to expand...
Click to collapse
arm-eabi-linaro-4.6.2
KOala888 said:
arm-eabi-linaro-4.6.2
Click to expand...
Click to collapse
Yeah.. linaro seems to give some problems with compiling, try those toolchains (the 4.4.3 one)
https://github.com/DooMLoRD/android_prebuilt_toolchains
zaclimon said:
Yeah.. linaro seems to give some problems with compiling, try those toolchains (the 4.4.3 one)
https://github.com/DooMLoRD/android_prebuilt_toolchains
Click to expand...
Click to collapse
Thanks a lot guy, successfully compiled after 2 weeks
Is it possible that 4.3.3 compiles sort of slower than 4.6.2?
It took ages. Too bad Vm doesn't seem to work on 2 cores on my PC
awesome, threat can be removed
hi, i want to compile cm.10.2 from scratch to my device,
i have one error that i dont know how to solve.
Code:
target SharedLib: libwebcore (out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so)
collect2: ld returned 1 exit status
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Error 1
i try this
Code:
#Clean libwebcore built files
make clean-libwebcore
#Rebuild libwecore modules only
make -j8 libwebcore
#continue with the building of the remaining modules not being compiled yet.
make -j8
but it doesnt work for me.
i have latest sources, VM o virtualbox ubuntu 13.04 64bit
problem solved, wrong java, changed openjdk to oracle and it works now
if we had done change jdk > oracle, it should be build from begining or just 'make -j8 libwebcore'?
Sent from my SM-T211 using XDA Free mobile app
Hello. Here is the problem: when compiling gets out here it is:
Code:
----- Making recovery ramdisk ------
/home/slava/android/system/out/host/linux-x86/bin/minigzip < /home/slava/android/system/out/target/product/coconut/ramdisk-recovery.cpio > /home/slava/android/system/out/target/product/coconut/ramdisk-recovery.img
error: unsupported page size 131072
make: *** [/home/slava/android/system/out/target/product/coconut/boot.img] Error 255How do I fix this?
make: *** Waiting for unfinished jobs...
target SharedLib: libutils (/home/slava/android/system/out/target/product/coconut/obj/SHARED_LIBRARIES/libutils_intermediates/LINKED/libutils.so)
Total time elapsed: 51 minutes (3106.947346596 seconds)
[email protected]:~/android/system$
installed java, android sdk install. All required packages installed.
How do I fix this?
Did you change the BoardConfig.mk in any way?
mihahn said:
Did you change the BoardConfig.mk in any way?
Click to expand...
Click to collapse
nope
I have a ROM that I am trying to build and it is based off of CyanogenMod 12.1, but I am having trouble getting an initial build working. I keep running into the following error.
Code:
No private recovery resources for TARGET_DEVICE hammerhead
make: *** No rule to make target 'out/target/product/hammerhead/kernel', needed by 'out/target/product/hammerhead/boot.img'. Stop.
make: *** Waiting for unfinished jobs....
It seems pretty obvious that it can't figure out how to build the kernel, but I am uncertain how that is hooked into the build system. Is there any good resources I can look at to find out how to build the kernel or integrate it into the build process. So many makefiles and python scripts, I am a little lost
I have the "CyanogenMod/android_kernel_lge_hammerhead" synced to "kernel/lge/hammerhead" but all the resources I have found so far don't provide much insight after that.
Thank you in advance for your help