[talk] gcobol works on FreeBSD/amd64 14 (testsuite and patches and binaries inside!)

Callahan, Brian Robert callab5 at rpi.edu
Sun Mar 16 15:56:36 EDT 2025


Hi all –

Because I know the gcobol people are on this list, I successfully built gcobol on a FreeBSD/amd64 14.2 box.

Testsuite is very positive; only 2 tests fail and I can’t rule out one of the failures being my own mistake.

There are really only two hurdles here: first is relying on glibc’s __float128 routines instead of the ones built into gcc via libquadmath; fixing this makes up the bulk of the changes.

The second, much smaller change, is that FreeBSD does not have random_r and related functions. So I changed them to their non-_r versions. Which I’m sure will cause subtle problems somewhere but maybe this inspires someone to implement the functions.

I put up a quick GitHub repo for those who want to see how to do it themselves: https://github.com/ibara/freebsd-gcobol

Or you can just grab the tarball from the releases tab: https://github.com/ibara/freebsd-gcobol/releases/tag/20250316

~Brian

--
Brian Robert Callahan, ’15G, ’18 Ph.D., ISSMP, CISSP, CISM
Graduate Program Director, ITWS at RPI
Director, Rensselaer Cybersecurity Collaboratory
Office: Lally 304
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nycbug.org:8443/pipermail/talk/attachments/20250316/8d947805/attachment.htm>


More information about the talk mailing list