Compiling jb code for defy - Defy Q&A, Help & Troubleshooting

can anyone guide how to compile original JB source code for motorola defy ........... i.e. how to make working JB rom for defy ... dont want to use cyanogen mod rom ............. want to create my own
can anyone guide

thank u!
it really helps! thanks for all the tips! master!
Sent from my MB526 using xda premium

nogoodusername said:
thank u!
it really helps! thanks for all the tips! master!
Sent from my MB526 using xda premium
Click to expand...
Click to collapse
i didnt get u!
what exactly you want to say?

Wrong section bro... this should go in Q&A or even in General, but definitely not here...

I think it is also a development part ........ building environment & development of custom rom from source ....

latadswapnil said:
I think it is also a development part ........ building environment & development of custom rom from source ....
Click to expand...
Click to collapse
Development section is meant for development not discussions, tutorials, How-Tos etc. This is where roms, mods and other cool stuff go. It is a place where something is being worked on and where devs and the community can contribute and work together. Questions are for the Q&A and General section whether or not they are development related has Hairo has said.

Kayant said:
Development section is meant for development not discussions, tutorials, How-Tos etc. This is where roms, mods and other cool stuff go. It is a place where something is being worked on and where devs and the community can contribute and work together. Questions are for the Q&A and General section whether or not they are development related has Hairo has said.
Click to expand...
Click to collapse
Ok but this can be moved to the respective section and answered there na?
I too want a lil novice guide on compiling roms
Sent from my MB525 using xda app-developers app

vedhasd said:
Ok but this can be moved to the respective section and answered there na?
I too want a lil novice guide on compiling roms
Sent from my MB525 using xda app-developers app
Click to expand...
Click to collapse
It will be soon
Then your best friend is search google, XDA and whatever else......however, if you know how to code then it should be easy if not look at my github and look at the commits I cherry-pick from our CM team those are what is need to get the defy to boot on an AOSP rom. Look at the android source code and see how it works you will know what to do from there look at other roms like AOKP, CM and CNA etc. When I ported AOKP and CNA and soon Slim i don't know how to code one bit however, I just know how to look at things and see how they work by searching, using my brain, comparing for hours and learning. Learning to use git is necessary for all this to happen it's quite easy once you get the hang of it just search the commands if you don't know what they mean or do.
Good luck and next time latadswapnil please post in the right section.

Moved to Q&A. Please do not posts questions in development sections.

TeeJay3800 said:
Moved to Q&A. Please do not posts questions in development sections.
Click to expand...
Click to collapse
Sorry
Sent from my MB525 using xda app-developers app
---------- Post added at 08:41 AM ---------- Previous post was at 08:37 AM ----------
@kayant yes dude, especially its very good of you, I have used ur aokp builds and luved it! And i just want from where to start...I have a lil knowledge of c,c++,java coding but don't know how to apply in compiling! I have done some apps...dunno if that knowledge is useful..!
Sent from my MB525 using xda app-developers app

sorry ...bro ...

i have sync the android source & build required environment .... please guide me to where to look & what are the important factors to look while learning . .

Kayant said:
It will be soon
Then your best friend is search google, XDA and whatever else......however, if you know how to code then it should be easy if not look at my github and look at the commits I cherry-pick from our CM team those are what is need to get the defy to boot on an AOSP rom. Look at the android source code and see how it works you will know what to do from there look at other roms like AOKP, CM and CNA etc. When I ported AOKP and CNA and soon Slim i don't know how to code one bit however, I just know how to look at things and see how they work by searching, using my brain, comparing for hours and learning. Learning to use git is necessary for all this to happen it's quite easy once you get the hang of it just search the commands if you don't know what they mean or do.
Good luck and next time latadswapnil please post in the right section.
Click to expand...
Click to collapse
Can you post some links!! to start from begin ....! it will be very helpful

latadswapnil said:
Can you post some links!! to start from begin ....! it will be very helpful
Click to expand...
Click to collapse
I won't post links as that will be spoon feeding and you can't do this if I do that
but search the general section i have a guide on compiling roms for the defy and also there's a thread where Quarx helped me when I was porting AOKP JB.
Good luck ^_^

It takes hours to compile the code ....... it will be helpful if you suggest ... some sort of changes for that we have to look..... before compiling
More or less....forum is made for helping each other......providing link will reduce the work......
Sent from my MB526 using xda app-developers app

latadswapnil said:
It takes hours to compile the code ....... it will be helpful if you suggest ... some sort of changes for that we have to look..... before compiling
More or less....forum is made for helping each other......providing link will reduce the work......
Sent from my MB526 using xda app-developers app
Click to expand...
Click to collapse
Yes but you wouldn't be learning the point of a forum is to give a guiding hand and you do the rest = learning less problems and person remembering that skill..... Well I ported gummy rom for the first time(even though it didn't boot probably in the end) no one helped me because I read around, read a lot before doing what I did and I have given a lot of info already on where to find stuff i cba to search it it's already out there for you. You just need to find it like i did
---------- Post added at 08:43 PM ---------- Previous post was at 08:41 PM ----------
vedhasd said:
@kayant yes dude, especially its very good of you, I have used ur aokp builds and luved it! And i just want from where to start...I have a lil knowledge of c,c++,java coding but don't know how to apply in compiling! I have done some apps...dunno if that knowledge is useful..!
Sent from my MB525 using xda app-developers app
Click to expand...
Click to collapse
Once you learn how AOSP works it should help you write in some new code if you want to add some new features and also to identify and fix errors when they come up when compiling.....

