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

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

Re: [avr-gcc-list] Debian (woody) update broke gcc - anyone on this know


From: Christoph Plattner
Subject: Re: [avr-gcc-list] Debian (woody) update broke gcc - anyone on this know a work-around?
Date: Sun, 24 Mar 2002 00:49:16 +0100

Hello,

I think you have a simple type in front of you !

The optimazation switch is `-O' not `-o'. So you want - I think - the
`-Os'
and not `-os'. Otherwise you say the compiler to produce an object file
with the name `s', and therefore `make' is not satisfied, as it expects
a
file name `test2.out' ! It seems, gcc ignores the second `-o ....'.

Independent of the compiler build, yout `-os' should never work !
Otherwise - if it worked one day - the second `-o ....' has overridden
the
first one !

With friendly regards
Christoph Plattner



Matthew Welland wrote:
> 
> I have been using avr-linux-gcc for some time and did an upgrade and now it
> seems to have either broken or be set up differently.
> 
> The previous command line that used to work is:
> avr-linux-gcc -g -os -mmcu=atmega163 test2.c -o test2.out
> avr-linux-objcopy -j .text -O ihex test1.out test1.hex
> 
> The following things have changed:
> 1. avr-linux-gcc is now avr-gcc
> 2. I needed to add -I/usr/avr-linux/include or the header files are not found
> 3. I had to copy crtm163.o in to my work area
> 4. Now I get:
> 
> make test2
> avr-gcc -I/usr/avr-linux/include  -g -os -mmcu=atmega163 test2.c -o test2.out
> /usr/lib/gcc-lib/avr/3.0.3/../../../../avr/bin/ld: cannot find -lc
> make: *** [test2] Error 1
> 
> I don't know how to work around this. Is anyone else using Debian woody and
> know how to fix these problems?
> 
> Thanks
> 
> Matt
> --
> avr-gcc-list at http://avr1.org

-- 
-------------------------------------------------------
private:        address@hidden
company:        address@hidden

avr-gcc-list at http://avr1.org



reply via email to

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