Among other changes, I saw an EBCDIC conversion compile switch, which piqued my interest.
Latest version 3.2, manual build to replace 3.1.2 package install
My old install notes helped alot. One error at the beginning was solved simply by removing spaces in a subdirectory. Switching from apt-get to apt solved some problems. It appears that mpir, didn’t need to be installed.
Old (before)
bill@bill-MS-7B79:~/MyStuff/COBOL/progs/cob05-2$ cobc --version
cobc (GnuCOBOL) 3.1.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart
Built Sep 14 2021 19:23:38
Packaged Dec 23 2020 12:04:58 UTC
C version "11.2.0"
bill@bill-MS-7B79:~/MyStuff/COBOL/progs/cob05-2$ cobc -x cob05.cob
bill@bill-MS-7B79:~/MyStuff/COBOL/progs/cob05-2$ ./cob05
Program Start!
+05000
bill@bill-MS-7B79:~/MyStuff/COBOL/progs/cob05-2$
bill@bill-MS-7B79:~/Downloads/Computers/Languages/gnuCOBOL/ver3.2/gnucobol-3.2$ sudo make install > log5.txt
[sudo] password for bill:
common.c:94:10: fatal error: gmp.h: No such file or directory
94 | #include <gmp.h>
| ^~~~~~~
compilation terminated.
make[2]: *** [Makefile:614: common.lo] Error 1
make[1]: *** [Makefile:657: install-recursive] Error 1
make: *** [Makefile:966: install] Error 2
bill@bill-MS-7B79:~/Downloads/Computers/Languages/gnuCOBOL/ver3.2/gnucobol-3.2$
Odd, I usually get these errors before the install process.
This fixed the above install problem
apt install libgmp3-dev
New (after)
bill@bill-MS-7B79:~$ cobc --version
cobc (GnuCOBOL) 3.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart
Built Mar 24 2024 15:09:28
Packaged Jul 28 2023 17:02:56 UTC
C version "11.4.0"
bill@bill-MS-7B79:~$