From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18104 invoked by alias); 23 Mar 2011 07:35:18 -0000 Received: (qmail 17962 invoked by uid 22791); 23 Mar 2011 07:35:15 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-vw0-f47.google.com (HELO mail-vw0-f47.google.com) (209.85.212.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Mar 2011 07:35:09 +0000 Received: by vws2 with SMTP id 2so6008228vws.20 for ; Wed, 23 Mar 2011 00:35:07 -0700 (PDT) Received: by 10.220.65.14 with SMTP id g14mr1411248vci.268.1300865707176; Wed, 23 Mar 2011 00:35:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.195.1 with HTTP; Wed, 23 Mar 2011 00:34:47 -0700 (PDT) In-Reply-To: References: From: Mohamed Shafi Date: Wed, 23 Mar 2011 07:35:00 -0000 Message-ID: Subject: Re: gcc 4.6 build failure To: naga raj Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2011-03/txt/msg00290.txt.bz2 On 23 March 2011 12:54, naga raj wrote: > > Hi, > > =A0Can any one please help in resolving the following issue.. > > =A0I am compiling microblaze cross compiler which is present in GCC-4.6 r= elease. > > =A0 Following is the error log: > -------------------------------------------------------------------------= -------------------------------------------------------- > configure:3020: > /proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/bui= ld/./gcc/xgcc > -B/proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/b= uild/./gcc/ > -B/proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-e= lf/bin/ > -B/proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-e= lf/lib/ > -isystem /proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-x= ilinx-elf/include > -isystem /proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-x= ilinx-elf/sys-include > =A0 -o conftest -g -O2 =A0 conftest.c =A0>&5 > /proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/bui= ld/./gcc/as: > line 83: exec: -o: invalid option > exec: usage: exec [-cl] [-a name] file [redirection ...] > configure:3023: $? =3D 1 > configure:3211: checking for suffix of object files > configure:3233: > /proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/bui= ld/./gcc/xgcc > -B/proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/b= uild/./gcc/ > -B/proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-e= lf/bin/ > -B/proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-e= lf/lib/ > -isystem /proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-x= ilinx-elf/include > -isystem /proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-x= ilinx-elf/sys-include > =A0 -c -g -O2 =A0conftest.c >&5 > /proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/bui= ld/./gcc/as: > line 83: exec: -o: invalid option > exec: usage: exec [-cl] [-a name] file [redirection ...] > configure:3237: $? =3D 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "GNU C Runtime Library" > | #define PACKAGE_TARNAME "libgcc" > | #define PACKAGE_VERSION "1.0" > | #define PACKAGE_STRING "GNU C Runtime Library 1.0" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" > | /* end confdefs.h. =A0*/ > | > | int > | main () > | { > | > | =A0 ; > | =A0 return 0; > | } > configure:3251: error: in > `/proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/bu= ild/microblaze-xilinx-elf/libgcc': > configure:3254: error: cannot compute suffix of object files: cannot comp= ile > -------------------------------------------------------------------------= ----------------------------------------------- > Please help me out in fixing this issue. Microblaze compiler is trying to build the target libraries. For this you need to have the assembler for the target installed in your PATH. Do you have those? If not you need to build binutils also for the target. Hope this helps. Shafi