The GnuCOBOL 3.1.2 binaries now include embedded GCC 9.2.0 (versus GCC 6.3.0). GCSORT.EXE is included in the \bin folder. GMPLIB has been updated to 6.2.1. PDCursesMOD has been updated to 4.3.4 and alternate versions of the dll are included:
MSYS2/MinGW 64-bit is just different enough from MSYS/MinGW 32-bit that I don't know how to build 64-bit GnuCOBOL, except for the packages typically used for GnuLinux. Those packages only get updated for official releases, so I will most probably not be able to build a 64-bit GnuCOBOL until there's a final release package for GC 3.2 or 4.0.
There already is a 64-bit MSYS2 GnuCOBOL, but it is GnuCOBOL 3.1.2 (23Dec2020):
As an alternative you can download or clone the package folder with the scripts to your machine and you build it for yourself, in whatever version you like.
Assuming you have a properly installed MSYS2 environment and build tools, you can build any package using the following command: cd ${package-name}
MINGW_ARCH=mingw64 makepkg-mingw -sLf
After that you can install the freshly built package(s) with the following command: pacman -U ${package-name}*.pkg.tar.xz
Then save and exit and finally create and install your package as noted in the MSYS instructions above (you can, of course, also add more architectures or use a different version; but that's the way it should work).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Arnold, this is, as always, a very precious piece of work!
My compliments also for improving it by including the GCSORT and with the GnuCOBOL programmer's guide.
@vcoen: The download mentioned above is the first MinGW binary distribution that includes the current recent version of the Programmer's Guide (one download to get all important pieces).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In addition to the GCSORT and the GnuCOBOL manuals, if there was an integrated debugger in the whole package, as was assumed some time ago at the time of the 2.2 release, it would be the best !
Something like the TP-DEBUGGER or the OCEAN (open Cobol Embedded Animator) project that was never completed. Similar to the Animator of Mcrofocus or also of Realia COBOL.
But this is not for Arnold.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2022-09-04
Did you miss the Debugging sessions in the GnuCOBOL Community Meetings?
For the 64 bit builds Arnold could download and install via pacman -U filename the following in his 64bit builds and ship the additional files: https://cobolworx.com/pages/downloads/mingw-w64-x86_64-cblgdb-4.28-1-any.pkg.tar.zst (note: the 64bit packages should also include the gdb or better gdb-multiarch package to be able to use that).
COBOL source-level debugging including access to COBOL variables using cbl-gdb works like a charm (ok for 90% of the cases only, but that's quite a lot and much more than with TP-DEBUGGER [use that if you want to stick with it or need to use a GnuCOBOL version before 3.1.2 or use a non-gcc build]).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HI, unfortunately I was unable to attend the meeting
Then unfortunately I was told that the session was not recorded.
It would be very useful if someone published, in a post other than this one, some screenshots to get an idea of how it looks and how it works.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First: use it in "plain GDB" (you likely want to use list to see the code, or to be more like the animator use tui enable to get a permanent source window); I've some start pointer (not complete as the docs from above] in [2781eb2aea#aa15/d9a6/b98e/aedf/b2e9].
Edit: I've thought I've posted them before but here are some screenshots - pure GDB, GDB TUI, GDB used embedded in Vim with additional extensions (that was an early version, the current one looks much better :-).
Updated binaries are available for Windows MinGW GnuCOBOL 3.1.2:
https://www.arnoldtrembley.com/GC312-BDB-SP2-rename-7z-to-exe.7z
https://www.arnoldtrembley.com/GC312-VBI-SP2-rename-7z-to-exe.7z
https://www.arnoldtrembley.com/GC312-NODB-SP2-rename-7z-to-exe.7z
The Build Guide has also been updated.
https://www.arnoldtrembley.com/GnuCOBOL-3.2-MinGW-Build-Guide-V1.3.pdf
https://www.arnoldtrembley.com/GnuCOBOL-3.2-MinGW-Build-Guide-V1.3.docx
The GnuCOBOL 3.1.2 binaries now include embedded GCC 9.2.0 (versus GCC 6.3.0). GCSORT.EXE is included in the \bin folder. GMPLIB has been updated to 6.2.1. PDCursesMOD has been updated to 4.3.4 and alternate versions of the dll are included:
08/29/2022 08:46 PM 179,951 pdcurses.dll
08/29/2022 09:11 PM 152,830 pdcurses_vt.dll
08/29/2022 08:46 PM 179,951 pdcurses_wincon.dll
08/29/2022 09:03 PM 197,498 pdcurses_wingui.dll
The "WinCON" version of pdcurses.dll is the default, but by renaming you can try out "WinGUI" or "VT" based versions.
There is a new \docs folder containing GnuCOBOL manuals:
01/19/2022 08:31 AM 1,706,170 GCSORT_Manual.pdf
08/28/2022 08:41 PM 2,066,937 GnuCOBOL 3.2 Programmer's Guide.pdf
08/28/2022 08:42 PM 260,927 GnuCOBOL 3.2 Quick Reference.pdf
08/28/2022 08:42 PM 436,149 GnuCOBOL 3.2 Sample Programs.pdf
Also included is a "STARTHERE.txt" file to help explain how to use "set_env.cmd" to set GnuCOBOL compiler environment variables.
Thanks Arnold, this is much appreciated. The inclusion of all 3 builds for PDCURSESMOD 4.3.4 is a real plus as is the updated 3.2 build guide.
Great work. BIG THANK YOU.
Wow, you have been very busy. Is their a 64bit coming ? No hurry.
MSYS2/MinGW 64-bit is just different enough from MSYS/MinGW 32-bit that I don't know how to build 64-bit GnuCOBOL, except for the packages typically used for GnuLinux. Those packages only get updated for official releases, so I will most probably not be able to build a 64-bit GnuCOBOL until there's a final release package for GC 3.2 or 4.0.
There already is a 64-bit MSYS2 GnuCOBOL, but it is GnuCOBOL 3.1.2 (23Dec2020):
https://www.arnoldtrembley.com/GC312-BDB-M64-rename-7z-to-exe.7z
https://www.arnoldtrembley.com/GnuCOBOL-3.1.2-MSYS2-64-bit-Build-Guide-draft.docx
If anyone has tips on how to build GnuCOBOL from components (instead of release package) in MSYS2, I would love to see them.
I'm also curious as to how GnuCOBOL is built for MacOS, but I am not a Mac user.
Kind regards,
Arnold,
I was able to build the 64 bit version of GNUCOBOL from the most current 3.2-dev source using MSYS2.
I used PDCursesMOD-4.3.4, GMP-6.2.1, Berkeley DB-18.1
I can work with you to create a build guide for this.
it's late and I need to get some sleep.
According to the MSYS2 docs:
As an alternative you can download or clone the package folder with the scripts to your machine and you build it for yourself, in whatever version you like.
Assuming you have a properly installed MSYS2 environment and build tools, you can build any package using the following command:
cd ${package-name} MINGW_ARCH=mingw64 makepkg-mingw -sLf
After that you can install the freshly built package(s) with the following command:
pacman -U ${package-name}*.pkg.tar.xz
so start MSYS2 (not its MinGW shells)
now change as follows (leaving the not mentioned entries as-is:
Then save and exit and finally create and install your package as noted in the MSYS instructions above (you can, of course, also add more architectures or use a different version; but that's the way it should work).
Hi Arnold, this is, as always, a very precious piece of work!
My compliments also for improving it by including the GCSORT and with the GnuCOBOL programmer's guide.
I appreciate it very much since your first release which was born from a post of mine in 2015:
https://sourceforge.net/p/gnucobol/discussion/help/thread/16d4e753/?limit=25#14f0
I also see that it has a lot of downloads and helps all programmers to greatly speed up access to GnuCOBOL and its use.
Again a big thank you!
On 04/09/2022 12:39, Eugenio Di Lorenzo wrote:
??
Vince
Last edit: Simon Sobisch 2022-09-04
@vcoen: The download mentioned above is the first MinGW binary distribution that includes the current recent version of the Programmer's Guide (one download to get all important pieces).
Noted thanks,
V.
In addition to the GCSORT and the GnuCOBOL manuals, if there was an integrated debugger in the whole package, as was assumed some time ago at the time of the 2.2 release, it would be the best !
Something like the TP-DEBUGGER or the OCEAN (open Cobol Embedded Animator) project that was never completed. Similar to the Animator of Mcrofocus or also of Realia COBOL.
But this is not for Arnold.
Did you miss the Debugging sessions in the GnuCOBOL Community Meetings?
For the 64 bit builds Arnold could download and install via
pacman -U filename
the following in his 64bit builds and ship the additional files: https://cobolworx.com/pages/downloads/mingw-w64-x86_64-cblgdb-4.28-1-any.pkg.tar.zst (note: the 64bit packages should also include the gdb or better gdb-multiarch package to be able to use that).COBOL source-level debugging including access to COBOL variables using cbl-gdb works like a charm (ok for 90% of the cases only, but that's quite a lot and much more than with TP-DEBUGGER [use that if you want to stick with it or need to use a GnuCOBOL version before 3.1.2 or use a non-gcc build]).
HI, unfortunately I was unable to attend the meeting
Then unfortunately I was told that the session was not recorded.
It would be very useful if someone published, in a post other than this one, some screenshots to get an idea of how it looks and how it works.
Why not test it and post those screenshots on your own?
I suggest to get the "standalone" version (which is MSYS2 mingw32/64 gnucobol packages + gdb + cbl-gdb) from https://cobolworx.com/pages/windows.html and follow its docs at https://cobolworx.com/pages/cbl-gdb-kb.html how to use it.
First: use it in "plain GDB" (you likely want to use
list
to see the code, or to be more like the animator usetui enable
to get a permanent source window); I've some start pointer (not complete as the docs from above] in [2781eb2aea#aa15/d9a6/b98e/aedf/b2e9].Then possibly try with gvim as noted in [8217ff66de] or with vscode using the cbl-gdb extension - for the later you may want to see [ecc98091da].
Edit: I've thought I've posted them before but here are some screenshots - pure GDB, GDB TUI, GDB used embedded in Vim with additional extensions (that was an early version, the current one looks much better :-).
Related
Discussion: Monthly Meeting Coordinated on Meetup - Input Requested
Discussion: 8217ff66de
Discussion: ecc98091da
Last edit: Simon Sobisch 2022-09-04