FreePascal install for Dummies
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    The dummy is me..

    Downloaded the lastest FPC..
    updated mossys:s/network-startup and added my assign, path and setenv commands according to the MorphOS readme.

    I get to the shell, go to fpc's bin directory and type "fpc" and expect something in return since I'm assuming thats the compiler..but nothing comes back. If I double click on Free Pascal IDE, nothing pops up.

    Where is this dummy going wrong?
  • »15.05.15 - 02:12
    Profile Visit Website
  • Jim
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Jim
    Posts: 4977 from 2009/1/28
    From: Delaware, USA
    When you figure this out I'd love to hear the answer.
    Pascal was a favorite of mine in the early 90's.
    "Never attribute to malice what can more readily explained by incompetence"
  • »15.05.15 - 02:16
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    might be my fault.. I installed fpc_20140222_r26832.lha. 3.1.1 is out.. I'll install that and see what happens.


    Edit: didn't fix it. Vanilla 3.7 install with SDK and fpc 3.1.1

    [ Edited by TheMagicM 14.05.2015 - 20:48 ]
  • »15.05.15 - 03:23
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    So do I put 3.1.1 over the 2.7.1 install or is 3.1.1 a standalone self-contained version?
    Does it work? Cant seem to get it working at all.
  • »16.05.15 - 14:58
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Tom01
    Posts: 179 from 2009/9/20
    I compiled muidemo which works.
    Muidemo2 crashes.
  • »12.06.15 - 15:48
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    Quote:

    Tom01 wrote:
    I compiled muidemo which works.
    Muidemo2 crashes.


    no shit? well I cant even get fpc to run. How did you install it?
  • »12.06.15 - 15:55
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Tom01
    Posts: 179 from 2009/9/20
    Simply extracted, assign and path set and started Free Pascal IDE.
  • »12.06.15 - 16:04
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    which assign/path? I'm sure I did the same one..but you post what you did. I'm assuming its the one in the readme.
  • »12.06.15 - 21:13
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Tom01
    Posts: 179 from 2009/9/20
    First, remove your previous installation, then extract the new fpc-archive.

    Then I have this in user-startup:

    ;BEGIN FreePascal
    Assign FPC: WORK2:fpc_20140222_r26832
    Path FPC:bin/powerpc-morphos ADD
    ;END FreePascal

    You certainly have to modify the path in the Assign statement.

    Then copy this to the shell and enter:

    SetEnv SAVE PPC_CONFIG_PATH FPC:bin/powerpc-morphos/
  • »14.06.15 - 14:43
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    Nope..still no go. I revered to the older FPC. Oh well.. If I cant get it working, I'll stick with C since it just works.
  • »15.06.15 - 04:08
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Tom01
    Posts: 179 from 2009/9/20
    That is strange.

    [ Edited by Tom01 15.06.2015 - 15:44 ]
  • »15.06.15 - 15:34
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    Very. It is a virgin install of 3.8. I'm stumped as well.
  • »15.06.15 - 22:02
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Chain-Q
    Posts: 347 from 2003/10/12
    From: 1 AU, EU, DE/HU
    Sorry guys I could not reply to this thread before. As usual, an entirely nonworking FPC would be very strange, but possible.

    I regularly use cross-built FPCs these days, and they work fine. In fact, I think current FPC binaries should work from at least 1.4.x all the way to current MorphOS. Remember: most of the code is shared with the classic Amiga port too... The usual Amiga debugging may help: is there any failure messages in Ramdebug log (LogTool) when you try to start the FPC binary?

    Also, what are you trying to start exactly? "fpc" (the compiler frontend, optional), "FP" (the IDE) or "ppcppc" (the compiler itself).
    [.PegasosII/G4.:.Efika.:.Amiga2000/060.]
    [.Free Pascal Compiler MorphOS Port.]
    [.Hosting AmigaSpirit.hu.]
  • »18.06.15 - 18:15
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    I get nothing.

    Nothing in ram: morphos.log, no output when running ppcppc, nothing when I click on "Free Pascal IDE".

    EDIT: I made a brief video so you can see. Uploading it to youtube, then I'll post the link

    EDIT 2:
    Link to the video..give it a few minutes to publish.

    http://youtu.be/AQTSKv3YR6U

    [ Edited by TheMagicM 18.06.2015 - 17:38 ]
  • »19.06.15 - 00:20
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Chain-Q
    Posts: 347 from 2003/10/12
    From: 1 AU, EU, DE/HU
    Very weird. I've never seen anything like that. Is it the 20140222 snapshot release?

    Edit: Could you post md5sums of ppcppc and fp executables?
    [.PegasosII/G4.:.Efika.:.Amiga2000/060.]
    [.Free Pascal Compiler MorphOS Port.]
    [.Hosting AmigaSpirit.hu.]
  • »19.06.15 - 16:28
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    ppcppc:
    2.7.1, r26832 according to the README.MorphOS
    MD5: 72ea6cf9fa85b73c484ca5374a943867


    fp:
    MD5: 692a91a07c647c4be17a25602ee5ad77
  • »20.06.15 - 01:18
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Chain-Q
    Posts: 347 from 2003/10/12
    From: 1 AU, EU, DE/HU
    Quote:

    TheMagicM wrote:
    ppcppc:
    2.7.1, r26832 according to the README.MorphOS
    MD5: 72ea6cf9fa85b73c484ca5374a943867

    fp:
    MD5: 692a91a07c647c4be17a25602ee5ad77

    Well, the md5sums seems to be correct, but I still cannot reproduce the issue:

    See this screenshot.. I downloaded the r26832 lha from my page into RAM:, extracted it, did nothing else but started ppcppc and fp directly, and it works.

    Just for the record, the screenshot is from my PowerBook, running stock MorphOS 3.8. Without any kind of further debugging possibility, and a way to reproduce your issue, and anything in the log, it's pretty hard to guess what's going on.

    What if you copy ppcppc binary to the RAM:, check the md5sum, and if it matches, you try to execute it?

    Also, in the Task manager, do you see the ppcppc process and/or the fp process doing something or being alive at all?
    [.PegasosII/G4.:.Efika.:.Amiga2000/060.]
    [.Free Pascal Compiler MorphOS Port.]
    [.Hosting AmigaSpirit.hu.]
  • »20.06.15 - 11:08
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    In your screenshot you have output from the IDE, I did get that popup once but thats about it.
    Yes FP and ppcppc is running but says "Frozen" in TaskManager.


    Did the same thing:

    http://s13.postimg.org/96pfzqlg7/shell.png

    [ Edited by TheMagicM 20.06.2015 - 07:31 ]
  • »20.06.15 - 14:20
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Chain-Q
    Posts: 347 from 2003/10/12
    From: 1 AU, EU, DE/HU
    Quote:

    TheMagicM wrote:
    Yes FP and ppcppc is running but says "Frozen" in TaskManager.

    Which means both executables crashed. To my knowledge, MorphOS won't set tasks to Frozen state without saying why it did that in the debug log. Therefore you should have something in the debug log. What hardware are you running on? If you don't see anything in the log, are you sure you have the RAMDEBUG boot argument enabled?

    [ Edited by Chain-Q 20.06.2015 - 15:07 ]
    [.PegasosII/G4.:.Efika.:.Amiga2000/060.]
    [.Free Pascal Compiler MorphOS Port.]
    [.Hosting AmigaSpirit.hu.]
  • »20.06.15 - 15:06
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    How do I enable ramdebug at boot? G5 dual 2.0

    [ Edited by TheMagicM 20.06.2015 - 08:23 ]
  • »20.06.15 - 15:22
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Chain-Q
    Posts: 347 from 2003/10/12
    From: 1 AU, EU, DE/HU
    Quote:

    TheMagicM wrote:
    How do I enable ramdebug at boot? G5 dual 2.0

    It should be enabled by default. However, saying that you have a G5 gave me an idea. It's possible that the current FPC builds include G4-only code (some DCBZ code, expecting 32byte cache lines), which can't work, or possible to malfunction on a G5.

    Can you test this binary:
    http://charlie.amigaspirit.hu/temp/private/ppcppc-test

    This should have the G4-only parts in the runtime library disabled. However, I can't test it, because I only have G4 machines.
    [.PegasosII/G4.:.Efika.:.Amiga2000/060.]
    [.Free Pascal Compiler MorphOS Port.]
    [.Hosting AmigaSpirit.hu.]
  • »20.06.15 - 21:43
    Profile Visit Website
  • Moderator
    Kronos
    Posts: 2258 from 2003/2/24
    No crashlog, just some shell output expected when one starts a compiler without input file.

    PMac G5 2.3GHz last MorphOS3.9b (identical to 3.9release I assume).
  • »20.06.15 - 21:54
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    Quote:

    Chain-Q wrote:


    Can you test this binary:
    http://charlie.amigaspirit.hu/temp/private/ppcppc-test




    yep.. same as Kronos.. this time it looks like it'll work with whatever change you will make.
  • »20.06.15 - 22:10
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Chain-Q
    Posts: 347 from 2003/10/12
    From: 1 AU, EU, DE/HU
    Quote:

    TheMagicM wrote:
    yep.. same as Kronos.. this time it looks like it'll work with whatever change you will make.

    Now, another test Does this work as expected? Like, opens a window and the FP IDE appears? Start it from Ambient or shell, doesn't matter.

    http://charlie.amigaspirit.hu/temp/private/fp

    Screenshot preferred, if it works, when possible.
    [.PegasosII/G4.:.Efika.:.Amiga2000/060.]
    [.Free Pascal Compiler MorphOS Port.]
    [.Hosting AmigaSpirit.hu.]
  • »20.06.15 - 23:48
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    Yep..that worked also! :-)

    EDIT: whoops...taking screenshot now.

    picture here:

    http://s4.postimg.org/bx5o5mly5/Grab.png


    Also.. bottom left hand corner on your screen you have a dock.. what dock is that?

    [ Edited by TheMagicM 20.06.2015 - 19:11 ]
  • »21.06.15 - 02:03
    Profile Visit Website