ArchLinux 编译Anroid5 lollipop 错误解决

错误1,python工具出错

错误情况如下:

============================================
File "build/tools/findleaves.py", line 95
    print r
        ^
SyntaxError: Missing parentheses in call to 'print'
File "build/tools/findleaves.py", line 95
    print r
        ^
SyntaxError: Missing parentheses in call to 'print'
File "build/tools/diff_package_overlays.py", line 88
    print r
        ^
SyntaxError: Missing parentheses in call to …
more ...

安卓内核编译错误 kernel/timeconst.h defined(@val)

错误情况

今天编译安卓内核出现错误,

$ ./mk -k
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
  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
  TIMEC   kernel/timeconst.h
Can't use 'defined …
more ...