[Top][All Lists]

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

Re: [avr-gcc-list] Compiling problems...

From: Theodore A. Roth
Subject: Re: [avr-gcc-list] Compiling problems...
Date: Thu, 20 Mar 2003 08:53:10 -0800 (PST)

On Fri, 21 Mar 2003, Mark Williams (MWP) wrote:

:) Hi all,
:) Ok, first, im using:
:) binutils-20030310.tar.bz2
:) gcc-core-20030310.tar.bz2
:) avr-libc-20030303.tar.gz
:) Binutils and gcc compile and install ok (--prefix=/usr/local/avr 
:) Now on trying to compile AVR-LIBC i get the error:
:) address@hidden crt1]# avr-gcc -mmcu=avr3 -x assembler-with-cpp -Wa,-gstabs 
-mmcu=atmega103 -c ../../../crt1/gcrt1.S -o crtm103.o
:) as: unrecognized option `-mmcu=avr3'
:) For some reason avr-gcc is trying to use "as" instead of "avr-as".
:) Anyone know why this is happening?

Did you add /usr/local/avr/bin to your PATH environment variable and
export it before building and installing any of the tools? You should
do things in this order (assuming bourne-like shell):

  export PATH
  <build binutils for avr and install>
  <build gcc for avr and install>
  <build avr-libc and install>

  <start developing with avr-gcc> ;-)

Did you read this?


Ted Roth

reply via email to

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