Shop OBEX P1 Docs P2 Docs Learn Events
problem with building pasm_toggle — Parallax Forums

problem with building pasm_toggle

ReinhardReinhard Posts: 489
edited 2011-11-29 09:26 in Propeller 1
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;

Comments

  • jazzedjazzed Posts: 11,803
    edited 2011-11-28 18:02
    Reinhard,

    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 Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-11-28 19:30
    Just a question from the error message: Is the "28.11.2011" format cast in stone? The reason I ask is that it's ambiguous, internationally, when the day number is less than 13. A better format would be "2011.11.28", since it doesn't rely on national month/day vs. day/month convention when those numbers precede the year, and the digits are in order from most-significant to least-significant.

    -Phil
  • jazzedjazzed Posts: 11,803
    edited 2011-11-28 20:17
    Hmm. I misunderstood. Looks like make can't find the echo command.
    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 Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-11-28 20:33
    jazzed wrote:
    the dates appear to be from Windows.
    The format probably depends on regional settings, then. That works, too.

    -Phil
  • ReinhardReinhard Posts: 489
    edited 2011-11-28 23:58
    Hi,

    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
  • ReinhardReinhard Posts: 489
    edited 2011-11-29 09:26
    Hi,

    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
Sign In or Register to comment.