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: naga raj <gnuuser dot raj at gmail dot com>
- To: Mohamed Shafi <shafitvm at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Mar 2011 13:26:16 +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> <AANLkTim_hhJMn7VUpzVgSOVXHO7O6DHqZzJa=Vj2y2hZ@mail.gmail.com>
Thank you Shafi for you reply.
I have already compiled binulits for microblaze..
I have already included assembler by using AS_FOR_TARGET in configuration.
Is there any other way giving assembler to the gcc...
Thanks
Nagaraj
On Wed, Mar 23, 2011 at 1:03 PM, Mohamed Shafi <shafitvm@gmail.com> wrote:
>
>
> 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
>
> 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
>