ERROR::!!!
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:98:39: error: invalid use of undefined type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:98:39: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:100:39: error: invalid use of undefined type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONN
MARK.c:100:39: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_init':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:133:6: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:133:6: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:134:6: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:134:6: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'CONNMARK_parse':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:144:20: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:144:20: note: each undeclared identifier is reported only once for each function it appears in
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:144:18: warning: assignment makes integer from pointer without a cast [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:149:20: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:149:18: warning: assignment makes integer from pointer without a cast [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:152:20: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:152:18: warning: assignment makes integer from pointer without a cast [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_parse':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:167:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:167:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:167:18: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:168:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:168:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:169:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:169:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:172:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:172:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:173:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:173:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:174:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:174:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:177:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:177:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:178:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:178:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:179:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:179:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:182:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:182:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:183:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:183:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:184:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:184:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:187:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:187:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:188:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:188:7: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:189:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:189:7: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:192:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:192:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:192:16: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:195:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:195:7: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:195:16: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:7: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:7: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:22: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:198:22: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'CONNMARK_print':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:229:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:234:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:238:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_print':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:254:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:254:14: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:255:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:256:11: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:256:11: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:258:40: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:258:40: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:258:35: error: wrong type argument to bit-complement
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:16: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:32: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:259:32: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:260:36: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:260:36: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:260:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:261:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:261:16: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:262:37: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:262:37: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:262:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:263:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:263:16: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:263:25: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:264:37: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:264:37: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:264:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:15: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:15: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:29: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:29: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:11: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:267:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:269:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:11: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:11: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:20: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:41: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:41: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:270:50: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:16: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:32: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:272:32: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:273:43: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:273:43: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:273:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:15: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:15: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:29: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:29: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:11: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:276:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:278:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:11: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:11: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:20: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:41: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:41: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:279:50: warning: comparison between pointer and integer [enabled by default]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:16: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:16: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:32: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:281:32: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:282:46: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:282:46: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:282:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:15: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:15: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:29: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:29: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:11: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:285:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'CONNMARK_save':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:300:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:305:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:309:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: In function 'connmark_tg_save':
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:332:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:332:14: error: request for member 'mode' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:333:7: error: 'XT_CONNMARK_SET' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:40: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:40: error: request for member 'ctmark' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:54: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:54: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:3: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:334:3: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:336:7: error: 'XT_CONNMARK_SAVE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:14: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:28: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:28: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:10: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:338:10: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:340:7: error: 'XT_CONNMARK_RESTORE' undeclared (first use in this function)
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:14: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:14: error: request for member 'nfmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:28: error: dereferencing pointer to incomplete type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:28: error: request for member 'ctmask' in something not a structure or union
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:10: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct xt_option_entry const *' [-Wformat]
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:342:10: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct xt_option_entry const *' [-Wformat]

ERROR::!!! Continue
target thumb C: libext <= out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_conntrack.c
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c: At top level:
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid operands to binary + (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: wrong type argument to bit-complement
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: invalid operands to binary & (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: initializer element is not constant
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:371:20: error: (near initialization for 'connmark_tg_reg[1].size')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid operands to binary + (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid application of 'sizeof' to incomplete type 'struct xt_connmark_tginfo1'
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: cast specifies array type
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: wrong type argument to bit-complement
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: invalid operands to binary & (have 'struct xt_option_entry const *' and 'struct xt_option_entry const *')
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: initializer element is not constant
out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.c:372:20: error: (near initialization for 'connmark_tg_reg[1].userspacesize')
make: *** [out/target/product/maguro/obj/STATIC_LIBRARIES/libext_intermediates/libxt_CONNMARK.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/defy_rom$ repo status platform/bionic
project bionic/ (*** NO BRANCH ***)
-- libc/kernel/common/linux/netfilter/.goutputstream-A166LW
-- libc/kernel/common/linux/netfilter/.goutputstream-C8EWLW
-- libc/kernel/common/linux/netfilter_ipv6/.goutputstream-I0Z6LW
got this while trying to build the source
first i have installed ubuntu 32bit as guest on virtual box & done all repo sync .........................& later i came to know i have to do it on the ubuntu 64 bit ...........so i have copied all source to host OS windows7 .........then i have installed ubuntu 64bit guest os & copied all source to it.....
then i have done all procedure again & also done repo sync again ........... only some updates downloaded & done successfuly
then tried to build the source & got the above error

You need to read around before trying. Have you done that yet??? You do know you're compiling for the galaxy nexus not the defy at the moment you need to add support for the defy through mk files and changing some things in some other places..... And try and condense the error log it's quite hard to following and am not going to know how to fix everything I have no programming skills it's must better to search first then if you can't find the answer then post..

Kayant said:
You need to read around before trying. Have you done that yet??? You do know you're compiling for the galaxy nexus not the defy at the moment you need to add support for the defy through mk files and changing some things in some other places..... And try and condense the error log it's quite hard to following and am not going to know how to fix everything I have no programming skills it's must better to search first then if you can't find the answer then post..
Click to expand...
Click to collapse
Yes i do know i am compiling for nexus .. but i am doing that for emulator purpose ...............
i read about that error ........ on google group ..but solution is not working & also ubuntu is having case sensitive file system
i am not getting what exactly to do because there is nothing more about it on google ..........
any developer can help me out here ?

Related

Trying to build the stock kernel from source [SOLVED]

edit: The stock kernel can be built following this thread.
I'm trying to build the stock kernel from source (the one from huaweidevice). I'm running Ubuntu 10.10 64-bit.
I've gotten this far:
- I've extracted config from phone /proc/config.gz and copied it to kernel/.config
- I went through this guide: source.android.com source initializing.html
- I created some symbolic links to get rid of file not found errors when compiling:
kernel-2.6.32-U8800-Froyo/kernel/net/netfilter$ ln -s xt_connmark.c xt_CONNMARK.c
kernel-2.6.32-U8800-Froyo/kernel/net/netfilter$ ln -s xt_HL.c xt_hl.c
kernel-2.6.32-U8800-Froyo/kernel/net/netfilter$ ln -s xt_MARK.c xt_mark.c
kernel-2.6.32-U8800-Froyo/kernel/net/ipv4/netfilter$ ln -s ipt_ECN.c ipt_ecn.c
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter$ ln -s xt_mark.h xt_MARK.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter_ipv4$ ln -s ipt_ecn.h ipt_ECN.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter$ ln -s xt_DSCP.h xt_dscp.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter_ipv4$ ln -s ipt_ttl.h ipt_TTL.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter_ipv6$ ln -s ip6t_hl.h ip6t_HL.h
Now for the cross compilation I've tried 3 different toolchains:
- The ones from developer.android.com sdk ndk index.html
- and codesourcery.com sgpp lite arm portal package8734/public/arm-none-eabi/arm-2011.03-42-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
then I've tried compiling with:
make -j8 ARCH=arm CROSS_COMPILE=.../android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-
and
make -j8 ARCH=arm CROSS_COMPILE=.../android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
and
make -j8 ARCH=arm CROSS_COMPILE=.../arm-2011.03/bin/arm-none-eabi-
they all give me output similar to this (this is with the 4.4.0 toolchain):
Code:
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC net/netfilter/xt_MARK.o
CC net/ipv4/netfilter/ipt_ecn.o
CC net/netfilter/xt_NFQUEUE.o
CC net/ipv4/netfilter/ipt_NETMAP.o
CC net/netfilter/xt_comment.o
CC net/netfilter/xt_connlimit.o
net/netfilter/xt_MARK.c: In function 'mark_tg':
net/netfilter/xt_MARK.c:32: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c:32: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c: At top level:
net/netfilter/xt_MARK.c:41: error: invalid application of 'sizeof' to incomplete type 'struct xt_mark_tginfo2'
make[2]: *** [net/netfilter/xt_MARK.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC net/ipv4/netfilter/ipt_REDIRECT.o
CC net/ipv4/netfilter/ipt_REJECT.o
cc1: warnings being treated as errors
net/ipv4/netfilter/ipt_ecn.c:29: error: 'struct ipt_ECN_info' declared inside parameter list
net/ipv4/netfilter/ipt_ecn.c:29: error: its scope is only this definition or declaration, which is probably not what you want
net/ipv4/netfilter/ipt_ecn.c: In function 'set_ect_ip':
net/ipv4/netfilter/ipt_ecn.c:33: error: 'XT_DSCP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:33: error: (Each undeclared identifier is reported only once
net/ipv4/netfilter/ipt_ecn.c:33: error: for each function it appears in.)
net/ipv4/netfilter/ipt_ecn.c:33: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:40: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c: At top level:
net/ipv4/netfilter/ipt_ecn.c:48: error: 'struct ipt_ECN_info' declared inside parameter list
net/ipv4/netfilter/ipt_ecn.c: In function 'set_ect_tcp':
net/ipv4/netfilter/ipt_ecn.c:58: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:58: error: 'IPT_ECN_OP_SET_ECE' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:59: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:60: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:60: error: 'IPT_ECN_OP_SET_CWR' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:61: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:69: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:70: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:71: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:72: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c: In function 'ecn_tg':
net/ipv4/netfilter/ipt_ecn.c:84: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:84: error: 'IPT_ECN_OP_SET_IP' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:85: error: passing argument 2 of 'set_ect_ip' from incompatible pointer type
net/ipv4/netfilter/ipt_ecn.c:29: note: expected 'const struct ipt_ECN_info *' but argument is of type 'const struct ipt_ECN_info *'
net/ipv4/netfilter/ipt_ecn.c:88: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:88: error: 'IPT_ECN_OP_SET_ECE' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:88: error: 'IPT_ECN_OP_SET_CWR' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:90: error: passing argument 2 of 'set_ect_tcp' from incompatible pointer type
net/ipv4/netfilter/ipt_ecn.c:48: note: expected 'const struct ipt_ECN_info *' but argument is of type 'const struct ipt_ECN_info *'
net/ipv4/netfilter/ipt_ecn.c: In function 'ecn_tg_check':
net/ipv4/netfilter/ipt_ecn.c:101: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:101: error: 'IPT_ECN_OP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:103: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:106: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:106: error: 'XT_DSCP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:108: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:111: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:111: error: 'IPT_ECN_OP_SET_ECE' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:111: error: 'IPT_ECN_OP_SET_CWR' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c: At top level:
net/ipv4/netfilter/ipt_ecn.c:124: error: invalid application of 'sizeof' to incomplete type 'struct ipt_ECN_info'
make[3]: *** [net/ipv4/netfilter/ipt_ecn.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[1]: *** [net/netfilter] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
sorry for the messed up links, I'm not allowed to post links (yet).
Any ideas how to get forward?
The reason I'm doing this is that I want to fix the bug that the internal mic is disabled when a stereo headphone / or a 3.5mm jack - 2xrca cable is plugged in. I think I can fix it from kernel-2.6.32-U8800-Froyo/kernel/arch/arm/mach-msm/rpc_server_handset.c, but first I have to get my build environment working
copy missing files instead of link
xt_MARK.c and xt_mark.c are not the same, at least in my source
try copy the missing file from android source
http://android.git.kernel.org/?p=kernel/msm.git;a=tree
wmi543 said:
xt_MARK.c and xt_mark.c are not the same, at least in my source
try copy the missing file from android source
Click to expand...
Click to collapse
It worked I copied all the files from the git instead of ln -s.
"Kernel: arch/arm/boot/zImage is ready"
Thanks for the quick reply.
Then I had to remove comment out CONFIG_FB_MSM_MDDI_NT35582_WVGA=y line from .config and answer no to two questions when running make.
I used the 4.4.0 toolchain
Now I have the zImage but don't know how it'll work because the CONFIG_FB_MSM_MDDI_NT35582_WVGA probably has something to do with the display type.
BTW I've taken a backup with genokolar's recovery img. When I try this new kernel and if I can't boot, I should be able to get it to boot again by doing a restore from the earlier backup?
Now I'll start looking into packing the kernel to an .img (android-dls.com wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images#Structure_of_boot_and_recovery_images)..
OK. I copied the boot.img from the phone in bootloader mode, unpacked it with unpack-bootimg.pl. Then I bsdiffed (binary diff) the resulting boot.img-kernel.gz with the Image file I built, the patch file is only 389K so looks like they are quite similar. The only differences may be because of the display thing I changed in the Makefile.
Might try tomorrow to replace the unpacked kernel with the Image file and see if it works. What is the worst case scenario? I should always be able to restore from the old backup if it doesn't boot?
Maybe I'll also try to get the display thing to build right before trying it on the phone
edit: I read somewhere the .gz extension in the unpacked kernel file is a bug with the unpacking script, so "boot.img-kernel.gz" is actually the unpacked kernel file (so it should be the same as compiled Image) ?
Looks like the unpack-bootimg.pl and repack-bootimg.pl are not working right for the U8800 boot.img. I just tried to unpack the original boot.img and repack it, I got a blue screen when trying to boot. I could restore the original just by going to bootloader mode and copying back the original.
Any ideas how to unpack and repack the boot.img of the U8800?
You can repack the boot/recovery images with the following:
Code:
./mkbootfs RAMDISK DIRECTORY | ./minigzip > ramdisk-boot.img
./mkbootimg --kernel KERNEL --ramdisk ramdisk-boot.img --base 0x00200000 --pagesize 4096 --cmdline 'console=ttyDCC0 androidboot.hardware=huawei' -o boot.img
I just modified the repack perl script accordingly and added lines so that it will mount cust_backup and transfer the image across for me. Saves heaps of time.
stockwell said:
You can repack the boot/recovery images with the following:
Code:
./mkbootfs RAMDISK DIRECTORY | ./minigzip > ramdisk-boot.img
./mkbootimg --kernel KERNEL --ramdisk ramdisk-boot.img --base 0x00200000 --pagesize 4096 --cmdline 'console=ttyDCC0 androidboot.hardware=huawei' -o boot.img
I just modified the repack perl script accordingly and added lines so that it will mount cust_backup and transfer the image across for me. Saves heaps of time.
Click to expand...
Click to collapse
I used the unpack script from http://forum.xda-developers.com/showthread.php?t=891333 then modified the line "#$bootimg = substr($bootimg,2048);" to "$bootimg = substr($bootimg,4096);". There's still a difference of 215 bytes with the repacked img, but it works.
Now I can test the kernel I built myself. Thank you for the help.
edit: Looks like the built kernel doesn't work, now I can start tackling that
CONFIG_FB_MSM_MDDI_NT35582_WVGA=y
if you see only blue screen when you boot your own kernel, refer to my experience, edit .config, change 2 lines as below instead of comment out CONFIG_FB_MSM_MDDI_NT35582_WVGA=y should fix it
CONFIG_FB_MSM_MDDI_AUTO_DETECT=y
CONFIG_FB_MSM_TRY_MDDI_CATCH_LCDC_PRISM=y
BTW, there is a tool "abootimg" which is quite handy for packing the kernel
http://gitorious.org/ac100/abootimg
wmi543 said:
if you see only blue screen when you boot your own kernel, refer to my experience, edit .config, change 2 lines as below instead of comment out CONFIG_FB_MSM_MDDI_NT35582_WVGA=y should fix it
CONFIG_FB_MSM_MDDI_AUTO_DETECT=y
CONFIG_FB_MSM_TRY_MDDI_CATCH_LCDC_PRISM=y
BTW, there is a tool "abootimg" which is quite handy for packing the kernel
http://gitorious.org/ac100/abootimg
Click to expand...
Click to collapse
Works! great! Thanks for the help. Hopefully soon I can release my fixed kernel
Sorry, I'm new to Android. What advantages are there if you get the stock kernel or whatever?
"Stock" means the kernel that comes with the phone when you buy it. I just wanted to build it so I could modify it. I created a modified kernel that allows you to use the internal mic with headphones or for example when you connect the phone to your car stereo. The modified kernel is in the other thread.
Sent from my u8800 using XDA App
So with custom kernel you can achieve more functionality just like normal linux? Good. Would be awesome.

Error while build CM10

Hey guys!
No, I still haven't gotten my CM10 to boot, because I am having a lot of build errors. Now, I need help with the following error while building:
Code:
Import includes file: /home/zeeshan/cm10/out/target/product/u8800/obj/SHARED_LIBRARIES/copybit.msm7x30_intermediates/import_includes
Import includes file: /home/zeeshan/cm10/out/target/product/u8800/obj/SHARED_LIBRARIES/libmemalloc_intermediates/import_includes
target thumb C++: libgenlock <= hardware/qcom/display/libgenlock/genlock.cpp
target thumb C: gps.goldfish <= sdk/emulator/gps/gps_qemu.c
sdk/emulator/gps/gps_qemu.c:47:0: warning: "D" redefined [enabled by default]
hardware/libhardware/include/hardware/qemu_pipe.h:29:0: note: this is the location of the previous definition
sdk/emulator/gps/gps_qemu.c:903:5: warning: initialization from incompatible pointer type [enabled by default]
sdk/emulator/gps/gps_qemu.c:903:5: warning: (near initialization for 'qemuGpsInterface.set_position_mode') [enabled by default]
target thumb C++: gralloc.default <= hardware/libhardware/modules/gralloc/gralloc.cpp
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'hw_module_t::dso' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'hw_module_t::reserved' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'gralloc_module_t::perform' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'gralloc_module_t::reserved_proc' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::pmem_master' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::pmem_master_base' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::info' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::finfo' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::xdpi' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::ydpi' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::fps' [-Wmissing-field-initializers]
target thumb C++: gralloc.default <= hardware/libhardware/modules/gralloc/framebuffer.cpp
target thumb C++: gralloc.default <= hardware/libhardware/modules/gralloc/mapper.cpp
hardware/qcom/display/libgenlock/genlock.cpp: In function 'int (anonymous namespace)::get_kernel_lock_type(genlock_lock_type)':
hardware/qcom/display/libgenlock/genlock.cpp:53:25: error: 'GENLOCK_WRLOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:55:25: error: 'GENLOCK_RDLOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t (anonymous namespace)::perform_lock_unlock_operation(native_handle_t*, int, int, int)':
hardware/qcom/display/libgenlock/genlock.cpp:83:13: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:83:26: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:84:13: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:101:43: error: 'GENLOCK_IOC_LOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_create_lock(native_handle_t*)':
hardware/qcom/display/libgenlock/genlock.cpp:156:9: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:156:22: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:157:23: error: 'GENLOCK_IOC_NEW' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:160:45: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:166:27: error: 'GENLOCK_IOC_EXPORT' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:166:48: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:176:30: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_attach_lock(native_handle_t*)':
hardware/qcom/display/libgenlock/genlock.cpp:243:9: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:243:22: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:244:9: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:245:23: error: 'GENLOCK_IOC_ATTACH' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_unlock_buffer(native_handle_t*)':
hardware/qcom/display/libgenlock/genlock.cpp:306:56: error: 'GENLOCK_UNLOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_wait(native_handle_t*, int)':
hardware/qcom/display/libgenlock/genlock.cpp:335:9: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:335:22: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:336:9: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:338:39: error: 'GENLOCK_IOC_WAIT' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_write_to_read(native_handle_t*, int)':
hardware/qcom/display/libgenlock/genlock.cpp:368:56: error: 'GENLOCK_RDLOCK' was not declared in this scope
make: *** [/home/zeeshan/cm10/out/target/product/u8800/obj/SHARED_LIBRARIES/libgenlock_intermediates/genlock.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/cm10$
Ok, so I can see that genlock (and probably gralloc), but I don't know what is wrong and how to fix it.
Please, I need someone to help me with this!
Thanks.
Which dece source are you using?

[CM11][UNOFFICIAL][GIT BUILDS]Help and troubleshooting CM-11.0

I started this thread as a addition to this thread: [GUIDE CM11] How to build your own CyanogenMod 11.0 ROM from sources for the Nexus 4.
Since that thread should focus on build issues and not general help and troubleshooting with the ROM i thought we could take i here.
Discuss glitches, errors, solutions and general tips and tricks to get our CM11 powered mako into tiptop working condition.
First order of business:
The glitches that flicker all over the screen on builds made yesterday. Any one else experiencing this? Any one found out whats causing it?
I get the screen glitch too but that doesn't make it unusable.
I'm also running into an issue causing people not hearing me and me not hearing anything during calls. It happens every time so it's basically unusable as a phone (still not a big deal since I text a lot more than I call).
These happen on a self build from monday, but it started several days before with the same build.
Today I tried building again and I get this error :
Code:
target thumb C++: libOmxVenc <= hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp
In file included from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_encoder.h:32:0,
from hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:34:
hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_base.h:76:0: warning: "LOG_TAG" redefined [enabled by default]
In file included from system/core/include/cutils/log.h:1:0,
from system/core/include/utils/Vector.h:24,
from frameworks/native/include/binder/IBinder.h:23,
from frameworks/native/include/binder/Binder.h:20,
from frameworks/native/include/binder/IInterface.h:21,
from frameworks/native/include/binder/IMemory.h:26,
from frameworks/native/include/binder/MemoryHeapBase.h:23,
from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_base.h:48,
from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_encoder.h:32,
from hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:34:
system/core/include/log/log.h:68:0: note: this is the location of the previous definition
Protoc: /home/danelkouby/android/system/out/target/product/mako/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/debug.pb.cc <= external/webrtc/src/modules/audio_processing/debug.proto
target Prebuilt: CMUpdater (/home/danelkouby/android/system/out/target/common/obj/JAVA_LIBRARIES/dashclockapi_intermediates/classes.jar)
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_open(OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:206:28: warning: deprecated conversion from string constant to 'OMX_STRING {aka char*}' [-Wwrite-strings]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:210:19: warning: deprecated conversion from string constant to 'OMX_STRING {aka char*}' [-Wwrite-strings]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_get_seq_hdr(void*, unsigned int, unsigned int*)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'unsigned char*' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat]
Protoc: /home/danelkouby/android/system/out/target/product/mako/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/test/unittest.pb.cc <= external/webrtc/src/modules/audio_processing/test/unittest.proto
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_param(void*, OMX_INDEXTYPE)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:630:13: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:630:13: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:986:10: warning: format '%d' expects argument of type 'int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:960:3: warning: case value '2130706437' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:972:3: warning: case value '2130706463' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:992:3: warning: case value '2130706474' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1004:3: warning: case value '2130706475' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_config(void*, OMX_INDEXTYPE)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1078:3: warning: case value '2130706439' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'OMX_U32 venc_dev::pmem_allocate(OMX_U32, OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1362:3: warning: format '%d' expects argument of type 'int', but argument 7 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_use_buf(void*, unsigned int, unsigned int)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::sz' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::fd' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::offset' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::maped_size' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::filled_len' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::maxcount' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::actualcount' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::datasize' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::suffixsize' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::alignment' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::bufpoolid' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_free_buf(void*, unsigned int)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::sz' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::fd' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::offset' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::maped_size' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::filled_len' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_slice_delivery_mode(OMX_BOOL)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1775:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_profile_level(OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2058:7: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_intra_period(OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2151:3: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2151:3: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_entropy_config(OMX_BOOL, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2175:17: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2195:17: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2209:11: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2209:40: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_intra_refresh(OMX_VIDEO_INTRAREFRESHTYPE, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2267:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_validate_profile_level(OMX_U32*, OMX_U32*)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2880:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2882:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2884:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_max_allowed_bitrate_check(OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2932:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2953:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2965:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2975:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
build/core/binary.mk:432: recipe for target '/home/danelkouby/android/system/out/target/product/mako/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/video_encoder_device.o' failed
Streetwalker said:
Today I tried building again and I get this error
Click to expand...
Click to collapse
Same here!
Likely not your error
Code:
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2175:17: error: 'struct venc_entropycfg' has no member named 'longentropysel'
The Screen flickering keeps me from using CM11 already, maybe it takes some time until it is fully usable.
Greetings,
I'm running the latest CM 10.2 nightly on my Nexus 4, everything works fine.
Can I simply flash the latest CM 11 over it?
Thanks.
diehard2013 said:
Greetings,
I'm running the latest CM 10.2 nightly on my Nexus 4, everything works fine.
Can I simply flash the latest CM 11 over it?
Thanks.
Click to expand...
Click to collapse
Yes, but be aware that not every CM specific function is implemented yet. And also there is serveral bugs, like the screen flicker and no audio during call.
The audio bug can be fixed as Raum1807 describes here:
http://forum.xda-developers.com/showpost.php?p=47871899&postcount=219
Streetwalker said:
I get the screen glitch too but that doesn't make it unusable.
I'm also running into an issue causing people not hearing me and me not hearing anything during calls. It happens every time so it's basically unusable as a phone (still not a big deal since I text a lot more than I call).
These happen on a self build from monday, but it started several days before with the same build.
Today I tried building again and I get this error :
Code:
target thumb C++: libOmxVenc <= hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp
In file included from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_encoder.h:32:0,
from hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:34:
hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_base.h:76:0: warning: "LOG_TAG" redefined [enabled by default]
In file included from system/core/include/cutils/log.h:1:0,
from system/core/include/utils/Vector.h:24,
from frameworks/native/include/binder/IBinder.h:23,
from frameworks/native/include/binder/Binder.h:20,
from frameworks/native/include/binder/IInterface.h:21,
from frameworks/native/include/binder/IMemory.h:26,
from frameworks/native/include/binder/MemoryHeapBase.h:23,
from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_base.h:48,
from hardware/qcom/media/mm-video-legacy/vidc/venc/inc/omx_video_encoder.h:32,
from hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:34:
system/core/include/log/log.h:68:0: note: this is the location of the previous definition
Protoc: /home/danelkouby/android/system/out/target/product/mako/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/debug.pb.cc <= external/webrtc/src/modules/audio_processing/debug.proto
target Prebuilt: CMUpdater (/home/danelkouby/android/system/out/target/common/obj/JAVA_LIBRARIES/dashclockapi_intermediates/classes.jar)
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_open(OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:206:28: warning: deprecated conversion from string constant to 'OMX_STRING {aka char*}' [-Wwrite-strings]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:210:19: warning: deprecated conversion from string constant to 'OMX_STRING {aka char*}' [-Wwrite-strings]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_get_seq_hdr(void*, unsigned int, unsigned int*)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'unsigned char*' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:495:5: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat]
Protoc: /home/danelkouby/android/system/out/target/product/mako/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/test/unittest.pb.cc <= external/webrtc/src/modules/audio_processing/test/unittest.proto
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_param(void*, OMX_INDEXTYPE)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:630:13: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:630:13: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:986:10: warning: format '%d' expects argument of type 'int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:960:3: warning: case value '2130706437' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:972:3: warning: case value '2130706463' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:992:3: warning: case value '2130706474' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1004:3: warning: case value '2130706475' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_config(void*, OMX_INDEXTYPE)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1078:3: warning: case value '2130706439' not in enumerated type 'OMX_INDEXTYPE' [-Wswitch]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'OMX_U32 venc_dev::pmem_allocate(OMX_U32, OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1362:3: warning: format '%d' expects argument of type 'int', but argument 7 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_use_buf(void*, unsigned int, unsigned int)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::sz' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::fd' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::offset' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::maped_size' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1475:44: warning: missing initializer for member 'venc_bufferpayload::filled_len' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::maxcount' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::actualcount' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::datasize' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::suffixsize' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::alignment' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1476:57: warning: missing initializer for member 'venc_allocatorproperty::bufpoolid' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_free_buf(void*, unsigned int)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::sz' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::fd' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::offset' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::maped_size' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1574:44: warning: missing initializer for member 'venc_bufferpayload::filled_len' [-Wmissing-field-initializers]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_slice_delivery_mode(OMX_BOOL)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:1775:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_profile_level(OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2058:7: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_intra_period(OMX_U32, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2151:3: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2151:3: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_entropy_config(OMX_BOOL, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2175:17: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2195:17: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2209:11: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2209:40: error: 'struct venc_entropycfg' has no member named 'longentropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_intra_refresh(OMX_VIDEO_INTRAREFRESHTYPE, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2267:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_validate_profile_level(OMX_U32*, OMX_U32*)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2880:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2882:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2884:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_max_allowed_bitrate_check(OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2932:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2953:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2965:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat]
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2975:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
build/core/binary.mk:432: recipe for target '/home/danelkouby/android/system/out/target/product/mako/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/video_encoder_device.o' failed
Click to expand...
Click to collapse
Please post build errors in this thread: http://forum.xda-developers.com/showthread.php?t=2515305

[Q] Get kernel framebuffer console

Hello XDA users!
I'm so confused with this thing. I've been trying to do that nearly a month. After a billion google queries and phone reboots (if my N4 could throw up, it would) I got nothing.
First of all, I can't compile the kernel.
Sys info: I'm on Arch Linux 3.12.1-3-ARCH 64 bit.
I have all the three google toolchains (arm-linux-androideabi-4.{6,7,8}) and currently I'm trying with 4.8.
With default config (I stress that) I get this: http://showterm.io/1a41b9af919653f53a890
I use google's repo (https://android.googlesource.com/kernel/msm.git) on the android-msm-mako-3.4-kitkat-mr0 branch (I use occam-krt16o build on my N4).
I know this must be noobish problem, but I have no idea what's the problem...
Thanks in advance!
I've got some news!
First of all, you need to edit scripts/gcc-wrapper.py to use python2.7 and not 3.
However, 4.8 toolchain spits some errors and I'm not really into casting spells just to compile with 4.8 instead of 4.7. If there is a major difference between them (performance improvements etc.) I'll look into it.
Now it's time to implement the framebuffer changes to the .config
for more info:
http://forum.xda-developers.com/showpost.php?p=10075806&postcount=3
http://forum.xda-developers.com/showpost.php?p=18256605&postcount=1
UPDATE: Well, I applied this patch (https://github.com/Tasssadar/kernel...a9d#diff-94babbe85a910bf17f882465a760c431R608), I can only get blank screen. Any ideas?
Bump.
Hi does anyone know how to get this to work.
I have an Alcatel OT918D ANDROID 2.3.5.
I have managed to compile my own kernel and boot it. But for adding the frame buffer option in the makefile I get this error during compilation:
**************************************************************************************************************
drivers/video/console/fbcon.c:638: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:638: error: too few arguments to function 'info->fbops->fb_open'
drivers/video/console/fbcon.c: In function 'con2fb_release_oldinfo':
drivers/video/console/fbcon.c:670: warning: passing argument 1 of 'oldinfo->fbops->fb_release' from incompatible pointer type
drivers/video/console/fbcon.c:670: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:670: error: too few arguments to function 'oldinfo->fbops->fb_release'
drivers/video/console/fbcon.c:673: warning: passing argument 1 of 'newinfo->fbops->fb_release' from incompatible pointer type
drivers/video/console/fbcon.c:673: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:673: error: too few arguments to function 'newinfo->fbops->fb_release'
drivers/video/console/fbcon.c: In function 'fbcon_startup':
drivers/video/console/fbcon.c:868: warning: passing argument 1 of 'info->fbops->fb_open' from incompatible pointer type
drivers/video/console/fbcon.c:868: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:868: error: too few arguments to function 'info->fbops->fb_open'
drivers/video/console/fbcon.c: In function 'fbcon_exit':
drivers/video/console/fbcon.c:3388: warning: passing argument 1 of 'info->fbops->fb_release' from incompatible pointer type
drivers/video/console/fbcon.c:3388: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:3388: error: too few arguments to function 'info->fbops->fb_release'
make[3]: *** [drivers/video/console/fbcon.o] Error 1
make[2]: *** [drivers/video/console] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC [M] ../mediatek/source/kernel/drivers/lttng/probes/net-extended-trace.o
CC [M] ../mediatek/source/kernel/drivers/lttng/probes/block-trace.o
CC ../mediatek/source/kernel/kernel/trace_mt65xx_mon.o
LD [M] ../mediatek/source/kernel/drivers/lttng/ltt-relay.o
CC ../mediatek/source/kernel/drivers/m4u/m4u_kernel.o
../mediatek/source/kernel/drivers/m4u/m4u_kernel.c: In function 'm4u_user_v2p':
../mediatek/source/kernel/drivers/m4u/m4u_kernel.c:66: warning: format '%d' expects type 'int', but argument 3 has type 'struct task_struct *'
************************************************************************************************************

Making a kernel....NEED HELP>>>>

ok i have decided to make my own kernel.....but i dont know what is wrong everything is just good but at the end i dont get anything...
The guides i am using :-
http://forum.xda-developers.com/showthread.php?t=1748297
http://forum.xda-developers.com/showthread.php?t=2021202
I am using a prebuild ubuntu build it contains all the packages....
Using matrix kernel source :-https://github.com/mathkid95/linux_lg_kitkat
And google toolchain.
This is what i get:-
[email protected]:~/android/kernel/kitkat$ export ARCH=arm
[email protected]:~/android/kernel/kitkat$ export CROSS_COMPILE=/home/android/android/toolchain/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-
[email protected]:~/android/kernel/kitkat$ make mako_defconfig
init/Kconfig:1265:warning: defaults for choice values not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
[email protected]:~/android/kernel/kitkat$ make -j4
scripts/kconfig/conf --silentoldconfig Kconfig
init/Kconfig:1265:warning: defaults for choice values not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
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
CHK include/generated/compile.h
CC arch/arm/mach-msm/cpufreq.o
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_target':
arch/arm/mach-msm/cpufreq.c:103:2: error: implicit declaration of function 'cpufreq_frequency_get_table' [-Werror=implicit-function-declaration]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:103:8: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:104:2: error: implicit declaration of function 'cpufreq_frequency_table_target' [-Werror=implicit-function-declaration]
if (cpufreq_frequency_table_target(policy, table, target_freq, relation,
^
arch/arm/mach-msm/cpufreq.c:111:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
pr_debug("CPU[%d] target %d relation %d (%d-%d) selected %d\n",
^
In file included from include/linux/kernel.h:22: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 arch/arm/mach-msm/cpufreq.c:22:
arch/arm/mach-msm/cpufreq.c:113:34: error: dereferencing pointer to incomplete type
policy->min, policy->max, table[index].frequency);
^
include/linux/printk.h:202:38: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^
arch/arm/mach-msm/cpufreq.c:115:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
ret = set_cpu_freq(policy, table[index].frequency);
^
arch/arm/mach-msm/cpufreq.c:115:34: error: dereferencing pointer to incomplete type
ret = set_cpu_freq(policy, table[index].frequency);
^
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_limits_init':
arch/arm/mach-msm/cpufreq.c:145:9: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(cpu);
^
arch/arm/mach-msm/cpufreq.c:151:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:21: error: dereferencing pointer to incomplete type
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:38: error: 'CPUFREQ_TABLE_END' undeclared (first use in this function)
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:38: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/cpufreq.c:152:4: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (table.frequency > max)
^
arch/arm/mach-msm/cpufreq.c:152:13: error: dereferencing pointer to incomplete type
if (table.frequency > max)
^
arch/arm/mach-msm/cpufreq.c:153:5: error: invalid use of undefined type 'struct cpufreq_frequency_table'
max = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:153:16: error: dereferencing pointer to incomplete type
max = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:154:4: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (table.frequency < min)
^
arch/arm/mach-msm/cpufreq.c:154:13: error: dereferencing pointer to incomplete type
if (table.frequency < min)
^
arch/arm/mach-msm/cpufreq.c:155:5: error: invalid use of undefined type 'struct cpufreq_frequency_table'
min = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:155:16: error: dereferencing pointer to incomplete type
min = table.frequency;
^
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_init':
arch/arm/mach-msm/cpufreq.c:201:8: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:212:2: error: implicit declaration of function 'cpufreq_frequency_table_cpuinfo' [-Werror=implicit-function-declaration]
if (cpufreq_frequency_table_cpuinfo(policy, table)) {
^
arch/arm/mach-msm/cpufreq.c:233:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (cur_freq != table[index].frequency) {
^
arch/arm/mach-msm/cpufreq.c:233:23: error: dereferencing pointer to incomplete type
if (cur_freq != table[index].frequency) {
^
arch/arm/mach-msm/cpufreq.c:235:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
ret = acpuclk_set_rate(policy->cpu, table[index].frequency,
^
arch/arm/mach-msm/cpufreq.c:235:44: error: dereferencing pointer to incomplete type
ret = acpuclk_set_rate(policy->cpu, table[index].frequency,
^
arch/arm/mach-msm/cpufreq.c:239:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
pr_info("cpufreq: cpu%d init at %d switching to %d\n",
^
In file included from include/linux/kernel.h:22: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 arch/arm/mach-msm/cpufreq.c:22:
arch/arm/mach-msm/cpufreq.c:240:33: error: dereferencing pointer to incomplete type
policy->cpu, cur_freq, table[index].frequency);
^
include/linux/printk.h:179:34: note: in definition of macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^
arch/arm/mach-msm/cpufreq.c:241:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
cur_freq = table[index].frequency;
^
arch/arm/mach-msm/cpufreq.c:241:19: error: dereferencing pointer to incomplete type
cur_freq = table[index].frequency;
^
arch/arm/mach-msm/cpufreq.c: At top level:
arch/arm/mach-msm/cpufreq.c:310:3: error: 'cpufreq_freq_attr_scaling_available_freqs' undeclared here (not in a function)
&cpufreq_freq_attr_scaling_available_freqs,
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/cpufreq.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
GZIP kernel/config_data.gz
CHK kernel/config_data.h
[email protected]:~/android/kernel/kitkat$
Click to expand...
Click to collapse
help me guys...im doing this for the first time.......
What should i do...
Also tell me how can i add other kernel features like faux sound...thank you..

Categories

Resources