From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6749 invoked by alias); 13 Jun 2012 06:04:12 -0000 Received: (qmail 6732 invoked by uid 22791); 13 Jun 2012 06:04:11 -0000 X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Jun 2012 06:03:58 +0000 Received: from telerig.nabble.com ([192.168.236.162]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SeggP-0003Fp-NA for gcc-help@gcc.gnu.org; Tue, 12 Jun 2012 23:03:57 -0700 Message-ID: <34003766.post@talk.nabble.com> Date: Wed, 13 Jun 2012 06:04:00 -0000 From: "damodar.sonone" To: gcc-help@gcc.gnu.org Subject: Re: upgrading gcc-4.4.0 to gcc-4.7.0:configure: error: cannot compute suffix of object files: cannot compile In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <34003613.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg00114.txt.bz2 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: ------------------------------- configure:6421: checking for uchar configure:6440: gcc -c -g -O2 -I/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 int main () { if ((uchar *)0) return 0; if (sizeof(uchar)) return 0; ; return 0; } 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 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' configure:5549: checking for obstacks configure:5570: gcc -o conftest.exe -g -O2 -I -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: configure:4285: checking minix/config.h usability configure:4285: gcc -c -g -O2 -I 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: Could you please point out what is missing? Ian Lance Taylor-3 wrote: > > "damodar.sonone" 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-tp34003613p34003766.html Sent from the gcc - Help mailing list archive at Nabble.com.