avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] avr-gcc won't compile (xgcc has bad cmdline option"-m


From: Eric Weddington
Subject: RE: [avr-gcc-list] avr-gcc won't compile (xgcc has bad cmdline option"-march=i586")
Date: Tue, 11 Sep 2007 17:00:43 -0600


> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Rory Galvin
> Sent: Tuesday, September 11, 2007 4:21 PM
> To: address@hidden
> Subject: [avr-gcc-list] avr-gcc won't compile (xgcc has bad
> cmdline option"-march=i586")
>
> So I download binutils-2.16, set my PREFIX to

Use binutils 2.17. Or 2.18 but that has had less traffic and testing because
its so new.


> I thought this would be ok.  But when I try to make
> avr-gcc it fails when it hits xgcc (of _mulqi3.o):
>
> /home/root/shed/gcc-4.1.2/obj-avr/./gcc/xgcc
> -B/home/root/shed/gcc-4.1.2/obj-avr/./gcc/
> -B/usr/local/avr/avr/bin/ -B/usr/local/avr/avr/lib/
> -isystem /usr/local/avr/avr/include -isystem
> /usr/local/avr/avr/sys-include -O2  -O2 -O2
> -march=i586 -mtune=i686  -DIN_GCC -DCROSS_COMPILE   -W
> -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wold-style-definition  -isystem
> ./include  -DDF=SF -Dinhibit_libc -mcall-prologues -g
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
> -I. -I. -I../../gcc -I../../gcc/.
> -I../../gcc/../include -I../../gcc/../libcpp/include
> -DL_mulqi3 -xassembler-with-cpp -c
> ../../gcc/config/avr/libgcc.S -o libgcc/./_mulqi3.o
> cc1: error: unrecognized command line option
> "-march=i586"
> cc1: error: unrecognized command line option
> "-mtune=i686"

What do you think the above is doing?

It is trying to compile libgcc, for the AVR target, by calling a GCC that
uses the flags "-march=i586 -mtune=i686" which are x86 specific. Something
is seriously messed up with your configuration because it's using the wrong
compiler.

Please use the directions found in the avr-libc user manual on how to build
your toolchain. Alternatively, use the build script that is found on AVR
Freaks, in the AVR GCC Forum that is in a "sticky" post at the top of the
forum. Alternatively, use the build script that was posted to this list two
weeks (August 31) that can be found here:
<http://www.develer.com/oss/AvrToolchain>







reply via email to

[Prev in Thread] Current Thread [Next in Thread]