[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] simulavr build snaggle
From: |
Theodore A. Roth |
Subject: |
Re: [avr-gcc-list] simulavr build snaggle |
Date: |
Wed, 13 Aug 2003 16:31:35 -0700 (PDT) |
On Thu, 14 Aug 2003, Terry Porter wrote:
> > This error usually indicates that either gcc or avr-libc were not
> > configured properly. They must be configured with the same --prefix
> > option.
>
>
> I thought so to ... at first. Here is my avr-gcc with the -v switch
> (via the makefile):
>
> address@hidden:~/projects/avr-test/avr-samples$ make
> avr-gcc -v -g -mmcu=atmega8 -o js1.elf -Wl,-Map,js1.map js1.o
> Reading specs from /usr/local/avr/lib/gcc-lib/avr/3.3/specs
> Configured with: ./configure --target=avr --prefix=/usr/local/avr
> --disable-nls --enable-languages=c
> Thread model: single
> gcc version 3.3
> /usr/local/avr/lib/gcc-lib/avr/3.3/../../../../avr/bin/ld -m avr4
> -o js1.elf /usr/local/avr/lib/gcc-lib/avr/3.3/avr4/crtm8.o
> -L/usr/local/avr/lib/gcc-lib/avr/3.3/avr4
> -L/usr/local/avr/lib/gcc-lib/avr/3.3
> -L/usr/local/avr/lib/gcc-lib/avr/3.3/../../../../avr/lib -Map
> js1.map js1.o -lgcc -lc -lgcc
> avr-objcopy -j .text -O ihex js1.elf js1.hex
> avr-objdump -S js1.elf > js1.listing
What's the output look like if you don't have the crt*.o files in
/usr/local/avr/lib/gcc-lib/avr/3.3?
So try this:
$ cd /usr/local/avr/lib/gcc-lib/avr/3.3/../../../../avr/lib
$ pwd
and see where you are at. Should be /usr/local/avr/avr/lib and you
should see the crt files there (along with avr[345] dirs) [assuming
that you installed avr-libc using --prefix=/usr/local/avr].
Here's the output on my system:
$ avr-gcc -v -mmcu=atmega8 -o demo.elf demo.o
Reading specs from /home/roth/local/avr/lib/gcc-lib/avr/3.3.1/specs
Configured with: ../configure --prefix=/home/roth/local/avr
--enable-languages=c,c++ --disable-nls --target=avr : (reconfigured)
: (reconfigured) ../configure --prefix=/home/roth/local/avr
--enable-languages=c,c++ --disable-nls --target=avr : (reconfigured)
../configure --prefix=/home/roth/local/avr --enable-languages=c,c++
--disable-nls --target=avr
Thread model: single
gcc version 3.3.1
/home/roth/local/avr/lib/gcc-lib/avr/3.3.1/../../../../avr/bin/ld -m
avr4 -o demo.elf
/home/roth/local/avr/lib/gcc-lib/avr/3.3.1/../../../../avr/lib/avr4/crtm8.o
-L/home/roth/local/avr/lib/gcc-lib/avr/3.3.1/avr4
-L/home/roth/local/avr/lib/gcc-lib/avr/3.3.1
-L/home/roth/local/avr/lib/gcc-lib/avr/3.3.1/../../../../avr/lib/avr4
-L/home/roth/local/avr/lib/gcc-lib/avr/3.3.1/../../../../avr/lib
demo.o -lgcc -lc -lgcc
Hmmm, I see that yours doesn't show a option similar to this:
-L/home/roth/local/avr/lib/gcc-lib/avr/3.3.1/../../../../avr/lib/avr4
Ted Roth
- Re: [avr-gcc-list] Re: Yet another Avr-gcc_Simulavr_Avr-Gdb_DDD-howto, Was: Re: avr-libc install problem, (continued)
- Re: [avr-gcc-list] Re: Yet another Avr-gcc_Simulavr_Avr-Gdb_DDD-howto, Was: Re: avr-libc install problem, Terry Porter, 2003/08/19
- Re: [avr-gcc-list] Re: Yet another Avr-gcc_Simulavr_Avr-Gdb_DDD-howto, Was: Re: avr-libc install problem, Erik Christiansen, 2003/08/19
- Re: [avr-gcc-list] Re: Yet another Avr-gcc_Simulavr_Avr-Gdb_DDD-howto, Was: Re: avr-libc install problem, Theodore A. Roth, 2003/08/19
- Re: [avr-gcc-list] Re: Yet another Avr-gcc_Simulavr_Avr-Gdb_DDD-howto, Was: Re: avr-libc install problem, Erik Christiansen, 2003/08/20
- Re: [avr-gcc-list] simulavr build snaggle, Theodore A. Roth, 2003/08/13
- Re: [avr-gcc-list] simulavr build snaggle, Terry Porter, 2003/08/13
- Re: [avr-gcc-list] simulavr build snaggle, Theodore A. Roth, 2003/08/13
- Re: [avr-gcc-list] simulavr build snaggle, Erik Christiansen, 2003/08/14
- Re: [avr-gcc-list] simulavr build snaggle, Theodore A. Roth, 2003/08/13
- Re: [avr-gcc-list] simulavr build snaggle, Terry Porter, 2003/08/13
- Re: [avr-gcc-list] simulavr build snaggle,
Theodore A. Roth <=
Re: [avr-gcc-list] Homebrew ICE?, Derick Schoonbee, 2003/08/13
Re: [avr-gcc-list] Homebrew ICE?, Derick Schoonbee, 2003/08/13