Grep missing!
Leon
Posts: 7,620
I downloaded it and tried it on my laptop running Win7 x64. Building the demos with the makefile failed because grep was missing:
C:\propgcc\demos>make all
make -C libpropeller
make[1]: Entering directory `/demos/libpropeller'
propeller-elf-gcc -Os -mlmm -I../include -o propeller.o -c propeller.c
propeller-elf-ar rcs libpropeller.a propeller.o
propeller-elf-gcc -Os -mlmm -I../include -o stdio.o -c stdio.c
propeller-elf-gcc -Os -mlmm -I../include -o serial.o -c serial.c
propeller-elf-gcc -Os -mlmm -I../include -o clock.o -c clock.c
propeller-elf-gcc -Os -mlmm -I../include -o printf.o -c printf.c
propeller-elf-gcc -Os -mlmm -I../include -o puts.o -c puts.c
propeller-elf-gcc -Os -mlmm -I../include -DFLOAT_SUPPORT -o f_printf.o -c printf
.c
propeller-elf-gcc -Os -mlmm -I../include -o strcat.o -c strcat.c
propeller-elf-gcc -Os -mlmm -I../include -o strncat.o -c strncat.c
propeller-elf-gcc -Os -mlmm -I../include -o strcmp.o -c strcmp.c
propeller-elf-gcc -Os -mlmm -I../include -o strncmp.o -c strncmp.c
propeller-elf-gcc -Os -mlmm -I../include -o strcpy.o -c strcpy.c
propeller-elf-gcc -Os -mlmm -I../include -o strncpy.o -c strncpy.c
propeller-elf-gcc -Os -mlmm -I../include -o strlen.o -c strlen.c
propeller-elf-gcc -Os -mlmm -I../include -o memcpy.o -c memcpy.c
propeller-elf-gcc -Os -mlmm -I../include -o malloc.o -c malloc.c
propeller-elf-gcc -Os -mlmm -I../include -o memset.o -c memset.c
propeller-elf-gcc -Os -mlmm -I../include -o sbrk.o -c sbrk.c
propeller-elf-gcc -Os -mlmm -I../include -o exit.o -c exit.c
propeller-elf-gcc -Os -mlmm -I../include -o sleep.o -c sleep.c
propeller-elf-ar rcs libc.a stdio.o serial.o clock.o printf.o puts.o f_printf.o
strcat.o strncat.o strcmp.o strncmp.o strcpy.o strncpy.o strlen.o memcpy.o mallo
c.o memset.o sbrk.o exit.o sleep.o
propeller-elf-gcc -o crt0_cog.o -c crt0_cog.s
propeller-elf-gcc -o udiv.o -c udiv.s
propeller-elf-gcc -o div.o -c div.s
propeller-elf-gcc -o mult.o -c mult.s
propeller-elf-gcc -o mask.o -c mask.s
propeller-elf-gcc -o cogregs.o -c cogregs.s
propeller-elf-ar rcs libcog.a udiv.o div.o mult.o mask.o cogregs.o
make[1]: Leaving directory `/demos/libpropeller'
make -C toggle/cog_c_toggle # TODO build fails. fix later.
make[1]: Entering directory `/demos/toggle/cog_c_toggle'
propeller-elf-gcc -Os -mlmm -I../../libpropeller/../include -mlmm -o toggle.o -c
toggle.c
propeller-elf-gcc -Os -mcog -I../../libpropeller/../include -o toggle_cog.o -c t
oggle_cog.c
propeller-elf-ld -r -o toggle_1.o -T ../../libpropeller/propeller_cog.script ../
../libpropeller/crt0_cog.o toggle_cog.o ../../libpropeller/libcog.a
propeller-elf-nm toggle_1.o | grep " T " | cut --bytes="12-" > local.lst
/bin/sh: grep: command not found
propeller-elf-objcopy --localize-symbols=local.lst toggle_1.o toggle_1.cog
make[1]: *** [toggle_1.cog] Error 1
make[1]: Leaving directory `/demos/toggle/cog_c_toggle'
make: *** [all] Error 2
C:\propgcc\demos>
C:\propgcc\demos>make all
make -C libpropeller
make[1]: Entering directory `/demos/libpropeller'
propeller-elf-gcc -Os -mlmm -I../include -o propeller.o -c propeller.c
propeller-elf-ar rcs libpropeller.a propeller.o
propeller-elf-gcc -Os -mlmm -I../include -o stdio.o -c stdio.c
propeller-elf-gcc -Os -mlmm -I../include -o serial.o -c serial.c
propeller-elf-gcc -Os -mlmm -I../include -o clock.o -c clock.c
propeller-elf-gcc -Os -mlmm -I../include -o printf.o -c printf.c
propeller-elf-gcc -Os -mlmm -I../include -o puts.o -c puts.c
propeller-elf-gcc -Os -mlmm -I../include -DFLOAT_SUPPORT -o f_printf.o -c printf
.c
propeller-elf-gcc -Os -mlmm -I../include -o strcat.o -c strcat.c
propeller-elf-gcc -Os -mlmm -I../include -o strncat.o -c strncat.c
propeller-elf-gcc -Os -mlmm -I../include -o strcmp.o -c strcmp.c
propeller-elf-gcc -Os -mlmm -I../include -o strncmp.o -c strncmp.c
propeller-elf-gcc -Os -mlmm -I../include -o strcpy.o -c strcpy.c
propeller-elf-gcc -Os -mlmm -I../include -o strncpy.o -c strncpy.c
propeller-elf-gcc -Os -mlmm -I../include -o strlen.o -c strlen.c
propeller-elf-gcc -Os -mlmm -I../include -o memcpy.o -c memcpy.c
propeller-elf-gcc -Os -mlmm -I../include -o malloc.o -c malloc.c
propeller-elf-gcc -Os -mlmm -I../include -o memset.o -c memset.c
propeller-elf-gcc -Os -mlmm -I../include -o sbrk.o -c sbrk.c
propeller-elf-gcc -Os -mlmm -I../include -o exit.o -c exit.c
propeller-elf-gcc -Os -mlmm -I../include -o sleep.o -c sleep.c
propeller-elf-ar rcs libc.a stdio.o serial.o clock.o printf.o puts.o f_printf.o
strcat.o strncat.o strcmp.o strncmp.o strcpy.o strncpy.o strlen.o memcpy.o mallo
c.o memset.o sbrk.o exit.o sleep.o
propeller-elf-gcc -o crt0_cog.o -c crt0_cog.s
propeller-elf-gcc -o udiv.o -c udiv.s
propeller-elf-gcc -o div.o -c div.s
propeller-elf-gcc -o mult.o -c mult.s
propeller-elf-gcc -o mask.o -c mask.s
propeller-elf-gcc -o cogregs.o -c cogregs.s
propeller-elf-ar rcs libcog.a udiv.o div.o mult.o mask.o cogregs.o
make[1]: Leaving directory `/demos/libpropeller'
make -C toggle/cog_c_toggle # TODO build fails. fix later.
make[1]: Entering directory `/demos/toggle/cog_c_toggle'
propeller-elf-gcc -Os -mlmm -I../../libpropeller/../include -mlmm -o toggle.o -c
toggle.c
propeller-elf-gcc -Os -mcog -I../../libpropeller/../include -o toggle_cog.o -c t
oggle_cog.c
propeller-elf-ld -r -o toggle_1.o -T ../../libpropeller/propeller_cog.script ../
../libpropeller/crt0_cog.o toggle_cog.o ../../libpropeller/libcog.a
propeller-elf-nm toggle_1.o | grep " T " | cut --bytes="12-" > local.lst
/bin/sh: grep: command not found
propeller-elf-objcopy --localize-symbols=local.lst toggle_1.o toggle_1.cog
make[1]: *** [toggle_1.cog] Error 1
make[1]: Leaving directory `/demos/toggle/cog_c_toggle'
make: *** [all] Error 2
C:\propgcc\demos>
Comments
This is a recent change that I haven't had time to test on windows.
I saw where "cut" was added and put it in the release script.
Unfortunately I didn't see the "grep" requirement ....
Sorry about this.
The latest release was built on Daniel's machine so his "grep" may need to be posted here.
I've asked Daniel in email to post a copy of his "grep.exe" for putting into C:\propgcc\bin.
The reason for the change had to do with using compiled cog C code for cognew.
Thanks for your patience.
--Steve
I could modify the makefile so that it used the Cygwin grep, but that won't help anyone else.
Here is a zip file that contains the grep program required by that demo. Like Jazzed said, just unzip it into C:\propgcc\bin\ .
Thanks,
Daniel
====================================
grep.zip
====================================
Ya, you're probably right, but if the versions don't work, you might have to switch to your Cygwin path. Just use Daniel's copy. Thanks Daniel!
We shouldn't have trouble getting this into tonight's build.
Thanks,
--Steve