[Top][All Lists]

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

Re: [avr-gcc-list] Compilation Problem

From: Russell Strong
Subject: Re: [avr-gcc-list] Compilation Problem
Date: 17 Apr 2003 20:41:14 +1000

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
/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
/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
avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O binary demo.elf
avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O srec demo.elf
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?

Russell Strong

On Thu, 2003-04-17 at 14:42, Theodore A. Roth wrote:
> On 17 Apr 2003, Russell Strong wrote:
> :)Hi,
> :)
> :)Using the Source RPMS:
> :)
> :)avr-binutils-
> :)avr-gcc-
> :)avr-libc-20030414cvs-1.src.rpm
> :)
> :)from http://savannah.nongnu.org/download/avr-libc/snapshots/
> :)
> :)I built and installed them without any errors but when I try to compile
> :)the demo project from the avr-libc-docs.  I get the following
> :)
> :)address@hidden avr]$ avr-gcc -g -Os -mmcu=at90s2333 -c demo.c
> :)address@hidden avr]$ avr-gcc -g -mmcu=at90s2333 -o demo.elf demo.o
> :)
> :)/usr/lib/gcc-lib/avr/3.3/../../../../avr/bin/ld: skipping incompatible
> :)/usr/lib/gcc-lib/avr/3.3/libgcc.a when searching for -lgcc
> :)/usr/lib/gcc-lib/avr/3.3/../../../../avr/bin/ld: cannot find -lgcc
> :)address@hidden avr]$
> I'm battling this myself, still looking into though...
> Good to hear I'm not alone. I'm wondering if something changed in the latest 
> binutils. I need to make a rpm package for 2.13.2 since that will work with 
> the gcc-3.3 pre-releases.
> Ted Roth

reply via email to

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