[Top][All Lists]
[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 23:55:03 -0700 (PDT) |
On 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]$
:)
<snip>
:)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?
This is most definitely a RedHat-9 problem. It appears that rpmbuild is
trying to strip the binaries and static libs. This is somehow corrupting the
static libraries (I don't think the native strip program is built to handle
stripping files for avr targets).
I found a work-around though. Adding the following to the .spec files got a
clean build on one of my larger projects:
# We don't want rpm stripping any files
%define __spec_install_post %{nil}
# Don't build the debuginfo rpm
%define debug_package %{nil}
I have updated my spec files for binutils and gcc, plus I've committed the
fix to the avr-libc sources. If you can't wait for next weeks snapshots,
you'll have to roll your own from the .src.rpm files with fixed spec files.
Ted Roth