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

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

[avr-libc-dev] Malloc compile failure.


From: Theodore Roth
Subject: [avr-libc-dev] Malloc compile failure.
Date: Thu, 20 Jun 2002 14:46:35 -0600 (MDT)

Hi,

I'm trying to test the new library and tools using a program I had working
with the older tools. Seems to be a problem with the new malloc code.


make clean all
rm -f *.[iso] *.srec *.out *.elf *.bin *.hex *.map *.lst *.bak .deps
avr-gcc -mmcu=atmega128 -Wall -W -Wstrict-prototypes  --save-temps -O2 -g
-c -o main.o main.c
avr-gcc -mmcu=atmega128 -Wall -W -Wstrict-prototypes  --save-temps -O2 -g
-c -o sched.o sched.c
avr-gcc -mmcu=atmega128 -Wall -W -Wstrict-prototypes  --save-temps -O2 -g
-c -o swtimer.o swtimer.c
avr-gcc -mmcu=atmega128 -Wall -W -Wstrict-prototypes  --save-temps -O2 -g
-c -o task_blink.o task_blink.c
avr-gcc -Wl,-M -mmcu=atmega128 -Wall -W -Wstrict-prototypes  --save-temps
-O2 -g main.o sched.o swtimer.o task_blink.o -o avrtos.elf > avrtos.map
/home/roth/local/avr/lib/gcc-lib/avr/3.2/../../../../avr/lib/avr5/libc.a(malloc.o):
In function `malloc':
/home/roth/dev/avr/avr-libc-20020612-tr/avr5/build/libc/stdlib/../../../../libc/stdlib/malloc.c:94:
undefined reference to `__heap_end'
make: *** [avrtos.elf] Error 1

Compilation exited abnormally with code 2 at Thu Jun 20 13:37:35


Am I missing something?

Here's the versions of what I'm using:

address@hidden:~/dev/avr/osavr/doc/tex$ avr-as --version
GNU assembler 2.12.90 20020618

address@hidden:~/dev/avr/osavr/doc/tex$ avr-gcc --version
avr-gcc (GCC) 3.2 20020618 (experimental)

avr-libc-20020612


I'll keep digging and see if I can find the problem. I'm assuming that the
ldscripts should be setting __heap_end, I only get the following:

address@hidden:~/local/avr/avr/lib/ldscripts$ grep heap *
avr1.x:     PROVIDE (__heap_start = .) ;
avr1.xbn:     PROVIDE (__heap_start = .) ;
avr1.xn:     PROVIDE (__heap_start = .) ;
avr2.x:     PROVIDE (__heap_start = .) ;
avr2.xbn:     PROVIDE (__heap_start = .) ;
avr2.xn:     PROVIDE (__heap_start = .) ;
avr3.x:     PROVIDE (__heap_start = .) ;
avr3.xbn:     PROVIDE (__heap_start = .) ;
avr3.xn:     PROVIDE (__heap_start = .) ;
avr4.x:     PROVIDE (__heap_start = .) ;
avr4.xbn:     PROVIDE (__heap_start = .) ;
avr4.xn:     PROVIDE (__heap_start = .) ;
avr5.x:     PROVIDE (__heap_start = .) ;
avr5.xbn:     PROVIDE (__heap_start = .) ;
avr5.xn:     PROVIDE (__heap_start = .) ;


Ted Roth




reply via email to

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