For testing the GC 3.2RC2 I needed a big-endian machine, so have gone with the the IBM LinuxOne Community Clou (after renewing, this time only got the minimal free tier [1 instance, 2 cores], but enough to test an s390x build). This is therefore also partially a follow-up to [c4bd93052a], The reason to post it here, although no help is needed is to provide the help on building GnuCOBOL from source.
Here are the build recipes from source.
Ubuntu 22
# Prerequisites
$sudoaptupdate# necessary
$sudoaptupgrade# optional to get newest versions
$sudoaptinstallbuild-essentiallibgmp-devlibdb-devlibncurses-devlibxml2-devlibjson-c-dev
# possibly add GDB, drop xml/curses/json if not needed# GnuCOBOL
$tar-xvfgnucobol-3.2-rc2.tar.gz
$cdgnucobol-3.2-rc2
$mkdirbuild&&cdbuild# because I wanted some environments with different configurations - and an extra build folder is always cleaner
$../configure--enable-hardening
configure:GnuCOBOLConfiguration:
configure:CCgcc
configure:CFLAGS-O2-fstack-protector-strong-pipe-finline-functions-fsigned-char-Wall-Wwrite-strings-Wmissing-prototypes-Wno-format-y2k
configure:LDFLAGS-Wl,-z,relro,-z,now,-O1
configure:LIBCOB_LIBS-lgmp-lxml2-ljson-c-lncursesw-ldb-5.3
configure:COB_CCgcc
configure:COB_CFLAGS-fstack-protector-strong-pipe-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign-O
configure:COB_LDFLAGS-fstack-protector-strong
configure:COB_DEBUG_FLAGS-ggdb3-fasynchronous-unwind-tables
configure:COB_LIBS-L${exec_prefix}/lib-lcob
configure:COB_CONFIG_DIR${datarootdir}/gnucobol/config
configure:COB_COPY_DIR${datarootdir}/gnucobol/copy
configure:COB_LIBRARY_PATH${exec_prefix}/lib/gnucobol
configure:COB_OBJECT_EXTo
configure:COB_MODULE_EXTso
configure:COB_EXE_EXT
configure:COB_SHARED_OPT-shared
configure:COB_PIC_FLAGS-fPIC-DPIC
configure:COB_EXPORT_DYN-Wl,--export-dynamic
configure:COB_STRIP_CMDstrip--strip-unneeded
configure:Dynamicloading:System
configure:Usegettextforinternationalmessages:yes
configure:Usefcntlforfilelocking:yes
configure:Usemathmultipleprecisionlibrary:gmp
configure:UsecurseslibraryforscreenI/O:ncursesw
configure:UseBerkeleyDBforINDEXEDI/O:yes
configure:UsedforXMLI/O:libxml2
configure:UsedforJSONI/O:json-c
$make-j3
# no compiler warnings
$make-j2checkall
# passes all of NIST, testsuite: 741 742 850 1097 1098 1161 failed ("exotics")
$./pre-inst-envcobc--info
cobc(GnuCOBOL)3.2-dev.0
Copyright(C)2023FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltFeb09202318:58:54
PackagedFeb02202310:49:43UTC
Cversion"11.3.0"
buildinformation
buildenvironment:s390x-ibm-linux-gnu
CC:gcc
Cversion:"11.3.0"
CPPFLAGS:
CFLAGS:-O0-ggdb3-fasynchronous-unwind-tables-pipe
-fsigned-char-Wall-Wwrite-strings
-Wmissing-prototypes-Wno-format-y2k
LD:/usr/bin/ld-melf64_s390
LDFLAGS:-Wl,-z,relro,-z,now,-O1
GnuCOBOLinformation
COB_CC:gcc
COB_CFLAGS:-pipe-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign
env:COB_CFLAGS:-I/home/linux1/gnucobol-3.2-dev/build_debug/..
-pipe-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign
COB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tables
COB_LDFLAGS:
env:COB_LDFLAGS:
COB_LIBS:-L/usr/local/lib-lcob
env:COB_LIBS:-L/home/linux1/gnucobol-3.2-dev/build_debug/libcob/.libs
-L/usr/local/lib-lcob
COB_CONFIG_DIR:/usr/local/share/gnucobol/config
env:COB_CONFIG_DIR:/home/linux1/gnucobol-3.2-dev/build_debug/../config
COB_COPY_DIR:/usr/local/share/gnucobol/copy
env:COB_COPY_DIR:/home/linux1/gnucobol-3.2-dev/build_debug/../copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:yes
BINARY-C-LONG:8bytes
endianness:big-endian
nativeEBCDIC:no
extendedscreenI/O:ncursesw
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:BDB
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:json-c
RHEL7
# Prerequisites, note: no "build-essentials", json-c is outdated, so used local cJSON later
sudoyuminstallgccmakegmp-devellibxml2-develncurses-devellibdb-devel
# possibly add GDB and for "nicer" debugging also vim (not installed by default) or emacs, drop xml/curses if not needed# GnuCOBOL
$tar-xvfgnucobol-3.2-rc2.tar.gz
$cdgnucobol-3.2-rc2
$mkdirbuild&&cdbuild# because I wanted some environments with different configurations - and an extra build folder is always cleaner
$# cJSON now
$mkdirlibcob
$curlhttps://raw.githubusercontent.com/DaveGamble/cJSON/master/cJSON.h-olibcob/cJSON.h
$curlhttps://raw.githubusercontent.com/DaveGamble/cJSON/master/cJSON.c-olibcob/cJSON.c
$../configure--enable-hardening
configure:GnuCOBOLConfiguration:
configure:CCgcc
configure:CFLAGS-O2-fstack-protector-strong-pipe-finline-functions-fsigned-char-Wall-Wwrite-strings-Wmissing-prototypes-Wno-format-y2k
configure:LDFLAGS-Wl,-z,relro,-z,now,-O1
configure:LIBCOB_LIBS-lgmp-lxml2-lncursesw-ldb-5.3-ldl
configure:COB_CCgcc
configure:COB_CFLAGS-fstack-protector-strong-pipe-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign-O
configure:COB_LDFLAGS-fstack-protector-strong
configure:COB_DEBUG_FLAGS-ggdb3-fasynchronous-unwind-tables
configure:COB_LIBS-L${exec_prefix}/lib-lcob
configure:COB_CONFIG_DIR${datarootdir}/gnucobol/config
configure:COB_COPY_DIR${datarootdir}/gnucobol/copy
configure:COB_LIBRARY_PATH${exec_prefix}/lib/gnucobol
configure:COB_OBJECT_EXTo
configure:COB_MODULE_EXTso
configure:COB_EXE_EXT
configure:COB_SHARED_OPT-shared
configure:COB_PIC_FLAGS-fPIC-DPIC
configure:COB_EXPORT_DYN-Wl,--export-dynamic
configure:COB_STRIP_CMDstrip--strip-unneeded
configure:Dynamicloading:System
configure:Usegettextforinternationalmessages:yes
configure:Usefcntlforfilelocking:yes
configure:Usemathmultipleprecisionlibrary:gmp
configure:UsecurseslibraryforscreenI/O:ncursesw
configure:UseBerkeleyDBforINDEXEDI/O:yes
configure:UsedforXMLI/O:libxml2
configure:UsedforJSONI/O:local
$make-j3
# one strange compiler warning for termio (pretty_display_numeric) -Wmissing-breaces# but that's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
$make-j2checkall
# as with Ubuntu: passes all of NIST, testsuite: 741 742 850 1097 1098 1161 failed ("exotics")
$LANG=C./pre-inst-envcobc--info
cobc(GnuCOBOL)3.2-dev.0
Copyright(C)2023FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltFeb09202314:49:04
PackagedFeb02202310:49:43UTC
Cversion"4.8.5 20150623 (Red Hat 4.8.5-44)"
buildinformation
buildenvironment:s390x-ibm-linux-gnu
CC:gcc
Cversion:"4.8.5 20150623 (Red Hat 4.8.5-44)"
CPPFLAGS:
CFLAGS:-O0-ggdb3-fasynchronous-unwind-tables-pipe
-fsigned-char-Wall-Wwrite-strings
-Wmissing-prototypes-Wno-format-y2k
LD:/usr/bin/ld-melf64_s390
LDFLAGS:-Wl,-z,relro,-z,now,-O1
GnuCOBOLinformation
COB_CC:gcc
COB_CFLAGS:-pipe-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign
env:COB_CFLAGS:-I/home/linux1/gnucobol-3.2-dev/build_dbg/..
-pipe-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign
COB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tables
COB_LDFLAGS:
env:COB_LDFLAGS:
COB_LIBS:-L/usr/local/lib-lcob
env:COB_LIBS:-L/home/linux1/gnucobol-3.2-dev/build_dbg/libcob/.libs
-L/usr/local/lib-lcob
COB_CONFIG_DIR:/usr/local/share/gnucobol/config
env:COB_CONFIG_DIR:/home/linux1/gnucobol-3.2-dev/build_dbg/../config
COB_COPY_DIR:/usr/local/share/gnucobol/copy
env:COB_COPY_DIR:/home/linux1/gnucobol-3.2-dev/build_dbg/../copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:yes
BINARY-C-LONG:8bytes
endianness:big-endian
nativeEBCDIC:no
extendedscreenI/O:ncursesw
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:BDB
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:cjson
# version output part only:
$./pre-inst-envcobcrun--verbose--info
indexedfilehandler:BDB,version5.3.21
mathematicallibrary:GMP,version6.0.0
XMLlibrary:libxml2,version2.9.1
JSONlibrary:cJSON,version1.7.15
extendedscreenI/O:ncursesw,version5.9.20130511(CHTYPE=64,WIDE=1)xtermwith256colors
mousesupport:yes
RHEL8
# Prerequisites
sudodnfinstallgccmakegmp-develncurses-devellibdb-devellibxml2-develjson-c-devel
# possibly add GDB and for "nicer" debugging also vim (not installed by default) or emacs, drop xml/curses/json if not needed# GnuCOBOL
$tar-xvfgnucobol-3.2-rc2.tar.gz
$cdgnucobol-3.2-rc2
$mkdirbuild&&cdbuild# because I wanted some environments with different configurations - and an extra build folder is always cleaner
configure:GnuCOBOLConfiguration:
configure:CCgcc
configure:CFLAGS-O2-fstack-protector-strong-pipe-finline-functions-fsigned-char-Wall-Wwrite-strings-Wmissing-prototypes-Wno-format-y2k
configure:LDFLAGS-Wl,-z,relro,-z,now,-O1
configure:LIBCOB_LIBS-lgmp-lxml2-ljson-c-lncursesw-ldb-5.3-ldl
configure:COB_CCgcc
configure:COB_CFLAGS-fstack-protector-strong-pipe-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign-O
configure:COB_LDFLAGS-fstack-protector-strong
configure:COB_DEBUG_FLAGS-ggdb3-fasynchronous-unwind-tables
configure:COB_LIBS-L${exec_prefix}/lib-lcob
configure:COB_CONFIG_DIR${datarootdir}/gnucobol/config
configure:COB_COPY_DIR${datarootdir}/gnucobol/copy
configure:COB_LIBRARY_PATH${exec_prefix}/lib/gnucobol
configure:COB_OBJECT_EXTo
configure:COB_MODULE_EXTso
configure:COB_EXE_EXT
configure:COB_SHARED_OPT-shared
configure:COB_PIC_FLAGS-fPIC-DPIC
configure:COB_EXPORT_DYN-Wl,--export-dynamic
configure:COB_STRIP_CMDstrip--strip-unneeded
configure:Dynamicloading:System
configure:Usegettextforinternationalmessages:yes
configure:Usefcntlforfilelocking:yes
configure:Usemathmultipleprecisionlibrary:gmp
configure:UsecurseslibraryforscreenI/O:ncursesw
configure:UseBerkeleyDBforINDEXEDI/O:yes
configure:UsedforXMLI/O:libxml2
configure:UsedforJSONI/O:json-c
$make-j3
# two times the same warning (false-positive) in intrinsic.c (cob_intr_integer_of_formatted_date) [-Wformat-truncation]
$make-j2checkall
# as with Ubuntu: passes all of NIST, testsuite: 741 742 850 1097 1098 1161 failed ("exotics")
$LANG=C./pre-inst-envcobc--info
cobc(GnuCOBOL)3.2-dev.0
Copyright(C)2023FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltFeb09202315:45:32
PackagedFeb02202310:49:43UTC
Cversion"8.5.0 20210514 (Red Hat 8.5.0-16)"
buildinformation
buildenvironment:s390x-ibm-linux-gnu
CC:gcc
Cversion:"8.5.0 20210514 (Red Hat 8.5.0-16)"
CPPFLAGS:-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2
CFLAGS:-O2-fstack-protector-strong-pipe
-finline-functions-fsigned-char-Wall
-Wwrite-strings-Wmissing-prototypes
-Wno-format-y2k
LD:/usr/bin/ld-melf64_s390
LDFLAGS:-Wl,-z,relro,-z,now,-O1
GnuCOBOLinformation
COB_CC:gcc
COB_CFLAGS:-fstack-protector-strong-pipe
-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign-O
env:COB_CFLAGS:-I/home/linux1/gnucobol-3.2-dev/build/..
-fstack-protector-strong-pipe
-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign-O
COB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tables
COB_LDFLAGS:-fstack-protector-strong
env:COB_LDFLAGS:-fstack-protector-strong
COB_LIBS:-L/usr/local/lib-lcob
env:COB_LIBS:-L/home/linux1/gnucobol-3.2-dev/build/libcob/.libs
-L/usr/local/lib-lcob
COB_CONFIG_DIR:/usr/local/share/gnucobol/config
env:COB_CONFIG_DIR:/home/linux1/gnucobol-3.2-dev/build/../config
COB_COPY_DIR:/usr/local/share/gnucobol/copy
env:COB_COPY_DIR:/home/linux1/gnucobol-3.2-dev/build/../copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:yes
BINARY-C-LONG:8bytes
endianness:big-endian
nativeEBCDIC:no
extendedscreenI/O:ncursesw
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:BDB
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:json-c
# version output part only:
$./pre-inst-envcobcrun--verbose--info
indexedfilehandler:BDB,version5.3.28
mathematicallibrary:GMP,version6.1.2
XMLlibrary:libxml2,version2.9.7
JSONlibrary:json-c,version0.13.1
extendedscreenI/O:ncursesw,version6.1.20180224(CHTYPE=32,WIDE=1)xtermwith256colors
mousesupport:yes
SLES 15
# Just showcasing the nice package that's available already
$sudozypperinstallgnu-cobol
$LANG=Ccobc--info
cobc(GnuCOBOL)3.1.2.0
Copyright(C)2020FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltDec23202012:00:00
PackagedDec23202012:04:58UTC
Cversion"7.5.0"
buildinformation
buildenvironment:s390x-ibm-linux-gnu
CC:gcc
Cversion:"7.5.0"
CPPFLAGS:-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2
CFLAGS:-fmessage-length=0-grecord-gcc-switches-O2
-Wall-D_FORTIFY_SOURCE=2-fstack-protector-strong-funwind-tables
-fasynchronous-unwind-tables
-fstack-clash-protection-g
-fstack-protector-strong-pipe
-finline-functions-fsigned-char-Wall
-Wwrite-strings-Wmissing-prototypes
-Wno-format-y2k
LD:/usr/s390x-suse-linux/bin/ld-melf64_s390
LDFLAGS:-Wl,-z,relro,-z,now,-O1
GnuCOBOLinformation
COB_CC:gcc
COB_CFLAGS:-fmessage-length=0-grecord-gcc-switches
-Wall-D_FORTIFY_SOURCE=2-fstack-protector-strong
-fstack-clash-protection
-fstack-protector-strong-pipe
-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/include-Wno-unused-fsigned-char
-Wno-pointer-sign-O
COB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tables
COB_LDFLAGS:-fstack-protector-strong
COB_LIBS:-L/usr/lib64-lcob-lm
COB_CONFIG_DIR:/usr/share/gnucobol/config
COB_COPY_DIR:/usr/share/gnucobol/copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:yes
BINARY-C-LONG:8bytes
endianness:big-endian
nativeEBCDIC:no
extendedscreenI/O:ncursesw
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:BDB
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:json-c
# from: LANG=C cobcrun --verbose --info
indexedfilehandler:BDB,version4.8.30
mathematicallibrary:GMP,version6.1.2
XMLlibrary:libxml2,version2.9.12
JSONlibrary:json-c,version0.13.0
extendedscreenI/O:ncursesw,version6.1.20180317(CHTYPE=32,WIDE=1)
mousesupport:yes
# Now building from scratch - Prerequisites
$sudozypperinstallmakegccgmp-devellibjson-c-develncurses-devellibxml2-devellibdb-4_8-devel
# possibly add GDB (vim is pre-installed), drop xml/curses/json if not needed# GnuCOBOL
$tar-xvfgnucobol-3.2-rc2.tar.gz
$cdgnucobol-3.2-rc2
$mkdirbuild&&cdbuild# because I wanted some environments with different configurations - and an extra build folder is always cleaner
$../configure--enable-hardening
configure:GnuCOBOLConfiguration:
configure:CCgcc
configure:CFLAGS-O2-fstack-protector-strong-pipe-finline-functions-fsigned-char-Wall-Wwrite-strings-Wmissing-prototypes-Wno-format-y2k
configure:LDFLAGS-Wl,-z,relro,-z,now,-O1
configure:LIBCOB_LIBS-lgmp-lxml2-ljson-c-lncursesw-ldb-5.3
configure:COB_CCgcc
configure:COB_CFLAGS-fstack-protector-strong-pipe-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign-O
configure:COB_LDFLAGS-fstack-protector-strong
configure:COB_DEBUG_FLAGS-ggdb3-fasynchronous-unwind-tables
configure:COB_LIBS-L${exec_prefix}/lib-lcob
configure:COB_CONFIG_DIR${datarootdir}/gnucobol/config
configure:COB_COPY_DIR${datarootdir}/gnucobol/copy
configure:COB_LIBRARY_PATH${exec_prefix}/lib/gnucobol
configure:COB_OBJECT_EXTo
configure:COB_MODULE_EXTso
configure:COB_EXE_EXT
configure:COB_SHARED_OPT-shared
configure:COB_PIC_FLAGS-fPIC-DPIC
configure:COB_EXPORT_DYN-Wl,--export-dynamic
configure:COB_STRIP_CMDstrip--strip-unneeded
configure:Dynamicloading:System
configure:Usegettextforinternationalmessages:yes
configure:Usefcntlforfilelocking:yes
configure:Usemathmultipleprecisionlibrary:gmp
configure:UsecurseslibraryforscreenI/O:ncursesw
configure:UseBerkeleyDBforINDEXEDI/O:yes
configure:UsedforXMLI/O:libxml2
configure:UsedforJSONI/O:json-c
$make-j3
# no compiler warnings
$make-j2checkall
# passes all of NIST, testsuite: 741 742 850 1097 1098 1161 failed ("exotics")
$./pre-inst-envcobc--info
cobc(GnuCOBOL)3.2-dev.0
Copyright(C)2023FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltFeb09202318:58:54
PackagedFeb02202310:49:43UTC
Cversion"11.3.0"
buildinformation
buildenvironment:s390x-ibm-linux-gnu
CC:gcc
Cversion:"11.3.0"
CPPFLAGS:
CFLAGS:-O0-ggdb3-fasynchronous-unwind-tables-pipe
-fsigned-char-Wall-Wwrite-strings
-Wmissing-prototypes-Wno-format-y2k
LD:/usr/bin/ld-melf64_s390
LDFLAGS:-Wl,-z,relro,-z,now,-O1
GnuCOBOLinformation
COB_CC:gcc
COB_CFLAGS:-pipe-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign
env:COB_CFLAGS:-I/home/linux1/gnucobol-3.2-dev/build_debug/..
-pipe-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign
COB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tables
COB_LDFLAGS:
env:COB_LDFLAGS:
COB_LIBS:-L/usr/local/lib-lcob
env:COB_LIBS:-L/home/linux1/gnucobol-3.2-dev/build_debug/libcob/.libs
-L/usr/local/lib-lcob
COB_CONFIG_DIR:/usr/local/share/gnucobol/config
env:COB_CONFIG_DIR:/home/linux1/gnucobol-3.2-dev/build_debug/../config
COB_COPY_DIR:/usr/local/share/gnucobol/copy
env:COB_COPY_DIR:/home/linux1/gnucobol-3.2-dev/build_debug/../copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:yes
BINARY-C-LONG:8bytes
endianness:big-endian
nativeEBCDIC:no
extendedscreenI/O:ncursesw
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:BDB
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:json-c
Solaris (sparc, 32 + 64bit)
... another big-endian machine.
This environment already had GnuCOBOL installed from source once, so no listing for the prerequisites here
$gzip-dtar-xvfgnucobol-3.2-rc2.tar.gz
$tar-xvfgnucobol-3.2-rc2.tar
$cdgnucobol-3.2-rc2
$mkdirbuild&&cdbuild# because we're doing two environments - and an extra build folder is always cleaner
$../configure
configure:GnuCOBOLConfiguration:
configure:CCgcc
configure:CFLAGS-O2-pipe
configure:LDFLAGS
configure:LIBCOB_LIBS-lgmp-lxml2-ljson-c-lncurses-ldb-5.3
configure:COB_CCgcc
configure:COB_CFLAGS-pipe-I/usr/include/gmp-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign
configure:COB_LDFLAGS
configure:COB_DEBUG_FLAGS-ggdb3-fasynchronous-unwind-tables
configure:COB_LIBS-L${exec_prefix}/lib-lcob
configure:COB_CONFIG_DIR${datarootdir}/gnucobol/config
configure:COB_COPY_DIR${datarootdir}/gnucobol/copy
configure:COB_LIBRARY_PATH${exec_prefix}/lib/gnucobol
configure:COB_OBJECT_EXTo
configure:COB_MODULE_EXTso
configure:COB_EXE_EXT
configure:COB_SHARED_OPT-shared
configure:COB_PIC_FLAGS-fPIC-DPIC
configure:COB_EXPORT_DYN
configure:Dynamicloading:System
configure:Usegettextforinternationalmessages:yes
configure:Usefcntlforfilelocking:yes
configure:Usemathmultipleprecisionlibrary:gmp
configure:UsecurseslibraryforscreenI/O:ncurses
configure:UseBerkeleyDBforINDEXEDI/O:yes
configure:UsedforXMLI/O:libxml2
configure:UsedforJSONI/O:json-c
$make# this isn't GNU make# one warning for intrinsic.c (cob_intr_random) -Wpointer-to-int-cast, but that's "ok", we just use it as part of a random number
$makecheck
# testsuite: 850 1161 failed
$maketest(originallyraisedanerrorwiththedownload,canbeworkedaroundwithGNUmake(seebelow),butIwantedtousethesystemmakesoeditedtests/cobol85/MakefileandsetCURL_FLAG=kthere)# all of NIST pass
$./pre-inst-envcobc--info
cobc(GnuCOBOL)3.2-dev.0
Copyright(C)2023FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltFeb09202323:48:55
PackagedFeb02202310:49:43UTC
Cversion"4.8.2"
buildinformation
buildenvironment:sparc-sun-solaris2.11
CC:gcc
Cversion:"4.8.2"
CPPFLAGS:-I/usr/include/gmp
CFLAGS:-O2-pipe
LD:/usr/bin/ld
LDFLAGS:
GnuCOBOLinformation
COB_CC:gcc
COB_CFLAGS:-pipe-I/usr/include/gmp-I/usr/local/include
-Wno-unused-fsigned-char-Wno-pointer-sign
env:COB_CFLAGS:-I/tmp/gnucobol-3.2-dev/build/..-pipe
-I/usr/include/gmp-I/usr/local/include
-Wno-unused-fsigned-char-Wno-pointer-sign
COB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tables
COB_LDFLAGS:
env:COB_LDFLAGS:
COB_LIBS:-L/usr/local/lib-lcob
env:COB_LIBS:-L/tmp/gnucobol-3.2-dev/build/libcob/.libs
-L/usr/local/lib-lcob
COB_CONFIG_DIR:/usr/local/share/gnucobol/config
env:COB_CONFIG_DIR:/tmp/gnucobol-3.2-dev/build/../config
COB_COPY_DIR:/usr/local/share/gnucobol/copy
env:COB_COPY_DIR:/tmp/gnucobol-3.2-dev/build/../copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:no
BINARY-C-LONG:4bytes
endianness:big-endian
nativeEBCDIC:no
extendedscreenI/O:ncurses
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:BDB
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:json-c
$./pre-inst-envcobcrun--verbose--info
indexedfilehandler:BDB,version5.3.21
mathematicallibrary:GMP,version4.3.2
XMLlibrary:libxml2,version2.9.4
JSONlibrary:json-c,version0.12.0
extendedscreenI/O:ncurses,version5.7.20081102(CHTYPE=32,WIDE=0)decvt100(w/advancedvideo)
mousesupport:unknown
# ... and now...
$cd..
$mkdirbuild64
$../configureCC="gcc -m64"--libdir=/usr/local/lib/sparcv9
configure:GnuCOBOLConfiguration:
configure:CCgcc-m64
configure:CFLAGS-O2-pipe
configure:LDFLAGS
configure:LIBCOB_LIBS-lgmp-lxml2-ljson-c-lncurses-ldb-5.3
configure:COB_CCgcc-m64
configure:COB_CFLAGS-pipe-I/usr/include/gmp-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign
configure:COB_LDFLAGS
configure:COB_DEBUG_FLAGS-ggdb3-fasynchronous-unwind-tables
configure:COB_LIBS-L/usr/local/lib/sparcv9-lcob
configure:COB_CONFIG_DIR${datarootdir}/gnucobol/config
configure:COB_COPY_DIR${datarootdir}/gnucobol/copy
configure:COB_LIBRARY_PATH/usr/local/lib/sparcv9/gnucobol
configure:COB_OBJECT_EXTo
configure:COB_MODULE_EXTso
configure:COB_EXE_EXT
configure:COB_SHARED_OPT-shared
configure:COB_PIC_FLAGS-fPIC-DPIC
configure:COB_EXPORT_DYN
configure:Dynamicloading:System
configure:Usegettextforinternationalmessages:yes
configure:Usefcntlforfilelocking:yes
configure:Usemathmultipleprecisionlibrary:gmp
configure:UsecurseslibraryforscreenI/O:ncurses
configure:UseBerkeleyDBforINDEXEDI/O:yes
configure:UsedforXMLI/O:libxml2
configure:UsedforJSONI/O:json-c
$make# no warnings
$makecheck
# testsuite: 741 742 850 1097 1098 1161 failed
$gmake-Ctests/cobol85/newcob.valCURL_FLAGS=-k# needs an updated gmake...
$gmaketest-j5# the system has nothing to do on its 64 cores and we do a late-night build, so use multiple cores - if we have an updated gmake# all of NIST pass
$./pre-inst-envcobc--info
cobc(GnuCOBOL)3.2-dev.0
Copyright(C)2023FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltFeb09202323:54:04
PackagedFeb02202310:49:43UTC
Cversion"4.8.2"
buildinformation
buildenvironment:sparc-sun-solaris2.11
CC:gcc-m64
Cversion:"4.8.2"
CPPFLAGS:-I/usr/include/gmp
CFLAGS:-O2-pipe
LD:/usr/bin/ld-64
LDFLAGS:
GnuCOBOLinformation
COB_CC:gcc-m64
COB_CFLAGS:-pipe-I/usr/include/gmp-I/usr/local/include
-Wno-unused-fsigned-char-Wno-pointer-sign
env:COB_CFLAGS:-I/tmp/gnucobol-3.2-dev/build64/..-pipe
-I/usr/include/gmp-I/usr/local/include
-Wno-unused-fsigned-char-Wno-pointer-sign
COB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tables
COB_LDFLAGS:
env:COB_LDFLAGS:
COB_LIBS:-L/usr/local/lib/sparcv9-lcob
env:COB_LIBS:-L/tmp/gnucobol-3.2-dev/build64/libcob/.libs
-L/usr/local/lib/sparcv9-lcob
COB_CONFIG_DIR:/usr/local/share/gnucobol/config
env:COB_CONFIG_DIR:/tmp/gnucobol-3.2-dev/build64/../config
COB_COPY_DIR:/usr/local/share/gnucobol/copy
env:COB_COPY_DIR:/tmp/gnucobol-3.2-dev/build64/../copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:yes
BINARY-C-LONG:8bytes
endianness:big-endian
nativeEBCDIC:no
extendedscreenI/O:ncurses
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:BDB
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:json-c
# ... and now "Solaris Native"
$cd..
$mkdirbuild_sol12_2
exportPATH=/opt/solstudio12.2/bin:$PATH
$../configure--without-db--enable-debugCC=ccMAKE=dmakeGMP_CFLAGS="-I/opt/csw/include"GMP_LIBS="-L/opt/csw/lib -lgmp"JSON_C_LIBS="-L/opt/csw/lib -ljson-c"LDFLAGS="-R/opt/csw/lib"
configure:GnuCOBOLConfiguration:
configure:CCcc
configure:CFLAGS-g-xstrconst
configure:LDFLAGS-R/opt/csw/lib
configure:LIBCOB_LIBS-L/opt/csw/lib-lgmp-lxml2-lpthread-lz-lm-lsocket-lnsl-L/opt/csw/lib-ljson-c-lrt-lcurses
configure:COB_CCcc
configure:COB_CFLAGS-g-I/opt/csw/include-I/usr/local/include-xstrconst
configure:COB_LDFLAGS-R/opt/csw/lib
configure:COB_DEBUG_FLAGS-g
configure:COB_LIBS-L${exec_prefix}/lib-lcob
configure:COB_CONFIG_DIR${datarootdir}/gnucobol/config
configure:COB_COPY_DIR${datarootdir}/gnucobol/copy
configure:COB_LIBRARY_PATH${exec_prefix}/lib/gnucobol
configure:COB_OBJECT_EXTo
configure:COB_MODULE_EXTso
configure:COB_EXE_EXT
configure:COB_SHARED_OPT-G
configure:COB_PIC_FLAGS-KPIC-DPIC
configure:COB_EXPORT_DYN
configure:Dynamicloading:System
configure:Usegettextforinternationalmessages:no
configure:Usefcntlforfilelocking:yes
configure:Usemathmultipleprecisionlibrary:gmp
configure:UsecurseslibraryforscreenI/O:curses
configure:INDEXEDI/O(nohandlerconfigured):NO
configure:UsedforXMLI/O:libxml2
configure:UsedforJSONI/O:json-c
$dmake-j4#"../../libcob/screenio.c", line 947: warning: argument #2 is incompatible with prototype:# prototype: pointer to char : "/usr/include/curses.h", line 401# argument : pointer to const char
$cdtests&&makecheck-localTESTSUITEFLAGS="--jobs=4"# did not work with dmake# testsuite: 594 703 704 763 850 1098 1161 failed# 594 is "missing ename" - fixed with r5003# 703 + 704 are signed char warnings fixed with r5004; 736 is similar but called from COBOL, leaving as is for now# Makefile in NIST Modules raise an error in the Makefile with all "dmake" on this system, so done half-manual
$bash
$cdtests/cobol85
$.../atconfig&&.../atlocal
$dmakemodules# no multiple jobs as that breaks
$rm-rfDB# otherwise DBNOIX
$formodin$(ls-d[A-Z]*/.);dopushd$mod&&(dmaketest-local||echofailed)&&popd;done
$formodin$(ls-d[A-Z]*/.);dopushd$mod&&(dmakediff||echofailed)&&popd;done
$dmakediff# no NIST failures
$./pre-inst-envcobc--info
cobc(GnuCOBOL)3.2-dev.0
Copyright(C)2023FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltFeb09202323:54:04
PackagedFeb02202310:49:43UTC
Cversion(SunC)0x5110
buildinformation
buildenvironment:sparc-sun-solaris2.10
CC:cc
Cversion:(SunC)0x5110
CPPFLAGS:-I/opt/csw/include
CFLAGS:-g-xstrconst
LD:/usr/ccs/bin/ld
LDFLAGS:-R/opt/csw/lib
GnuCOBOLinformation
COB_CC:cc
COB_CFLAGS:-g-I/opt/csw/include-I/usr/local/include
-xstrconst
env:COB_CFLAGS:-I/home/cf-mensch/gnucobol-3.2-rc2/build_ss/..
-g-I/opt/csw/include-I/usr/local/include
-xstrconst
COB_DEBUG_FLAGS:-g
COB_LDFLAGS:-R/opt/csw/lib
env:COB_LDFLAGS:-R/opt/csw/lib
COB_LIBS:-L/usr/local/lib-lcob
env:COB_LIBS:-L/home/cf-mensch/gnucobol-3.2-rc2/build_ss/libcob/.libs
-L/usr/local/lib-lcob
COB_CONFIG_DIR:/usr/local/share/gnucobol/config
env:COB_CONFIG_DIR:/home/cf-mensch/gnucobol-3.2-rc2/build_ss/../config
COB_COPY_DIR:/usr/local/share/gnucobol/copy
env:COB_COPY_DIR:/home/cf-mensch/gnucobol-3.2-rc2/build_ss/../copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:no
BINARY-C-LONG:4bytes
endianness:big-endian
nativeEBCDIC:no
extendedscreenI/O:curses
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:disabled
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:json-c
$./pre-inst-envcobcrun--verbose--info
mathematicallibrary:GMP,version6.1.2
XMLlibrary:libxml2,version2.6.23
JSONlibrary:json-c,version0.12.99
extendedscreenI/O:curses(CHTYPE=32)xtermterminalemulator
mousesupport:disabled
AIX on PowerPC
... another big-endian machine.
This environment already had GnuCOBOL installed from source once,
with previously having installed GMP to /opt/gnucobol and no BDB,
so no listing for the prerequisites here.
$unzipgnucobol-3.2-rc2.tar.gz
$tar-xvfgnucobol-3.2-rc2.tar# on-the-fly with decompress did not work
$cdgnucobol-3.2-rc2
$mkdirbuild&&cdbuild# originally I wanted to do 32 and 64 bit environment, but I only had 64bit GMP there
$../configureCC="gcc -maix64"PKG_CONFIG_PATH=/opt/gnucobol/lib/pkgconfig--without-db
configure:GnuCOBOLConfiguration:
configure:CCgcc-maix64
configure:CFLAGS-O2-pipe
configure:LDFLAGS
configure:LIBCOB_LIBS-L/opt/gnucobol/lib-lgmp-L/opt/freeware/lib-lxml2-lcurses-lintl
configure:PROGRAMS_LIBS-lintl
configure:COB_CCgcc-maix64
configure:COB_CFLAGS-pipe-I/opt/gnucobol/include-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign
configure:COB_LDFLAGS
configure:COB_DEBUG_FLAGS-ggdb3-fasynchronous-unwind-tables
configure:COB_LIBS-L${exec_prefix}/lib-lcob
configure:COB_CONFIG_DIR${datarootdir}/gnucobol/config
configure:COB_COPY_DIR${datarootdir}/gnucobol/copy
configure:COB_LIBRARY_PATH${exec_prefix}/lib/gnucobol
configure:COB_OBJECT_EXTo
configure:COB_MODULE_EXTso
configure:COB_EXE_EXT
configure:COB_SHARED_OPT-shared
configure:COB_PIC_FLAGS-fPIC-DPIC
configure:COB_EXPORT_DYN-Wl,-bexpfull-Wl,-brtl
configure:Dynamicloading:System
configure:Usegettextforinternationalmessages:yes
configure:Usefcntlforfilelocking:yes
configure:Usemathmultipleprecisionlibrary:gmp
configure:UsecurseslibraryforscreenI/O:curses
configure:INDEXEDI/O(nohandlerconfigured):NO
configure:UsedforXMLI/O:libxml2
configure:JSONI/O(nohandlerfound):NO
$make-j4# this isn't GNU make# two warnings in termio.c: discards qualifiers from pointer target type
$makecheck# multiple jobs led to a hanging testsuite, possibly lock of temporary files# testsuite: 591 741 742 850 1097 1098 1161 failed
$cp~/COBOL/newcob.valtests/cobol85/# neither curl nor wget here
$maketest# multiple jobs led to a hanging testsuite, possibly lock of temporary files# all of NIST pass
$./pre-inst-envcobc--info
cobc(GnuCOBOL)3.2-dev.0
Copyright(C)2023FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltFeb10202322:23:29
PackagedFeb10202313:49:07UTC
Cversion"4.2.0"
buildinformation
buildenvironment:powerpc-ibm-aix7.1.1.0
CC:gcc-maix64
Cversion:"4.2.0"
CPPFLAGS:-I/opt/gnucobol/include
CFLAGS:-O2-pipe
LD:/usr/bin/ld
LDFLAGS:
GnuCOBOLinformation
COB_CC:gcc-maix64
COB_CFLAGS:-pipe-I/opt/gnucobol/include
-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign
env:COB_CFLAGS:-I/tmp/gnucobol-3.2-dev/build/..-pipe
-I/opt/gnucobol/include-I/usr/local/include
-Wno-unused-fsigned-char-Wno-pointer-sign
COB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tables
COB_LDFLAGS:
env:COB_LDFLAGS:
COB_LIBS:-L/usr/local/lib-lcob
env:COB_LIBS:-L/tmp/gnucobol-3.2-dev/build/libcob/.libs
-L/usr/local/lib-lcob
COB_CONFIG_DIR:/usr/local/share/gnucobol/config
env:COB_CONFIG_DIR:/tmp/gnucobol-3.2-dev/build/../config
COB_COPY_DIR:/usr/local/share/gnucobol/copy
env:COB_COPY_DIR:/tmp/gnucobol-3.2-dev/build/../copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:yes
BINARY-C-LONG:8bytes
endianness:big-endian
nativeEBCDIC:no
extendedscreenI/O:curses
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:disabled
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:notfound
$./pre-inst-envcobcrun--verbose--info
indexedfilehandler:disabled
mathematicallibrary:GMP,version6.2.1
XMLlibrary:libxml2,version2.7.8
JSONlibrary:disabled
extendedscreenI/O:curses(CHTYPE=32)DigitalVT100
mousesupport:disabled
Debian 6.1 on PowerPC
... another big-endian machine, provided by the GNU compiler farm (gcc203)
This environment had no BDB installed, so I disabled that.
$gpg--verifygnucobol-3.2-rc2.tar.gz.siggnucobol-3.2-rc2.tar.gz
$tar-xvfgnucobol-3.2-rc2.tar.gz
$cdgnucobol-3.2-rc2
# "unclean" direct in the source tree, as this must work, too
$../configure--without-db
configure:GnuCOBOLConfiguration:
configure:CCgcc
configure:CFLAGS-O2-pipe-finline-functions-fsigned-char-Wall-Wwrite-strings-Wmissing-prototypes-Wno-format-y2k
configure:LDFLAGS-Wl,-z,relro,-z,now,-O1
configure:LIBCOB_LIBS-lgmp-lxml2-ljson-c-lncursesw
configure:COB_CCgcc
configure:COB_CFLAGS-pipe-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign
configure:COB_LDFLAGS
configure:COB_DEBUG_FLAGS-ggdb3-fasynchronous-unwind-tables
configure:COB_LIBS-L${exec_prefix}/lib-lcob
configure:COB_CONFIG_DIR${datarootdir}/gnucobol/config
configure:COB_COPY_DIR${datarootdir}/gnucobol/copy
configure:COB_LIBRARY_PATH${exec_prefix}/lib/gnucobol
configure:COB_OBJECT_EXTo
configure:COB_MODULE_EXTso
configure:COB_EXE_EXT
configure:COB_SHARED_OPT-shared
configure:COB_PIC_FLAGS-fPIC-DPIC
configure:COB_EXPORT_DYN-Wl,--export-dynamic
configure:COB_STRIP_CMDstrip--strip-unneeded
configure:Dynamicloading:System
configure:Usegettextforinternationalmessages:yes
configure:Usefcntlforfilelocking:yes
configure:Usemathmultipleprecisionlibrary:gmp
configure:UsecurseslibraryforscreenI/O:ncursesw
configure:INDEXEDI/O(nohandlerconfigured):NO
configure:UsedforXMLI/O:libxml2
configure:UsedforJSONI/O:json-c
$make-j8# I was alone on that machine, which has 64 cpus# no warnings
$make-j6checkallTESTSUITEFLAGS="--jobs=20"# always nice to work on powered machines# testsuite: 741 742 850 1097 1098 1161 failed# all of NIST pass
$./pre-inst-envcobc--info
cobc(GnuCOBOL)3.2-rc2.0
Copyright(C)2023FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltFeb24202314:16:17
PackagedFeb11202301:47:30UTC
Cversion"12.2.0"
buildinformation
buildenvironment:powerpc64-unknown-linux-gnu
CC:gcc
Cversion:"12.2.0"
CPPFLAGS:
CFLAGS:-O2-pipe-finline-functions-fsigned-char
-Wall-Wwrite-strings-Wmissing-prototypes
-Wno-format-y2k
LD:/usr/bin/ld
LDFLAGS:-Wl,-z,relro,-z,now,-O1
GnuCOBOLinformation
COB_CC:gcc
COB_CFLAGS:-pipe-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign
env:COB_CFLAGS:-I/home/cf-mensch/gnucobol-3.2-rc2-pipe
-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign
COB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tables
COB_LDFLAGS:
env:COB_LDFLAGS:
COB_LIBS:-L/usr/local/lib-lcob
env:COB_LIBS:-L/home/cf-mensch/gnucobol-3.2-rc2/libcob/.libs
-L/usr/local/lib-lcob
COB_CONFIG_DIR:/usr/local/share/gnucobol/config
env:COB_CONFIG_DIR:/home/cf-mensch/gnucobol-3.2-rc2/config
COB_COPY_DIR:/usr/local/share/gnucobol/copy
env:COB_COPY_DIR:/home/cf-mensch/gnucobol-3.2-rc2/copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:yes
BINARY-C-LONG:8bytes
endianness:big-endian
nativeEBCDIC:no
extendedscreenI/O:ncursesw
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:disabled
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:json-c
$./pre-inst-envcobcrun--verbose--info
indexedfilehandler:disabled
mathematicallibrary:GMP,version6.2.1
XMLlibrary:libxml2,version2.9.14
JSONlibrary:json-c,version0.16.0
extendedscreenI/O:ncursesw,version6.4.20221231(CHTYPE=32,WIDE=1)xtermwith256colors
mousesupport:yes
As this is fast and also has latest GCC and GDB installed that's a good environment to possibly work on those testsuite failures.
Oracle Linux 9 on Ampera A1 (aarch64)
Kind of a follow-up to the Oracle Cloud free tier post [659b15d346].
# Prerequisites, note: there is json-c, but that is "binary only"
sudodnfinstallgmp-develncurses-devellibdb-devellibxml2-devel
# possibly add GDB and for "nicer" debugging also vim (not installed by default) or emacs, drop xml/curses/json if not needed# GnuCOBOL
$tar-xvfgnucobol-3.2-rc2.tar.gz
$cdgnucobol-3.2-rc2
$mkdirbuild&&cdbuild# because I wanted some environments with different configurations - and an extra build folder is always cleaner
$mkdirlibcob
$curlhttps://raw.githubusercontent.com/DaveGamble/cJSON/master/cJSON.h-olibcob/cJSON.h
$curlhttps://raw.githubusercontent.com/DaveGamble/cJSON/master/cJSON.c-olibcob/cJSON.c
$../configure--enable-hardening
configure:GnuCOBOLConfiguration:
configure:CCgcc
configure:CFLAGS-O2-fstack-protector-strong-pipe-finline-functions-fsigned-char-Wall-Wwrite-strings-Wmissing-prototypes-Wno-format-y2k
configure:LDFLAGS-Wl,-z,relro,-z,now,-O1
configure:LIBCOB_LIBS-lgmp-lxml2-lncursesw-ldb-5.3
configure:COB_CCgcc
configure:COB_CFLAGS-fstack-protector-strong-pipe-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign-O
configure:COB_LDFLAGS-fstack-protector-strong
configure:COB_DEBUG_FLAGS-ggdb3-fasynchronous-unwind-tables
configure:COB_LIBS-L${exec_prefix}/lib-lcob
configure:COB_CONFIG_DIR${datarootdir}/gnucobol/config
configure:COB_COPY_DIR${datarootdir}/gnucobol/copy
configure:COB_LIBRARY_PATH${exec_prefix}/lib/gnucobol
configure:COB_OBJECT_EXTo
configure:COB_MODULE_EXTso
configure:COB_EXE_EXT
configure:COB_SHARED_OPT-shared
configure:COB_PIC_FLAGS-fPIC-DPIC
configure:COB_EXPORT_DYN-Wl,--export-dynamic
configure:COB_STRIP_CMDstrip--strip-unneeded
configure:Dynamicloading:System
configure:Usegettextforinternationalmessages:yes
configure:Usefcntlforfilelocking:yes
configure:Usemathmultipleprecisionlibrary:gmp
configure:UsecurseslibraryforscreenI/O:ncursesw
configure:UseBerkeleyDBforINDEXEDI/O:yes
configure:UsedforXMLI/O:libxml2
configure:UsedforJSONI/O:local
$make-j3
# no warnings
$make-j2checkall
# as with RHEL8 on amd64: all tests pass
$./pre-inst-envcobc--info
cobc(GnuCOBOL)3.2-dev.0
Copyright(C)2023FreeSoftwareFoundation,Inc.
LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>
Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO
warranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHart
BuiltFeb10202300:40:17
PackagedFeb02202310:49:43UTC
Cversion"11.3.1 20220421 (Red Hat 11.3.1-2.1.0.1)"
buildinformation
buildenvironment:aarch64-unknown-linux-gnu
CC:gcc
Cversion:"11.3.1 20220421 (Red Hat 11.3.1-2.1.0.1)"
CPPFLAGS:-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2
CFLAGS:-O2-fstack-protector-strong-pipe
-finline-functions-fsigned-char-Wall
-Wwrite-strings-Wmissing-prototypes
-Wno-format-y2k
LD:/usr/bin/ld
LDFLAGS:-Wl,-z,relro,-z,now,-O1
GnuCOBOLinformation
COB_CC:gcc
COB_CFLAGS:-fstack-protector-strong-pipe
-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign-O
env:COB_CFLAGS:-I/home/opc/gnucobol-3.2-dev/build/..
-fstack-protector-strong-pipe
-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused
-fsigned-char-Wno-pointer-sign-O
COB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tables
COB_LDFLAGS:-fstack-protector-strong
env:COB_LDFLAGS:-fstack-protector-strong
COB_LIBS:-L/usr/local/lib-lcob
env:COB_LIBS:-L/home/opc/gnucobol-3.2-dev/build/libcob/.libs
-L/usr/local/lib-lcob
COB_CONFIG_DIR:/usr/local/share/gnucobol/config
env:COB_CONFIG_DIR:/home/opc/gnucobol-3.2-dev/build/../config
COB_COPY_DIR:/usr/local/share/gnucobol/copy
env:COB_COPY_DIR:/home/opc/gnucobol-3.2-dev/build/../copy
COB_MSG_FORMAT:GCC
COB_OBJECT_EXT:o
COB_MODULE_EXT:so
COB_EXE_EXT:
64bit-mode:yes
BINARY-C-LONG:8bytes
endianness:little-endian
nativeEBCDIC:no
extendedscreenI/O:ncursesw
variablefileformat:0
sequentialfilehandler:built-in
indexedfilehandler:BDB
mathematicallibrary:GMP
XMLlibrary:libxml2
JSONlibrary:cjson
# version output part only:
$./pre-inst-envcobcrun--verbose--info
indexedfilehandler:BDB,version5.3.28
mathematicallibrary:GMP,version6.2.0
XMLlibrary:libxml2,version2.9.13
JSONlibrary:cJSON,version1.7.15
extendedscreenI/O:ncursesw,version6.2.20210508(CHTYPE=32,WIDE=1)xtermwith256colors
mousesupport:yes
RockyLinux on AMD64
.. just some cloud machine, note that's already "outdated", as it is still Rocky8; prerequisites as in RHEL8
# extra checks$sudodnfinstalllibubsanlibasan$tar-xvfgnucobol-3.2-rc2.tar.gz$cdgnucobol-3.2-rc2$mkdirbuild&&cdbuild$../configure--enable-hardeningLFLAGS="-lasan -lubsan"# that did not worked well because libasan does not work with the wrappers we use$../configure--enable-hardeningLFLAGS="-lubsan"configure:GnuCOBOLConfiguration:configure:CCgccconfigure:CFLAGS-O2-fstack-protector-strong-pipe-finline-functions-fsigned-char-Wall-Wwrite-strings-Wmissing-prototypes-Wno-format-y2kconfigure:LDFLAGS-lubsan-Wl,-z,relro,-z,now,-O1configure:LIBCOB_LIBS-lgmp-lxml2-ljson-c-lncursesw-ldb-5.3-ldlconfigure:COB_CCgccconfigure:COB_CFLAGS-fstack-protector-strong-pipe-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign-Oconfigure:COB_LDFLAGS-lubsan-fstack-protector-strongconfigure:COB_DEBUG_FLAGS-ggdb3-fasynchronous-unwind-tablesconfigure:COB_LIBS-L${exec_prefix}/lib-lcobconfigure:COB_CONFIG_DIR${datarootdir}/gnucobol/configconfigure:COB_COPY_DIR${datarootdir}/gnucobol/copyconfigure:COB_LIBRARY_PATH${exec_prefix}/lib/gnucobolconfigure:COB_OBJECT_EXToconfigure:COB_MODULE_EXTsoconfigure:COB_EXE_EXTconfigure:COB_SHARED_OPT-sharedconfigure:COB_PIC_FLAGS-fPIC-DPICconfigure:COB_EXPORT_DYN-Wl,--export-dynamicconfigure:COB_STRIP_CMDstrip--strip-unneededconfigure:Dynamicloading:Systemconfigure:Usegettextforinternationalmessages:yesconfigure:Usefcntlforfilelocking:yesconfigure:Usemathmultipleprecisionlibrary:gmpconfigure:UsecurseslibraryforscreenI/O:ncurseswconfigure:UseBerkeleyDBforINDEXEDI/O:yesconfigure:UsedforXMLI/O:libxml2configure:UsedforJSONI/O:json-c$make-j4# intrinsic.c warnings as seen in RHL8$makecheckall-j4TESTSUITEFLAGS="--jobs=6"# everything passed$./pre-inst-envcobc--infocobc(GnuCOBOL)3.2-dev.0Copyright(C)2023FreeSoftwareFoundation,Inc.LicenseGPLv3+:GNUGPLversion3orlater<https://gnu.org/licenses/gpl.html>Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNOwarranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.WrittenbyKeisukeNishida,RogerWhile,RonNorman,SimonSobisch,EdwardHartBuiltFeb10202300:43:44PackagedFeb02202310:49:43UTCCversion"8.5.0 20210514 (Red Hat 8.5.0-4)"buildinformationbuildenvironment:x86_64-pc-linux-gnuCC:gccCversion:"8.5.0 20210514 (Red Hat 8.5.0-4)"CPPFLAGS:-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2CFLAGS:-O2-fstack-protector-strong-pipe-finline-functions-fsigned-char-Wall-Wwrite-strings-Wmissing-prototypes-Wno-format-y2kLD:/usr/bin/ld-melf_x86_64LDFLAGS:-lubsan-Wl,-z,relro,-z,now,-O1GnuCOBOLinformationCOB_CC:gccCOB_CFLAGS:-fstack-protector-strong-pipe-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign-Oenv:COB_CFLAGS:-I/tmp/gnucobol-3.2-dev/build/..-fstack-protector-strong-pipe-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=2-I/usr/local/include-Wno-unused-fsigned-char-Wno-pointer-sign-OCOB_DEBUG_FLAGS:-ggdb3-fasynchronous-unwind-tablesCOB_LDFLAGS:-lubsan-fstack-protector-strongenv:COB_LDFLAGS:-lubsan-fstack-protector-strongCOB_LIBS:-L/usr/local/lib-lcobenv:COB_LIBS:-L/tmp/gnucobol-3.2-dev/build/libcob/.libs-L/usr/local/lib-lcobCOB_CONFIG_DIR:/usr/local/share/gnucobol/configenv:COB_CONFIG_DIR:/tmp/gnucobol-3.2-dev/build/../configCOB_COPY_DIR:/usr/local/share/gnucobol/copyenv:COB_COPY_DIR:/tmp/gnucobol-3.2-dev/build/../copyCOB_MSG_FORMAT:GCCCOB_OBJECT_EXT:oCOB_MODULE_EXT:soCOB_EXE_EXT:64bit-mode:yesBINARY-C-LONG:8bytesendianness:little-endiannativeEBCDIC:noextendedscreenI/O:ncurseswvariablefileformat:0sequentialfilehandler:built-inindexedfilehandler:BDBmathematicallibrary:GMPXMLlibrary:libxml2JSONlibrary:json-c$./pre-inst-envcobcrun--verbose--infoindexedfilehandler:BDB,version5.3.28mathematicallibrary:GMP,version6.1.2XMLlibrary:libxml2,version2.9.7JSONlibrary:json-c,version0.13.1extendedscreenI/O:ncursesw,version6.1.20180224(CHTYPE=32,WIDE=1)xtermterminalemulator(XWindowSystem)mousesupport:yes
Note: the" false-positive warning in termio.c old GCC" was worked around with a code change.
The testsuite failures on Solaris with Solaris Studio were partially fixed.
Furthermore did run the tests ?--without-db on loongarch64 (crafted linux), riscv64 (Ubuntu) - all build and tested as above, passing all internal and NIST test.
First pre-req listing, typo. Second sudo apt update should be sudo apt upgrade
I was just going to fix it, but then I figured I'd pester you to attach all the goodies as a script file or nine too, and have the correction upstream. ;-)
Nice,
Blue
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And, as addition because that's not a "build from source": here are the Fedora build logs and rpms (including the common x86_64 , i686 next to less common ppc64le, aarch64 and one big-endian s390x), using full hardening with
Aarch64 fails EXTFH: Indexed with FH--FCD - details in [bugs:#878], s390x does the same.
s390x additionally has the same failures as in the "build from source" from above.
All other environments execute the internal tests without any issue.
In all environments NIST85 passes.
Intro
For testing the GC 3.2RC2 I needed a big-endian machine, so have gone with the the IBM LinuxOne Community Clou (after renewing, this time only got the minimal free tier [1 instance, 2 cores], but enough to test an s390x build). This is therefore also partially a follow-up to [c4bd93052a], The reason to post it here, although no help is needed is to provide the help on building GnuCOBOL from source.
Here are the build recipes from source.
Ubuntu 22
RHEL7
RHEL8
SLES 15
Solaris (sparc, 32 + 64bit)
... another big-endian machine.
This environment already had GnuCOBOL installed from source once, so no listing for the prerequisites here
AIX on PowerPC
... another big-endian machine.
This environment already had GnuCOBOL installed from source once,
with previously having installed GMP to /opt/gnucobol and no BDB,
so no listing for the prerequisites here.
Debian 6.1 on PowerPC
... another big-endian machine, provided by the GNU compiler farm (gcc203)
This environment had no BDB installed, so I disabled that.
As this is fast and also has latest GCC and GDB installed that's a good environment to possibly work on those testsuite failures.
Oracle Linux 9 on Ampera A1 (aarch64)
Kind of a follow-up to the Oracle Cloud free tier post [659b15d346].
RockyLinux on AMD64
.. just some cloud machine, note that's already "outdated", as it is still Rocky8; prerequisites as in RHEL8
Note: the" false-positive warning in termio.c old GCC" was worked around with a code change.
The testsuite failures on Solaris with Solaris Studio were partially fixed.
Furthermore did run the tests ?
--without-db
on loongarch64 (crafted linux), riscv64 (Ubuntu) - all build and tested as above, passing all internal and NIST test.Related
Discussion: c4bd93052a
Discussion: 659b15d346
Last edit: Simon Sobisch 2024-01-23
Nice work, Simon. This is awesome.
First pre-req listing, typo. Second
sudo apt update
should besudo apt upgrade
I was just going to fix it, but then I figured I'd pester you to attach all the goodies as a script file or nine too, and have the correction upstream. ;-)
Nice,
Blue
please edit to fix issues you see and feel free to make some scripts out of it, attaching them on a reply to the message
And, as addition because that's not a "build from source": here are the Fedora build logs and rpms (including the common x86_64 , i686 next to less common ppc64le, aarch64 and one big-endian s390x), using full hardening with
(via CFLAGS there's also full system-specific optimizations like
-m64 -mcpu=power8 -mtune=power8
)and configured with
--program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-hardening --with-db --with-xml2 --with-curses=ncursesw --with-json=json-c
rpms ready-to-use and full build logs can be found below https://koji.fedoraproject.org/koji/taskinfo?taskID=97824901
Aarch64 fails
EXTFH: Indexed with FH--FCD
- details in [bugs:#878], s390x does the same.s390x additionally has the same failures as in the "build from source" from above.
All other environments execute the internal tests without any issue.
In all environments NIST85 passes.
Related
Bugs: #878