Hello, sorry, the previous log was from "libcpp folder" under gcc-build & below is the error log from config.log file from libgcc folder. ------------------------------- Config.log in libgcc folder: ------------------------------- <snip1> xgcc: error: unrecognized command line option '-V' xgcc: fatal error: no input files compilation terminated. configure:3418: $? = 1 <snip1> <snip2> conftest.c: In function 'main': conftest.c:16:1: internal compiler error: in reg_save_code, at caller-save.c:158 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. configure:3437: $? = 1 configure:3625: checking for suffix of object files <snip2> Please suggest what is missing. <quoe author="damodar.sonone"> There are several "errors" in config.log file, most of which I observed even when the GCC-4.4.0 build successfully. I do not know how to resolve all of these errors. ------------------------------- Config.log in libgcc folder: ------------------------------- <snip1> configure:6421: checking for uchar configure:6440: gcc -c -g -O2 -I/<path to gcc-4.7.0/gcc/config/my_target>conftest.c >&5 conftest.c: In function 'main': conftest.c:75:6: error: 'uchar' undeclared (first use in this function) conftest.c:75:6: note: each undeclared identifier is reported only once for each function it appears in conftest.c:75:13: error: expected expression before ')' token configure:6440: $? = 1 configure: failed program was: --------------------------- lost of macros included here--------- /* end confdefs.h. */ #include <sys/types.h> int main () { if ((uchar *)0) return 0; if (sizeof(uchar)) return 0; ; return 0; } <snip1> <snip2> conftest.c: In function 'main': conftest.c:99:10: error: 'fwrite_unlocked' undeclared (first use in this function) conftest.c:99:10: note: each undeclared identifier is reported only once for each function it appears in configure:5961: $? = 1 <snip2> <snip3> similar errors for 'fputc_unlocked','fread_unlocked''fprintf_unlocked''fileno_unlocked' 'fgets_unlocked' 'fgetc_unlocked''fflush_unlocked''ferror_unlocked''feof_unlocked''clearerr_unlocked''errno' 'basename' <snip3> <snip4> configure:5549: checking for obstacks configure:5570: gcc -o conftest.exe -g -O2 -I<path to gcc-4.7.0/gcc/config/my_target> -Wl,--stack,12582912 conftest.c >&5 conftest.c:68:29: fatal error: obstack.h: No such file or directory compilation terminated. configure:5570: $? = 1 configure: failed program was: <snip4> <snip5> configure:4285: checking minix/config.h usability configure:4285: gcc -c -g -O2 -I<path to gcc-4.7.0/gcc/config/my_target> conftest.c >&5 Conftest.c:52:26: fatal error: minix/config.h: No such file or directory compilation terminated. configure:4285: $? = 1 configure: failed program was: <snip5> Could you please point out what is missing? Ian Lance Taylor-3 wrote: > > "damodar.sonone" <dsonone@xxxxxxxxx> writes: > >> checking for suffix of object files... configure: error: in `/path to >> build_my_target/my_target/libgcc': >> configure: error: cannot compute suffix of object files: cannot compile >> See `config.log' for more details. > > What do you see in the file /path to > build_my_target/my_target/libgcc/config.log? > > Ian > > -- View this message in context: http://old.nabble.com/upgrading-gcc-4.4.0-to-gcc-4.7.0%3Aconfigure%3A-error%3A-cannot-compute-suffix-of-object-files%3A-cannot-compile-tp34003613p34003806.html Sent from the gcc - Help mailing list archive at Nabble.com.