Hello, currently, there is no support for spu-elf in crossconfig.m4. In the past, we've usually worked around this by configuring GCC with --with-newlib.
But that has other drawbacks since it performs no link tests at all, and thus assumes only a very minimal set of features available via newlib. This has become a problem since libgfortran switched to respecting --with-newlib; now many tests fail due to supposedly unavailable library features, which newlib actually would support -- on SPU. So we want to move away from using --with-newlib and do the normal link-time tests, even though the library still is newlib. (The link checks will work fine if you actually have an SPU library installed.) That now breaks libstdc++ builds due to missing crossconfig.m4 support. The patch below adds such support, by performing the usual link checks. The only missing features (as compared to the -linux crossconfig.m4 entry) are TLS (SPU is single-threaded), and random (SPU code should not access /dev files on the host). Tested on spu-elf. OK for mainline? Bye, Ulrich ChangeLog: * crossconfig.m4: Support spu-*-elf* targets. * configure: Regenerate. Index: libstdc++-v3/crossconfig.m4 =================================================================== *** libstdc++-v3/crossconfig.m4 (revision 208613) --- libstdc++-v3/crossconfig.m4 (working copy) *************** case "${host}" in *** 28,33 **** --- 28,41 ---- AC_DEFINE(HAVE_SQRTF) ;; + spu-*-elf*) + GLIBCXX_CHECK_COMPILER_FEATURES + GLIBCXX_CHECK_LINKER_FEATURES + GLIBCXX_CHECK_MATH_SUPPORT + GLIBCXX_CHECK_STDLIB_SUPPORT + AM_ICONV + ;; + *-aix*) GLIBCXX_CHECK_LINKER_FEATURES GLIBCXX_CHECK_MATH_SUPPORT