Shop OBEX P1 Docs P2 Docs Learn Events
Building propgcc in debian/squeeze/32bit — Parallax Forums

Building propgcc in debian/squeeze/32bit

yetiyeti Posts: 819
edited 2015-07-24 22:01 in Propeller 1
I just compiled propgcc on debian/squeeze/32bit.
Just one change: I added the path to bstc.linux in loader/Makefile:
ifeq ($(OS),linux)
CFLAGS += -DLINUX
BSTC=../release/bstc.linux

Comments

  • ersmithersmith Posts: 6,099
    edited 2011-12-14 08:33
    Thanks for the report. I'm not sure why bstc isn't being found in the right place, but your solution looks good. Eventually we hope to be using gas and/or other native tools to compile all the PASM code, but we haven't gotten around to porting them all (gas unfortunately has slightly different syntax for a few statements -- porting from Spin to gas is straightforward, but not automated yet).

    Eric
  • yetiyeti Posts: 819
    edited 2011-12-14 08:48
    Theory: The ones building propgcc on own systems sure are no propeller-beginners and so they may have bst.linux somewhere in their $PATH...
    (I renamed my local bstc.linux to bstc-versionnumber to keep access to different versions, so I had no bstc.linux in my $PATH)

    This may cause using a different or an old version of bstc.linux when building propgcc instead of the one in the release dir without noticing it.
  • yetiyeti Posts: 819
    edited 2012-01-05 22:03
    Some demos are expecting bstc.linux somewhere in the PATH too... but bstc.linux never is installed in the build/install process.

    And bstc is not called by the same name everywhere:
    propgcc$ grep -r bstc demos
    demos/toggle/pasm_toggle/Makefile:BSTC=bstc.linux
    demos/common/demo.mk:BSTC=bstc
    demos/common/common.mk:BSTC=bstc
    
  • jazzedjazzed Posts: 11,803
    edited 2012-01-06 10:15
    yeti wrote: »
    Some demos are expecting bstc.linux somewhere in the PATH too... but bstc.linux never is installed in the build/install process.

    And bstc is not called by the same name everywhere:
    propgcc$ grep -r bstc demos
    demos/toggle/pasm_toggle/Makefile:BSTC=bstc.linux
    demos/common/demo.mk:BSTC=bstc
    demos/common/common.mk:BSTC=bstc
    

    All copies of bstc are in propgcc/release. Copy the one you like to your path somewhere and call it bstc.
    I'll add this to the wiki.

    Here's what I get from toggle grep. Make sure your repository is up-to-date.
    steve@debian-vm:~/gcc/propgcc/demos/toggle$ grep -r bstc *
    pasm_toggle/Makefile:BSTC=bstc

    http://code.google.com/p/propgcc/wiki/PropGccDemos has been edited.
  • yetiyeti Posts: 819
    edited 2012-01-06 10:27
    jazzed wrote: »
    All copies of bstc are in propgcc/release. Copy the one you like to your path somewhere and call it bstc.
    I'll add this to the wiki.

    Here's what I get from toggle grep. Make sure your repository is up-to-date.
    steve@debian-vm:~/gcc/propgcc/demos/toggle$ grep -r bstc *
    pasm_toggle/Makefile:BSTC=bstc
    I updated the repository before the build...
    ...but bst.linux looks like a relict of trying to use the one in the release dir directly giving the relative path to it and removing only the path component when giving up that idea...
    Sorry.

    So for now my only remaining diff still is:
    propgcc$ hg diff
    diff -r f47a47b180f1 loader/Makefile
    --- a/loader/Makefile   Thu Jan 05 22:01:22 2012 -0800
    +++ b/loader/Makefile   Fri Jan 06 19:38:20 2012 +0100
    @@ -29,7 +29,7 @@
     
     ifeq ($(OS),linux)
     CFLAGS += -DLINUX
    -BSTC=bstc.linux
    +BSTC=../release/bstc.linux
     EXT=
     OSINT=osint_linux
     LIBS=
    
    ...so no bstc elsewhere in the path is needed at build time.
  • jazzedjazzed Posts: 11,803
    edited 2012-01-06 10:36
    I'm sorry if you took my comments badly.

    My intention was to let you know it is being addressed, and to help others who may face the same issue.
    The problem for demos is now handled in the documentation.

    The issue of having bstc.linux in the build instructions has been addressed since Nov 23 or earlier here: http://code.google.com/p/propgcc/wiki/PropGccBuild

    I see no reason to change the loader/Makefile .

    yeti wrote: »
    Thanks.
    But I know how to help myself.
    The comments dropped here are made in the hope that this will be noticed and fixed in some future release.
    If this is more disturbing than helpfull I'll stop commenting on propgcc.
  • yetiyeti Posts: 819
    edited 2012-01-06 10:47
    English is not my native tounge... sometimes this causes a bit of trouble...
  • jazzedjazzed Posts: 11,803
    edited 2012-01-06 10:49
    yeti wrote: »
    English is not my native tounge... sometimes this causes a bit of trouble...
    Please help improve instructions if possible. Thanks for your effort.
Sign In or Register to comment.