problem with building pasm_toggle
Reinhard
Posts: 489
If I try to make the pasm_toggle demo, get this error message:
28.11.2011 22:39 <DIR> .
28.11.2011 22:39 <DIR> ..
25.11.2011 16:55 629 Makefile
25.11.2011 16:55 4.109 toggle.c
28.11.2011 22:39 4.297 toggle.list
28.11.2011 22:39 3.336 toggle.o
25.11.2011 16:55 5.846 toggle.spin
5 Datei(en) 18.217 Bytes
2 Verzeichnis(se), 2.928.918.528 Bytes frei
C:\propgcc\demos\toggle\pasm_toggle>make
bstc -ls -Ox -c -o toggle toggle.spin
Brads Spin Tool Compiler v0.15.3 - Copyright 2008,2009 All rights reserved
Compiled for i386 Win32 at 08:17:48 on 2009/07/20
Loading Object toggle
Program size is 116 longs
Compiled 28 Lines of Code in 0,009 Seconds
echo toggle.dat
process_begin: CreateProcess(NULL, echo toggle.dat, ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden. // GERMAN -> MEANS FILE NOT FOUND
make: *** [toggle.dat] Error 2
rm toggle.dat
C:\propgcc\demos\toggle\pasm_toggle>path
PATH=c:\propgcc\usr\local\propeller\bin;c:\propgcc\bin;
28.11.2011 22:39 <DIR> .
28.11.2011 22:39 <DIR> ..
25.11.2011 16:55 629 Makefile
25.11.2011 16:55 4.109 toggle.c
28.11.2011 22:39 4.297 toggle.list
28.11.2011 22:39 3.336 toggle.o
25.11.2011 16:55 5.846 toggle.spin
5 Datei(en) 18.217 Bytes
2 Verzeichnis(se), 2.928.918.528 Bytes frei
C:\propgcc\demos\toggle\pasm_toggle>make
bstc -ls -Ox -c -o toggle toggle.spin
Brads Spin Tool Compiler v0.15.3 - Copyright 2008,2009 All rights reserved
Compiled for i386 Win32 at 08:17:48 on 2009/07/20
Loading Object toggle
Program size is 116 longs
Compiled 28 Lines of Code in 0,009 Seconds
echo toggle.dat
process_begin: CreateProcess(NULL, echo toggle.dat, ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden. // GERMAN -> MEANS FILE NOT FOUND
make: *** [toggle.dat] Error 2
rm toggle.dat
C:\propgcc\demos\toggle\pasm_toggle>path
PATH=c:\propgcc\usr\local\propeller\bin;c:\propgcc\bin;

Comments
Starting from the v0_1_9 distribution, a batch file is provided to start a new window.
Please double-click on PropGCC.bat or run it from the command line.
That will give you a new window where you can do work.
The window will already have the path set for you.
I see README_WINDOWS.txt says something different. Sorry about that. Will fix.
-Phil
I thought echo was part of the windows command shell.
I don't see a really good reason to use echo though.
What happens if you comment out $(ECHO) $@ in the Makefile?
@Phil, the dates appear to be from Windows.
-Phil
comment out the echo statements - and now the make is successfull
C:\propgcc\demos\toggle\pasm_toggle>make propeller-elf-gcc -Os -mlmm -mlmm -o toggle.o -c toggle.c bstc -ls -Ox -c -o toggle toggle.spin Brads Spin Tool Compiler v0.15.3 - Copyright 2008,2009 All rights reserved Compiled for i386 Win32 at 08:17:48 on 2009/07/20 Loading Object toggle Program size is 116 longs Compiled 28 Lines of Code in 0,01 Seconds propeller-elf-objcopy -I binary -B propeller -O propeller-elf-gcc toggle.dat to gle_firmware.o rm -rf toggle.dat propeller-elf-gcc -mlmm -o toggle.elf toggle.o toggle_firmware.o C:\propgcc\demos\toggle\pasm_toggle>dir Volume in Laufwerk C: hat keine Bezeichnung. Volumeseriennummer: 5C68-E842 Verzeichnis von C:\propgcc\demos\toggle\pasm_toggle 29.11.2011 08:50 <DIR> . 29.11.2011 08:50 <DIR> .. 29.11.2011 08:48 631 Makefile 25.11.2011 16:55 4.109 toggle.c 29.11.2011 08:50 37.151 toggle.elf 29.11.2011 08:50 4.297 toggle.list 29.11.2011 08:50 3.336 toggle.o 25.11.2011 16:55 5.846 toggle.spin 29.11.2011 08:50 529 toggle_firmware.o 7 Datei(en) 55.899 Bytes 2 Verzeichnis(se), 2.927.259.648 Bytes frei [B]C:\propgcc\demos\toggle\pasm_toggle>echo ECHO ist eingeschaltet (ON).[/B] C:\propgcc\demos\toggle\pasm_toggle>But the echo cmd works too.
However, thanks for the tip;
best regards
Reinhard
Seems to be a very special problem on my pc.
On another machine I have not a problem, also with uncomment echo.
This thread can closed.
best regards,
Reinhard