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

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

[avr-gcc-list] Problem linking with 3.0.3


From: Greg Kulosa
Subject: [avr-gcc-list] Problem linking with 3.0.3
Date: Tue, 19 Feb 2002 00:18:38 -0800
User-agent: Mutt/1.2.5i

I am a new user of avr-gcc, and I am having a problem.

I used the example from http://www.enteract.com/~rneswold/avr/
to set-up a flashing LED.


Here is the output:

jaxom{greg}277: make
avr-gcc -g -I/usr/local/avr/include -mmcu=atmega103 -Os -c LED_flash.c
avr-gcc -g -I/usr/local/avr/include -mmcu=atmega103 -o LED_flash.out 
-Wl,-Map,LED_flash.map LED_flash.o
/usr/local/avr/lib/gcc-lib/avr/3.0.3/../../../../avr/bin/ld: cannot open 
crtm103.o: No such file or directory
make: *** [LED_flash.out] Error 1



So, I added the "--verbose" flag to the linker line, and I get this:


jaxom{greg}278: avr-gcc --verbose -g -I/usr/local/avr/include -mmcu=atmega103 
-o LED_flash.out -Wl,-Map,LED_flash.map LED_flash.o
Reading specs from /usr/local/avr/lib/gcc-lib/avr/3.0.3/specs
Configured with: ../gcc-3.0.3/configure --target=avr --prefix=/usr/local/avr 
--disable-nls --enable-languages=c
Thread model: single
gcc version 3.0.3
 /usr/local/avr/lib/gcc-lib/avr/3.0.3/../../../../avr/bin/ld -m avrmega103 -o 
LED_flash.out crtm103.o -L/usr/local/avr/lib/gcc-lib/avr/3.0.3/avr3 
-L/usr/local/avr/lib/gcc-lib/avr/3.0.3 
-L/usr/local/avr/lib/gcc-lib/avr/3.0.3/../../../../avr/lib -Map LED_flash.map 
LED_flash.o -lgcc -lc -lgcc
/usr/local/avr/lib/gcc-lib/avr/3.0.3/../../../../avr/bin/ld: cannot open 
crtm103.o: No such file or directory


If I copy the /usr/local/avr/lib/avr3/crtm103.o file to the local
directory, then I get past that step, but I get a new error that it
can't find "-lc".

I downloaded binutils-2.11.2 and gcc-3.0.3 from ftp.gnu.org and built
them.  I did not add any patches.  I am using avr-libc-20020203.



Any ideas?



-- 
Greg A. Kulosa          | "The avalanche has already started, it is too
Systems Administrator   |  late for the pebbles to vote." - Ambassador Kosh
Independent Consultant  |___________________________________________________
address@hidden          
avr-gcc-list at http://avr1.org



reply via email to

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