#980 Compilation failure

None
closed-duplicate
nobody
Windows (49)
v1.23.1
5
2013-09-16
2013-07-11
Tom Madron
No

I have used Geany for several years, mostly for programming with FBC. I updated from version 0.21 to version 1.23.1. Geany no longer compiled FBC code on Windows 7. This is a problem so a returned to version 21 and all seems well. I also have Linux machines but am hesitant to try upgrading on those machines.

Related

Bugs: #943
Bugs: #980

Discussion

1 2 > >> (Page 1 of 2)
  • Matthew Brush
    Matthew Brush
    2013-07-11

    FBC == FreeBasic Compiler? Folder Background Changer? Full Blood Count? Fernand Braudel Centre? Federal Business Council? Flagstar Bancorp?

    Can you paste the output from Help->Debug Messages when Geany "no longer compiles", it may contain valuable information that would useful to investigate the issue. Also if you could tell the build command(s) you're using and ensuring that you can run the same command from the normal Command Prompt outside of Geany, that would also be helpful.

     
  • Tom Madron
    Tom Madron
    2013-07-13

    FBC == FreeBASIC Compiler.

    Yes, I'll produce the debugging messages, but first I'll have to reinstal Geany 1.23.1.

     
  • Tom Madron
    Tom Madron
    2013-07-13

    Geany 1.23.1:

    11:42:21: Geany INFO : Geany 1.23.1, English_United States.1252
    11:42:21: Geany INFO : GTK 2.16.6, GLib 2.20.5
    11:42:21: Geany INFO : System data dir: C:\Program Files\Geany\data
    11:42:21: Geany INFO : User config dir: C:\Users\tmadron\AppData\Roaming\geany
    11:42:22: Geany INFO : System plugin path: C:\Program Files\Geany\lib
    11:42:22: Geany INFO : Added filetype Cython (55).
    11:42:22: Geany INFO : Added filetype Genie (56).
    11:42:22: Geany INFO : Added filetype Go (57).
    11:42:22: Geany INFO : Added filetype Scala (58).
    11:42:22: Geany INFO : C:\Users\tmadron\basicprg\utility\cls.bas : FreeBasic (UTF-8)
    11:42:34: Geany INFO : build command spawning failed: Invalid argument

    Geany 0.21:

    12:13:16: Geany INFO : Geany 0.21, English_United States.1252
    12:13:16: Geany INFO : GTK 2.16.6, GLib 2.20.5, built-in regex
    12:13:16: Geany INFO : System data dir: C:\Program Files\Geany21\data
    12:13:16: Geany INFO : User config dir: C:\Users\tmadron\AppData\Roaming\geany
    12:13:16: Geany INFO : Added filetype Cython (52).
    12:13:16: Geany INFO : Added filetype Genie (53).
    12:13:16: Geany INFO : Added filetype Scala (54).
    12:13:16: Geany INFO : C:\Users\tmadron\basicprg\utility\cls1.bas : FreeBasic (UTF-8)
    12:13:20: Geany INFO : GetExitCodeProcess failed: The specified image file did not contain a resource section.

    Geany 1.23.1 failed to compile. Geany 0.21 compiled successfully.

    The test program in both runs simply clears the screen;

    REM Clear the terminal screen
    CLS
    END

     
  • Tom Madron
    Tom Madron
    2013-07-13

    I am using FBC version 0.90. I have tested it from the command line with several programs including the test program above. There are no compilation problems on the command line.

     
  • Lex Trotman
    Lex Trotman
    2013-07-14

    What is the compile command in menu->set build commands?

     
  • Lex Trotman
    Lex Trotman
    2013-07-14

    Just to note, there was a change to the way compile commands were run because they were losing long outputs. The command is now run in the system() function with " >temp1 2>temp2" added to the end. I understand that the semantics of system() can change depending on exactly which windows version and which command interpretor you use. The error message:

    11:42:34: Geany INFO : build command spawning failed: Invalid argument

    sounds like it doesn't like the command, possibly the redirections added at the end make it illegal.

     
  • Tom Madron
    Tom Madron
    2013-07-16

    The following is the compile statement in the set build command screen:

    fbc -w all "%f"

    This is identical to what is in version 0.21. There are no other set build command compile statements.

     
  • Tom Madron
    Tom Madron
    2013-07-16

    When I click the compile button the following line appears in the status window:

    fbc -w all "cls2.bas" (in directory: C:\Users\tmadron\basicprg\utility)

    Which is all correct, but the compile never completes and in the status bar the message "Process failed (Invalid argument)" comes up. This happens consistently. I assume that the "Invalid argument" message refers to Geany, not to FBC since the FBC command line is correct. As previously noted there are no additional items appended to the basic FBC command.

     
    Last edit: Tom Madron 2013-07-16
  • Lex Trotman
    Lex Trotman
    2013-07-17

    On 17 July 2013 03:02, Tom Madron tmadron@users.sf.net wrote:

    When I click the compile button the following line appears in the status
    window:

    fbc -w all "cls2.bas" (in directory: C:\Users\tmadron\basicprg\utility)

    (Un)fortunately thats printed before the redirections are added, so they
    will never show.

    Which is all correct, but the compile never completes and in the status
    bar the message
    "Process failed (Invalid argument)" comes up. This happens consistently. I
    assume that the "Invalid argument" message refers to Geany, not to FBC
    since the FBC command line is correct. As previously noted there are no
    additional items appended to the basic FBC command.

    The "invalid argument" is the error code returned from the system()
    function. I presume you use cmd.exe not command.com as your default
    command shell?


    Status: open
    Created: Thu Jul 11, 2013 10:23 PM UTC by Tom Madron
    Last Updated: Tue Jul 16, 2013 04:44 PM UTC
    Owner: nobody

    I have used Geany for several years, mostly for programming with FBC. I
    updated from version 0.21 to version 1.23.1. Geany no longer compiled FBC
    code on Windows 7. This is a problem so a returned to version 21 and all
    seems well. I also have Linux machines but am hesitant to try upgrading on
    those machines.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/geany/bugs/980/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #980

  • Tom Madron
    Tom Madron
    2013-07-17

    Yes, I use cmd.exe as the default command shell. Please note:

    The following is the compile statement in the set build command screen:
    fbc -w all "%f"
    This is identical to what is in version 0.21. There are no other set build command compile statements.

    There are no add-on elements.

     
    Last edit: Tom Madron 2013-07-18
1 2 > >> (Page 1 of 2)