I successfully compiled binutils-2.16, configured gcc, and binutils, with --target=sparc64-sun-solaris-2.9 --with-headers=$path_to_headers --with-libs=$path_to_libs, but when I give the command "make all", this happens: ... >checking for ISO C99 support in <stdlib.h>... no >checking wctype.h usability... yes >checking wctype.h presence... yes >checking for wctype.h... yes >checking for ISO C99 support in <wchar.h>... no >checking for fully enabled ISO C99 support... no >checking for enabled long long specializations... yes >checking for enabled wchar_t specializations... yes >configure: Debug build flags set to -g3 -O0 >checking for additional debug build... no >checking for extra compiler flags for building... >checking for thread model used by GCC... posix >checking iconv.h usability... yes >checking iconv.h presence... yes >checking for iconv.h... yes >checking langinfo.h usability... yes >checking langinfo.h presence... yes >checking for langinfo.h... yes >checking for iconv in -liconv... configure: error: Link tests are not allowed >after GCC_NO_EXECUTABLES. >make[1]: *** [configure-target-libstdc++-v3] Error 1 >make[1]: Leaving directory `/home/filipe/sparc64/build-gcc' >make: *** [all] Error 2
Look at config.log in libstdc++ subdirectory to see why it fails. The error message is misleading.
I'm experienced with the similar bug #28125. Please help, I'm ready to provide any additinal information.
Problem also appears on mingw cross compiles: --build=i586-suse-linux --host=i586-suse-linux --target=mingw32 ... configure: Debug build flags set to -g3 -O0 checking for additional debug build... no checking for extra compiler flags for building... checking for thread model used by GCC... win32 checking for sys/types.h... (cached) yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking for ld that supports -Wl,-z,relro... no checking for main in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLE
No feedback in 3 months so closing.