Android Kernel Compile Error Gcc6 Linaro 6
I'm trying to compile using Linaro 6 and I'm receiving this error which I believe have something do do with GCC 6? I'm very amateur with compiling kernels or coding for that matter
Solution 1:
Looks like a bug with that iommu driver. It's trying to do a bit-shift into an int
instead of a long
, an int doesn't have enough bits to complete the operation. I'm guessing the -Wno-error
isn't used, so all warnings are treated as errors.
This question will help you: How to compile without warnings being treated as errors?
What I personally do is update CFLAGS
in my .bashrc (Assuming you're using Linux). This is what I use:
# Ensure C builds don't fail on warningsexport CFLAGS="-Wno-error"export CXXFLAGS="-Wno-error"
Post a Comment for "Android Kernel Compile Error Gcc6 Linaro 6"