diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-04-19 15:58:25 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-04-20 07:06:47 -0700 |
commit | 51489a6148c10b4fbfbb9590d2cd5bbb24e3f371 (patch) | |
tree | 70b2827a3b7beb0a887538df763db4d868f91b4c | |
parent | b176fae6e3e9336941357d656bd58e5e3a56e09c (diff) | |
download | source.android.com-51489a6148c10b4fbfbb9590d2cd5bbb24e3f371.tar.gz |
Document build issues related non-default compilers
Change-Id: I595a4b8fc4d82ba410d758b077fddec01edd6fe3
-rw-r--r-- | src/source/known-issues.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/source/known-issues.md b/src/source/known-issues.md index 4b3d3ca9..1643055b 100644 --- a/src/source/known-issues.md +++ b/src/source/known-issues.md @@ -109,3 +109,17 @@ libraries that aren't available in the Android Open Source Project. **Fix**: None. + +## Build errors related to using the wrong compiler. ## + +**Symptom**: The build fails with various symptoms. One +such symptom is `cc1: error: unrecognized command line option "-m32"` + +**Cause**: The Android build system uses the default compiler +in the PATH, assuming it's a suitable compiler to generate +binaries that run on the host. Other situations (e.g. using +the Android NDK or building the kernel) cause the default +compiler to not be a host compiler. + +**Fix**: Use a "clean" shell, in which no previous +actions could have swapped the default compiler. |