This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 4.6 build failure
- From: Mohamed Shafi <shafitvm at gmail dot com>
- To: naga raj <gnuuser dot raj at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Mar 2011 13:04:47 +0530
- Subject: Re: gcc 4.6 build failure
- References: <AANLkTi=Nd8Sm7gvL2VwRd63rNku4z-JXO0Om6Fc8f4F+@mail.gmail.com> <AANLkTi=P0KGoioq_fux05qg4ALuC=x=b+S8-S8L=9DwE@mail.gmail.com>
On 23 March 2011 12:54, naga raj <gnuuser.raj@gmail.com> wrote:
>
> Hi,
>
> ?Can any one please help in resolving the following issue..
>
> ?I am compiling microblaze cross compiler which is present in GCC-4.6 release.
>
> ? Following is the error log:
> ---------------------------------------------------------------------------------------------------------------------------------
> configure:3020:
> /proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/build/./gcc/xgcc
> -B/proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/build/./gcc/
> -B/proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-elf/bin/
> -B/proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-elf/lib/
> -isystem /proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-elf/include
> -isystem /proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-elf/sys-include
> ? -o conftest -g -O2 ? conftest.c ?>&5
> /proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/build/./gcc/as:
> line 83: exec: -o: invalid option
> exec: usage: exec [-cl] [-a name] file [redirection ...]
> configure:3023: $? = 1
> configure:3211: checking for suffix of object files
> configure:3233:
> /proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/build/./gcc/xgcc
> -B/proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/build/./gcc/
> -B/proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-elf/bin/
> -B/proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-elf/lib/
> -isystem /proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-elf/include
> -isystem /proj/epdsw1/nagaraju/mb_gnu_4.4/gnu/microblaze/lin/microblaze-xilinx-elf/sys-include
> ? -c -g -O2 ?conftest.c >&5
> /proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/build/./gcc/as:
> line 83: exec: -o: invalid option
> exec: usage: exec [-cl] [-a name] file [redirection ...]
> configure:3237: $? = 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. ?*/
> |
> | int
> | main ()
> | {
> |
> | ? ;
> | ? return 0;
> | }
> configure:3251: error: in
> `/proj/epdsw1/nagaraju/mb_gnu_4.4/build/microblaze/lin/bld_gcc_release/build/microblaze-xilinx-elf/libgcc':
> configure:3254: error: cannot compute suffix of object files: cannot compile
> ------------------------------------------------------------------------------------------------------------------------
> 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