The defualt compiler of android kernel is clang and I'd like to compile 
android kernel with gcc. I tried to follow the instructions on 
https://source.android.com/setup/build/building-kernels and used the 
command “*build/build.sh <build.sh> CC=gcc*”. I got the following mistake: 


Cannot use CONFIG_LTO_CLANG: requires clang 5.0 or later


It seems like something related to LTO, so I disabled LTO according to the 
instructions from the above website and tried again. Then still failed:


Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not 
supported by compiler


By the way, I can build kernel with clang successfully. 

Please help me T.T

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/57cfd252-c435-4ab1-ab5f-d49f2cee004e%40googlegroups.com.

Reply via email to