summaryrefslogtreecommitdiff
path: root/misc/buildroot/configs/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-04-19 02:42:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-04-19 02:42:24 +0000
commit48edd78da244d3b5f0ae68c6182412e806154533 (patch)
tree6c85eb432375da1623bedb5192a5483bde209efe /misc/buildroot/configs/README.txt
parent151ba9fe153e122b116a4fc8a251b2c04b41334c (diff)
downloadnuttx-48edd78da244d3b5f0ae68c6182412e806154533.tar.gz
nuttx-48edd78da244d3b5f0ae68c6182412e806154533.tar.bz2
nuttx-48edd78da244d3b5f0ae68c6182412e806154533.zip
Add support to build g++
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1703 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc/buildroot/configs/README.txt')
-rw-r--r--misc/buildroot/configs/README.txt36
1 files changed, 26 insertions, 10 deletions
diff --git a/misc/buildroot/configs/README.txt b/misc/buildroot/configs/README.txt
index c46d47ede..af3d43670 100644
--- a/misc/buildroot/configs/README.txt
+++ b/misc/buildroot/configs/README.txt
@@ -5,10 +5,14 @@ arm-defconfig
Builds an ARM toolchain using gcc 3.4.5
arm-defconfig-4.2.4
- Builds an ARM toolchain using gcc 4.2.4
+ Builds an ARM toolchain using gcc 4.2.4. This configuration
+ builds both gcc and g++.
+
NOTE: At present, there are issues with some of the binutils
- programes (arm-elf-objcopy in particular) that cause Floating
- point exceptions when trying to build NuttX
+ programs (arm-elf-objcopy in particular) that cause Floating
+ point exceptions when trying to build NuttX. This is probably
+ due to improperly positioned sections and can probably fixed
+ by changing the architectures .ldscript file.
bfin-defconfig-4.2.4
Builds an Blackfin toolchain using gcc 4.2.4
@@ -93,7 +97,7 @@ Cygwin GCC BUILD NOTES
and, apparently, the make variable "exeext" is set incorrectly. A work around after the
above occurs is:
- cd toolchain_build_<arch>/gcc-4.2.4-initial/gcc # Go to the directory where error occurred
+ cd toolchain_build_<arch>/gcc-4.2.4-build/gcc # Go to the directory where error occurred
mv cc1-dummy.exe cc1-dummy # Rename the executable without .exe
rm cc1-checksum.c # Get rid of the bad generated file
@@ -102,9 +106,21 @@ Cygwin GCC BUILD NOTES
cd - # Back to the buildroot make directory
make # Restart the build
- GCC is built twice. First a initial, "bootstap" GCC is produced in
- toolchain_build_<arch>/gcc-4.2.4-initial, then the final GCC is produced in
- toolchain_build_<arch>/gcc-4.2.4-final. The above error will occur twice: Once for
- the intial GCC build (see above) and once for the final GCC build. For the final GCC
- build, the workaround is the same except that the directory will be
- toolchain_build_<arch>/gcc-4.2.4-final/gcc.
+ If you build g++, you will see another similar error:
+
+ ...
+ build/genchecksum cc1plus-dummy > cc1plus-checksum.c
+ opening cc1plus-dummy: No such file or directory
+ ...
+
+ The fix is similar:
+
+ cd toolchain_build_<arch>/gcc-4.2.4-build/gcc # Go to the directory where error occurred
+ mv cc1plus-dummy.exe cc1plus-dummy # Rename the executable without .exe
+ rm cc1plus-checksum.c # Get rid of the bad generated file
+
+ Then resume the buildroot make:
+
+ cd - # Back to the buildroot make directory
+ make # Restart the build
+ \ No newline at end of file