[Resolved][HELP] Compile error [mik kernel]

D

DookMatt

Guest
I have this error when i compile mik kernel (i downloaded it from his git repo):

Code:
CC [M]  drivers/net/wireless/bcm4325/src/shared/linux_osl.o
cc1: warnings being treated as errors
drivers/net/wireless/bcm4325/src/shared/linux_osl.c: In function 'osl_pktfree_static':
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
drivers/net/wireless/bcm4325/src/shared/linux_osl.c:376:34: error: array subscript is above array bounds
make[4]: *** [drivers/net/wireless/bcm4325/src/shared/linux_osl.o] Error 1
make[3]: *** [drivers/net/wireless/bcm4325] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
I asked mik, but he doesn't reply...

i compile with "make -j2"

NB: This error there is in "git clone", "tar.gz" and "zip"...
 
Last edited:
D

DookMatt

Guest
Code:
git clone git://github.com/mik9/ThunderG-Kernel.git
OR I downloaded it from his repo with "Download Now" "tar.gz"
 

andy572

Inactive Recognized Developer
Sep 4, 2010
2,395
3,937
0
Germany, Munich (Deutschland, München)
do u work under windooze or linux?
i consider to use linux - on windows, the dumb cygwin environment have not
all needed includes.
if u use linux, try to take the latest android from cyanogen - there are prebuild
libs and binaries to compile both the android system and kernel.
u only have to export the path to the arm-ebi and the arch:

Code:
export ARCH=arm
export CROSS_COMPILE=<ANDROID_INSTALLPATH>/prebuild/linux86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
this works on my VM (virtualBox) without problems.
otherwise, try the bcm4325 tree from my github if you can compile, its a error in mik's driver tree or he have another compiler.
 
D

DookMatt

Guest
jre/jdk has nothing to do with kernel compiling - you need this only to compile the android system ;)
btw: try a 32bit system - i have had problems too to compile android under 64bit OS (ubuntu)
Now i creating a VM... but... on archlinux i installed 32bit library...
 

4silvertooth

Senior Member
Mar 23, 2011
1,424
137
0
Android Hell
I think you should try with google android ndk instead of codesourcery.

http://developer.android.com/sdk/ndk/index.html

Then

make -j2 ARCH=arm CROSS_COMPILE=~/android-ndk-PATH/toolchains/arm-linux-androideabi-x.x.x/prebuilt/linux-x86/bin/arm-linux-androideabi-
(Please change the path to ur ndk toolchain setup)

Sent from my LG-P500 using XDA Premium App
 
Last edited:
D

DookMatt

Guest
I think you should try with google android ndk instead of codesourcery.

http://developer.android.com/sdk/ndk/index.html

Then

make -j2 ARCH=arm CROSS_COMPILE=~/android-ndk-PATH/toolchains/arm-linux-androideabi-x.x.x/prebuilt/linux-x86/bin/arm-linux-androideabi-
(Please change the path to ur toolchain setup)

Sent from my LG-P500 using XDA Premium App
WAAAAAAAAAAAAAA!!! It works on Archlinux x86_64! Thank you very much!!!
 
D

DookMatt

Guest