I tried configuring and building a gcc toolchain for our customized xtensa microcontroller(not a DSP), a bare metal system . It builds fine without C library and C++ support. However
1. If I select the newlib option in the C library
[INFO ] Installing C library
[ERROR] make[2]: *** [configure-target-newlib] Error 1
[ERROR] make[1]: *** [all] Error 2
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing C library'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: do_libc[scripts/build/libc/newlib.sh@118]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@632]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> 'usr/share/doc/crosstool-ng/ct-ng.hg+unknown-20150409.101032/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 31:42.89)
[31:43] / make: *** [build] Error 2
2. If I select the C++ option the build breaks with the error message
[ERROR] checking for the value of EOF... configure: error: computing EOF failed
[ERROR] make[1]: *** [configure-target-libstdc++-v3] Error 1
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing final compiler'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: do_cc_core_backend[scripts/build/cc/gcc.sh@464]
[ERROR] >> called from: do_cc_for_host[scripts/build/cc/gcc.sh@574]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@632]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> 'usr/share/doc/crosstool-ng/ct-ng.hg+unknown-20150409.101032/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 17:28.39)
[17:29] / make: *** [build] Error 2
Please let me know how to solve this.
Thanks and Regards,
Hari