Menu

MSYS2 Update causes GNUCOBOL to work no longer

2023-12-26
2023-12-27
  • Bill Komanetsky

    Bill Komanetsky - 2023-12-26

    Hey!

    If I download MSYS2 (https://www.msys2.org/) to a brand new Windows 11 computer, install it, update it, then install GNUCobol using pacman, cobc, after pressing enter, just comes back with another prompt. No message, no nothing. Here's what I do to recreate the problem:
    1) Download and install MSYS2 from https://www.msys2.org/
    2) Start MSYS2 MSYS
    3) Type pacman -Syu
    4) Type pacman -Su
    5) Type pacman -S mingw-w64-x86_64-gnucobol
    - Not that install works fine and all dependencies are installed
    6) Close MSYS2 MSYS and open MSYS2 MINGW64
    7) Type: cobc
    - All that is displayed is another terminal prompt
    8) If I type cobc --version
    - All that is displayed is another terminal prompt

    How to fix the problem
    1) Using Add/Remove programs, remove MSYS2
    2) Delete the MSYS64 directory from the C: drive
    3) Reinstall MSYS2
    4) Start MSYS2 MSYS and type: pacman -S mingw-w64-x86_64-gnucobol
    - Note that I did zero updates or did I install anything else
    5) Close MSYS2 MSYS, open MSYS2 MINGW64
    6) Type: cobc
    - Get the appropriat configuration file missing issue (good)
    7) Type: cobc --version
    - Get the version (3.2 rc2) displayed just fine

    Note: If I do a pacman -Syu and pacman -Su after this, cobc stops working again

    This is new behavior. I've never had this happen before. Any ideas? Thanks everyone!

     
  • Simon Sobisch

    Simon Sobisch - 2023-12-26

    That is a MSYS2 packaging issue, see description at https://github.com/msys2/MINGW-packages/issues/19556 (rebuild of the package was forced and should fix that, the binaries possibly need some time to be available (another pacman -Syu will then fix it).

     
  • Simon Sobisch

    Simon Sobisch - 2023-12-27

    Rechecked: the rebuilt worked, now works as expected.
    Just in case you didn't knew: To use that within one of MSYS2's environments (MinGW/UCRT/whatever) start with . cobenv.sh, if you want to use that within a cmd window start with cobenv.cmd.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.