Hello,Dave,and others, Thanks to you, as I applied patch that you taught me,I cleared next error. > checking for shared libgcc... configure: error: Link tests are not I exulted and expected to succeed,but lastly(I hope) there happened next error. checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. make[1]: *** [configure-target-libssp] Error 1 make[1]: Leaving directory `/tmp/build/build_gcc' make: *** [all] Error 2 make: Leaving directory `/tmp/build/build_gcc' I searched among many config.logs and found that \tmp\build\build_gcc\sh-elf\m2a\libssp\config.log contained above error message. It says, configure:2274: $? = 0 configure:2276: /tmp/build/build_gcc/./gcc/xgcc -B/tmp/build/build_gcc/./gcc/ -nostdinc -B/tmp/build/build_gcc/sh-elf/m2a/newlib/ -isystem /tmp/build/build_gcc/sh-elf/m2a/newlib/targ-include -isystem /usr/local/sh-elf/gcc-4.1.1/newlib/libc/include -B/usr/local/sh-elf/sh-elf/bin/ -B/usr/local/sh-elf/sh-elf/lib/ -isystem /usr/local/sh-elf/sh-elf/include -isystem /usr/local/sh-elf/sh-elf/sys-include -m2a -v &5 Reading specs from /tmp/build/build_gcc/./gcc/specs Target: sh-elf Configured with: /usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --host=i686-pc-cygwin --build=i686-pc-cygwin --prefix=/usr/local/sh-elf --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include --with-ecos -v : (reconfigured) /usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --host=i686-pc-cygwin --build=i686-pc-cygwin --prefix=/usr/local/sh-elf --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include --with-ecos -v : (reconfigured) /usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --host=i686-pc-cygwin --build=i686-pc-cygwin --prefix=/usr/local/sh-elf --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include --with-ecos -v : (reconfigured) /usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --host=i686-pc-cygwin --build=i686-pc-cygwin --prefix=/usr/local/sh-elf --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include --with-ecos -v : (reconfigured) /usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --prefix=/usr/local/sh-elf --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include --with-ecos -v : (reconfigured) /usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --prefix=/usr/local/sh-elf --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include --with-ecos -v Thread model: single gcc version 4.1.1 configure:2279: $? = 0 configure:2281: /tmp/build/build_gcc/./gcc/xgcc -B/tmp/build/build_gcc/./gcc/ -nostdinc -B/tmp/build/build_gcc/sh-elf/m2a/newlib/ -isystem /tmp/build/build_gcc/sh-elf/m2a/newlib/targ-include -isystem /usr/local/sh-elf/gcc-4.1.1/newlib/libc/include -B/usr/local/sh-elf/sh-elf/bin/ -B/usr/local/sh-elf/sh-elf/lib/ -isystem /usr/local/sh-elf/sh-elf/include -isystem /usr/local/sh-elf/sh-elf/sys-include -m2a -V &5 xgcc: '-V' must come at the start of the command line configure:2284: $? = 1 configure:2307: checking for C compiler default output file name configure:2310: /tmp/build/build_gcc/./gcc/xgcc -B/tmp/build/build_gcc/./gcc/ -nostdinc -B/tmp/build/build_gcc/sh-elf/m2a/newlib/ -isystem /tmp/build/build_gcc/sh-elf/m2a/newlib/targ-include -isystem /usr/local/sh-elf/gcc-4.1.1/newlib/libc/include -B/usr/local/sh-elf/sh-elf/bin/ -B/usr/local/sh-elf/sh-elf/lib/ -isystem /usr/local/sh-elf/sh-elf/include -isystem /usr/local/sh-elf/sh-elf/sys-include -m2a -O2 -O2 conftest.c >&5 /tmp/build/build_gcc/sh-elf/m2a/newlib/libc.a: could not read symbols: Archive has no index; run ranlib to add one collect2: ld returned 1 exit status configure:2313: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "libssp" | #define PACKAGE_TARNAME "libssp" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "libssp 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "libssp" | #define VERSION "1.0" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2352: error: C compiler cannot create executables See `config.log' for more details. I also noticed other config.logs relating to each libssp directories contained error messages like next. --- conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me' configure:2749: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:2893: checking for style of include used by make conftest.c:11:28: error: ac_nonexistent.h: No such file or directory configure:3256: $? = 1 configure: failed program was: | /* confdefs.h. */ --- I do not know why it happened,and what I should do, would you please help me ? I append the same config.log and build logs "configgcc.txt","makegcc.txt" in tar.bz2 format. Below are my shell scripts. =============================================== [setup.sh] export TARGET=sh-elf export PREFIX=/usr/local/sh-elf export CFLAGS="-O2" export CXXFLAGS="-O2" export CFLAGS_FOR_TARGET="-Os" export CXXFLAGS_FOR_TARGET="Os" =============================================== [appendpath.sh] PATH=$PATH:/usr/local/sh-elf/bin =============================================== I separated building shell script. [buildgcc-1.sh] /usr/local/sh-elf/gcc-4.1.1/configure --target=$TARGET --prefix=$PREFIX --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include --with-ecos -v 2>&1 | tee configgcc.txt [buildgcc-2.sh] make clean make -w all install 2>&1 | tee makegcc.txt =============================================== I am very much obliged to your help. Thank you in advance. Masahiro Ariga