Shop OBEX P1 Docs P2 Docs Learn Events
Grep missing! — Parallax Forums

Grep missing!

LeonLeon Posts: 7,620
edited 2011-11-03 19:14 in Propeller 1
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>

Comments

  • jazzedjazzed Posts: 11,803
    edited 2011-11-03 14:02
    Thanks Leon.

    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
  • LeonLeon Posts: 7,620
    edited 2011-11-03 14:17
    Thanks, Steve.

    I could modify the makefile so that it used the Cygwin grep, but that won't help anyone else.
  • Daniel HarrisDaniel Harris Posts: 207
    edited 2011-11-03 14:24
    Leon et al,

    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

    ====================================
  • jazzedjazzed Posts: 11,803
    edited 2011-11-03 14:26
    Leon wrote: »
    Thanks, Steve.

    I could modify the makefile so that it used the Cygwin grep, but that won't help anyone else.

    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
  • LeonLeon Posts: 7,620
    edited 2011-11-03 14:56
    grep won't run because cygpcre-0.dll is missing. I copied it over from cygwin, and that fixed the problem.
  • jazzedjazzed Posts: 11,803
    edited 2011-11-03 15:20
    Leon wrote: »
    grep won't run because cygpcre-0.dll is missing. I copied it over from cygwin, and that fixed the problem.
    Thanks Leon! Adding to the release script now.
  • jazzedjazzed Posts: 11,803
    edited 2011-11-03 19:14
    These issues should now be fixed with the windows v0_1_7 package. See related thread.
Sign In or Register to comment.