aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2019-09-05 14:20:04 -0700
committerJim Wilson <jimw@sifive.com>2019-09-05 14:20:04 -0700
commit2983b879ad6e804379a0e0f400af7c5ef1626119 (patch)
tree5228904c4a7744ff822047a125b40f4e30e6cfe5 /README.md
parenta03290eab661e2aa58288ad164f908bbbcc2169c (diff)
downloadriscv-gnu-toolchain-2983b879ad6e804379a0e0f400af7c5ef1626119.zip
riscv-gnu-toolchain-2983b879ad6e804379a0e0f400af7c5ef1626119.tar.gz
riscv-gnu-toolchain-2983b879ad6e804379a0e0f400af7c5ef1626119.tar.bz2
Document problems with using same prefix for more than one build.
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8f6a251..d5be302 100644
--- a/README.md
+++ b/README.md
@@ -90,6 +90,18 @@ To build the Linux cross-compiler with support for both 32-bit and
The multilib compiler will have the prefix riscv64-unknown-linux-gnu-,
but will be able to target both 32-bit and 64-bit systems.
+### Troubleshooting Build Problems
+
+Builds work best if installing into an empty directory. If you build a
+hard-float toolchain and then try to build a soft-float toolchain with
+the same --prefix directory, then the build scripts may get confused
+and exit with a linker error complaining that hard float code can't be
+linked with soft float code. Removing the existing toolchain first, or
+using a different prefix for the second build, avoids the problem. It
+is OK to build one newlib and one linux toolchain with the same prefix.
+But you should avoid building two newlib or two linux toolchains with
+the same prefix.
+
### Advanced Options
There are a number of additional options that may be passed to