avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] ./reconf failed


From: Theodore A. Roth
Subject: Re: [avr-libc-dev] ./reconf failed
Date: Fri, 8 Nov 2002 13:51:14 -0800 (PST)

On Fri, 8 Nov 2002, Karl Ran wrote:

:) >What do you get from this:
:) >
:) >   $ file demo.elf
:) >   demo.elf: ELF 32-bit LSB executable, version 1 (SYSV), statically
:) >linked, not stripped
:)
:) $ file demo.elf
:) demo.elf: ELF 32-bit LSB executable, version 1, statically linked, not
:) stripped

ok, no surprises there.

:)
:) >What happens if you just go into doc/examples/demo and type this?
:) >
:) >   $ make clean; make
:)
:) $ make clean; make
:)
:) avr-gcc -g -Wall -O2 -mmcu=at90s2313    -c -o demo.o demo.c
:) demo.c:17:22: inttypes.h: No such file or directory
:) demo.c:18:20: avr/io.h: No such file or directory

<snip>

:) make: *** [demo.o] Error 1

That's what I thought would happen since you don't have avr-libc installed
yet. ;-)

:)
:) Note:
:) avr-gcc -g -Wall -O2 -mmcu=at90s2313 -I../../../include   -c -o demo.o
:) demo.c
:) avr-gcc -g -Wall -O2 -mmcu=at90s2313 -I../../../include -Wl,-Map,demo.map -o
:) demo.elf demo.o -nostartfiles -nodefaultlibs ../../../build/crt1/crts2313.o
:) avr-objdump -h -S demo.elf > demo.lst
:)
:) WORKS :-/

Eek! So running those command in doc/example/demo work, but the standard
make doesn't.

One more thing I'd like to see. Do this (from top of avr-libc tree):

  $ make -C doc/examples/demo clean
  $ make -C build/doc/api demo
make: Entering directory `/home/roth/dev/tools/avr-libc-cvs/build/doc/api'
if test -n "../../../obj-avr/crt1/crts2313.o" ; then \
        NODEFLIBS="-nostartfiles -nodefaultlibs" ; \
fi; \
cd ../../../doc/examples/demo && \
        make DEFS="-I../../../include"  \
                LIBS="$NODEFLIBS ../../../obj-avr/crt1/crts2313.o" dox all
make[1]: Entering directory
`/home/roth/dev/tools/avr-libc-cvs/doc/examples/demo'
fig2dev -L eps demo.fig demo.eps
fig2dev -L png demo.fig demo.png
pngtopnm demo.png > tmp.pnm
pnmtopng -transparent white tmp.pnm >demo.png && rm tmp.pnm
fig2dev -L pdf demo.fig demo.pdf
avr-gcc -g -Wall -O2 -mmcu=at90s2313 -I../../../include   -c -o demo.o
demo.c
avr-gcc -g -Wall -O2 -mmcu=at90s2313 -I../../../include -Wl,-Map,demo.map
-o demo.elf demo.o -nostartfiles -nodefaultlibs
../../../obj-avr/crt1/crts2313.o
avr-objdump -h -S demo.elf > demo.lst
avr-objcopy -j .text -O ihex demo.elf demo.hex
avr-objcopy -j .text -O binary demo.elf demo.bin
avr-objcopy -j .text -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
make[1]: Leaving directory
`/home/roth/dev/tools/avr-libc-cvs/doc/examples/demo'
make: Leaving directory `/home/roth/dev/tools/avr-libc-cvs/build/doc/api'


:)
:) >Do you have avr-binutils and avr-gcc installed properly?
:)
:) $avr-gcc -v
:) Reading specs from /src/install/bin/../lib/gcc-lib/avr/3.3/specs
:) Configured with: ../gcc-20021104/configure --enable-languages=c --target=avr
:) --prefix=/src/install/
:) Thread model: single
:) gcc version 3.3 20021104 (experimental)
:)
:) $avr-objdump -v
:) GNU objdump 021104 20021104
:) Copyright 2002 Free Software Foundation, Inc.
:) This program is free software; you may redistribute it under the terms of
:) the GNU General Public License.  This program has absolutely no warranty.

That looks fine to me. I assume that you used "--prefix=/src/install/" for
binutils and avr-libc also?

Ted Roth





reply via email to

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