From: Paul L. <pl...@gm...> - 2007-10-13 17:54:17
|
Well, I spoke too soon. I'm confident that avr-libc is built and installed properly. But building avr-gcc (avr-toolchain) fails during the make -C a2 d phase: ... make -C a2d make[1]: Entering directory `/home/paul/avr/lib/avrlib/examples/a2d' avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/home/paul/avr/lib/avrlib -Wa,-ahlms=a2dtest.lst -mmcu=atmega163 -I. a2dtest.c -o a2dtest.o In file included from a2dtest.c:18: /home/paul/avr/lib/gcc/avr/3.4.4/../../../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>." avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/home/paul/avr/lib/avrlib -Wa,-ahlms=/home/paul/avr/lib/avrlib/buffer.lst -mmcu=atmega163 -I. /home/paul/avr/lib/avrlib/buffer.c -o /home/paul/avr/lib/avrlib/buffer.o avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/home/paul/avr/lib/avrlib -Wa,-ahlms=/home/paul/avr/lib/avrlib/uart.lst -mmcu=atmega163 -I. /home/paul/avr/lib/avrlib/uart.c -o /home/paul/avr/lib/avrlib/uart.o In file included from /home/paul/avr/lib/avrlib/uart.c:20: /home/paul/avr/lib/gcc/avr/3.4.4/../../../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>." avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/home/paul/avr/lib/avrlib -Wa,-ahlms=/home/paul/avr/lib/avrlib/rprintf.lst -mmcu=atmega163 -I. /home/paul/avr/lib/avrlib/rprintf.c -o /home/paul/avr/lib/avrlib/rprintf.o avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/home/paul/avr/lib/avrlib -Wa,-ahlms=/home/paul/avr/lib/avrlib/timer.lst -mmcu=atmega163 -I. /home/paul/avr/lib/avrlib/timer.c -o /home/paul/avr/lib/avrlib/timer.o In file included from /home/paul/avr/lib/avrlib/timer.c:20: /home/paul/avr/lib/gcc/avr/3.4.4/../../../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>." avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/home/paul/avr/lib/avrlib -Wa,-ahlms=/home/paul/avr/lib/avrlib/a2d.lst -mmcu=atmega163 -I. /home/paul/avr/lib/avrlib/a2d.c -o /home/paul/avr/lib/avrlib/a2d.o In file included from /home/paul/avr/lib/avrlib/a2d.c:19: /home/paul/avr/lib/gcc/avr/3.4.4/../../../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>." avr-gcc -c -g -Os -Wall -Wstrict-prototypes -I/home/paul/avr/lib/avrlib -Wa,-ahlms=/home/paul/avr/lib/avrlib/vt100.lst -mmcu=atmega163 -I. /home/paul/avr/lib/avrlib/vt100.c -o /home/paul/avr/lib/avrlib/vt100.o In file included from /home/paul/avr/lib/avrlib/vt100.c:24: /home/paul/avr/lib/gcc/avr/3.4.4/../../../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>." avr-gcc /home/paul/avr/lib/avrlib/buffer.o /home/paul/avr/lib/avrlib/uart. o /home/paul/avr/lib/avrlib/rprintf.o /home/paul/avr/lib/avrlib/timer.o /home/paul/avr/lib/avrlib/a2d.o /home/paul/avr/lib/avrlib/vt100.o a2dtest.o -Wl,-Map=a2dtest.map,--cref -mmcu=atmega163 -o a2dtest.elf /home/paul/avr/lib/gcc/avr/3.4.4/../../../../avr/bin/ld: cannot open linker script file ldscripts/avr5.x: No such file or directory make[1]: *** [a2dtest.elf] Error 1 rm /home/paul/avr/lib/avrlib/timer.o /home/paul/avr/lib/avrlib/buffer.o /home/paul/avr/lib/avrlib/rprintf.o /home/paul/avr/lib/avrlib/uart.o /home/paul/avr/lib/avrlib/vt100.o /home/paul/avr/lib/avrlib/a2d.o make[1]: Leaving directory `/home/paul/avr/lib/avrlib/examples/a2d' make: *** [a2d] Error 2 + find . + xargs file + grep executable + grep ELF + cut -f 1 -d : + xargs strip --strip-unneeded + find . + xargs file + grep shared object + grep ELF + cut -f 1 -d : + xargs strip --strip-unneeded ./build.test: 58: Syntax error: "(" unexpected Here's a synopsis of the steps I took previously: 1) download avr-libc-1.4.6.tar.bz2 from http://download.savannah.gnu.org/releases/avr-libc/ 2) download the avr-toolchain from Dave Hylands site: http://www.davehylands.com/gumstix-wiki/avr-toolchain/ 3) untar each into a separate directory 4) modify avr-toolchain build script as outlined in http://docswiki.gumstix.com/Robostix_avr_gcc 5) Now, you can't build avr-libc first, since it relies on avr-gcc to build . So, I run ./build in avr-toolchain, which fails since avr-libc is not installed! 6) Now build avr-libc: ./configure --build=`./config.guess` --host=avr --prefix=/home/paul/avr make su root make install (sudo make install failed because ~/avr/bin was not in the path) 7) Now build avr-toolchain, which results in the build failure listed above . Any advice on the overall sequence? What am I missing? Is the fact that ldscripts/avr5.x is missing the culprit? If so, how can this be remedied? Thanks Paul |