commit | e46354e85363dbd7ea85492f70af89273881709f | [log] [tgz] |
---|---|---|
author | Ryan Prichard <rprichard@google.com> | Mon Feb 26 21:33:27 2018 -0800 |
committer | Ryan Prichard <rprichard@google.com> | Mon Feb 26 22:10:55 2018 -0800 |
tree | 6c7705ea00899bb97598a389871a9ef8eb90e90f | |
parent | 2cdcfd30c27f0d836cc477f2ae9f456287fd6b1b [diff] |
Fix gcc 4.8.3 makeinfo build failure /usr/local/google/home/rprichard/android/mingw/toolchain/gcc/gcc-4.8.3/gcc/doc/gcc.texi:88: warning: @tex should only appear at the beginning of a line /usr/local/google/home/rprichard/android/mingw/toolchain/gcc/gcc-4.8.3/gcc/doc/gcc.texi:208: no matching `@end tex' /usr/local/google/home/rprichard/android/mingw/toolchain/gcc/gcc-4.8.3/gcc/doc/gcc.texi:208: no matching `@end multitable' /usr/local/google/home/rprichard/android/mingw/toolchain/gcc/gcc-4.8.3/gcc/doc/gcc.texi:208: no matching `@end titlepage' Makefile:4353: recipe for target 'doc/gcc.info' failed Even though it says "warning", the command exits unsuccessfully and fails the build. Adopt part of a patch from: https://gcc.gnu.org/ml/gcc-patches/2013-09/msg02100.html This change is already in our gcc-4.9 directory. For reference, here's the makeinfo version on my machine: $ makeinfo --version texi2any (GNU texinfo) 6.4.90 Test: ./toolchain/mingw/build.sh (in AOSP mingw branch) Change-Id: Ib740c39d127ac8a127c929465fdf89477698a5e4
The following process is used to build the GCC that is used by both the Android platfrom and the NDK.
Both Linux and Windows toolchains are built on Linux machines. Windows host binaries are built with mingw. Building binaries for Mac OS X should be built using 10.8 to ensure compatibility with Android's minimum supported hosts.
Check out the branch gcc
repo init -u https://android.googlesource.com/platform/manifest -b gcc # Googlers, use repo init -u \ persistent-https://android.git.corp.google.com/platform/manifest \ -b gcc
Additional Linux Dependencies (available from apt):
Mac OS X also requires Xcode.
# Additional options and toolchain names will be show with --help. $ python build.py --toolchain TOOLCHAIN_NAME
$ python build.py --system windows TOOLCHAIN_NAME