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

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

Re: [avr-gcc-list] Compilation Problem


From: Theodore A. Roth
Subject: Re: [avr-gcc-list] Compilation Problem
Date: Thu, 17 Apr 2003 09:02:16 -0700 (PDT)


On Thu, 17 Apr 2003, Russell Strong wrote:

:) Just for fun I erase the RPMS and installed the binary ones provide that
:) were compiled on redhat 7.3.  Now I get ( with the makefile provided in
:) the demo )
:)
:) address@hidden avr]$ make
:) avr-gcc -g -Wall -Os -mmcu=at90s2333    -c -o demo.o demo.c
:) avr-gcc -g -Wall -Os -mmcu=at90s2333  -Wl,-Map,demo.map -o demo.elf
:) demo.o
:) /usr/lib/gcc-lib/avr/3.3/../../../../avr/bin/ld: skipping incompatible
:) /usr/lib/gcc-lib/avr/3.3/../../../../avr/lib/libc.a when searching for
:) -lc
:) /usr/lib/gcc-lib/avr/3.3/../../../../avr/bin/ld: skipping incompatible
:) /usr/avr/bin/../lib/libc.a when searching for -lc
:) /usr/lib/gcc-lib/avr/3.3/../../../../avr/bin/ld: cannot find -lc
:) make: *** [demo.elf] Error 1
:) address@hidden avr]$
:)
:) It's also worth noting that if I type the link command manually using
:) avr-ld instead of avr-gcc, i.e.
:)
:) avr-ld -Map demo.map -o demo.elf demo.o
:)
:) It works...  Then continue on with
:)
:) address@hidden avr]$ make all
:) avr-objdump -h -S demo.elf > demo.lst
:) avr-objcopy -j .text -j .data -O ihex demo.elf demo.hex
:) avr-objcopy -j .text -j .data -O binary demo.elf demo.bin
:) avr-objcopy -j .text -j .data -O srec demo.elf demo.srec
:) avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O ihex demo.elf
:) demo_eeprom.hex
:) avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O binary demo.elf
:) demo_eeprom.bin
:) avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O srec demo.elf
:) demo_eeprom.srec
:) address@hidden avr]$
:)
:) Since this seems to be a newly encountered problem.  I'm wondering if it
:) may be a Redhat 9.0 thing. Are you using Redhat 9.0 Theodore?  Is anyone
:) else using Redhat 9.0 with these RPMS?

Yes, I'm seeing this on Redhat-9. Have you tried compiling the source
without using rpms? If that works, then I suspect I'm doing something
wrong when I build the rpms. :-\

I'll have a look into it again tonight (don't have a rh system here at
work).

Ted


reply via email to

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