Recent

Author Topic: Building FPC on OpenBSD 7.5  (Read 532 times)

Romain

  • New Member
  • *
  • Posts: 10
Building FPC on OpenBSD 7.5
« on: January 29, 2026, 07:48:12 am »
Hello,

I downloaded FPC from here: http://downloads.freepascal.org/fpc/snapshot/v33/x86_64-openbsd/


I am trying to built FPC 3.3.1 (sources found here: https://www.freepascal.org/develop.html), but the Makefile tells me:

Makefile:3234: *** The only supported starting compiler version is 3.2.2. You are trying to build with 3.3.1..  Stop.


However,the available version of 3.2.2 was built with OpenBSD 6.8, whose libc is incompatible.
(see: http://downloads.freepascal.org/fpc/dist/3.2.2/x86_64-openbsd/readme.x86_64-openbsd )


Any help?

Thanks.

Thaddy

  • Hero Member
  • *****
  • Posts: 18729
  • To Europe: simply sell USA bonds: dollar collapses
Re: Building FPC on OpenBSD 7.5
« Reply #1 on: January 29, 2026, 08:26:29 am »
Try build with OVERRIDEVERSIONCHECK=1

« Last Edit: January 29, 2026, 08:29:36 am by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

Fred vS

  • Hero Member
  • *****
  • Posts: 3778
    • StrumPract is the musicians best friend
Re: Building FPC on OpenBSD 7.5
« Reply #2 on: January 29, 2026, 11:48:19 am »
Hello Romain.

Unfortunately, fpc for OpenBSD doesn't yet work with the latest versions of OpenBSD (7 and above). A fix is ​​pending (see https://gitlab.com/freepascal.org/fpc/source/-/issues/41017).

If you need it immediately (or if you don't have the patience to wait for a hypothetical new version of fpc that includes the fix), you can use, from fpc-ootb, the 64 bit version: fpc-ootb-324-x86_64-openbsd77.tar.gz or/and the 32 bit version: fpc-ootb-324-i386-openbsd77.tar.gz.
« Last Edit: January 29, 2026, 12:55:37 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Romain

  • New Member
  • *
  • Posts: 10
Re: Building FPC on OpenBSD 7.5
« Reply #3 on: January 29, 2026, 09:37:49 pm »
Try build with OVERRIDEVERSIONCHECK=1

Unfortunately, both 3.2.2 and 3.3.1 failed to build. Thanks.

Romain

  • New Member
  • *
  • Posts: 10
Re: Building FPC on OpenBSD 7.5
« Reply #4 on: January 29, 2026, 09:39:54 pm »
If you need it immediately (or if you don't have the patience to wait for a hypothetical new version of fpc that includes the fix), you can use, from fpc-ootb, the 64 bit version: fpc-ootb-324-x86_64-openbsd77.tar.gz or/and the 32 bit version: fpc-ootb-324-i386-openbsd77.tar.gz.

Thanks a lot! It works. (It does not compile 3.2.2 and 3.3.1 though.)

Now, time to try the FPC Pascal compiler.

Fred vS

  • Hero Member
  • *****
  • Posts: 3778
    • StrumPract is the musicians best friend
Re: Building FPC on OpenBSD 7.5
« Reply #5 on: January 29, 2026, 10:12:07 pm »
Thanks a lot! It works. (It does not compile 3.2.2 and 3.3.1 though.)

Are you talking about official fpc 3.2.2 source?
If so, indeed, you need to compile the patched source from https://github.com/fredvs/freepascal-ootb/ using the fpc-ootb binary from fpc-ootb release.
You may use the script build_fpc-ootb-64_openbsd.sh (use fpc-ootb as compiler in the script).

Regarding compiling the official FPC 3.3.1 source code with the fpc-ootb executable, I haven't tried it. I don't know (and highly doubt) if the OpenBSD 7+ patch has already been applied to the main FPC 3.3.1 source code.
« Last Edit: January 29, 2026, 10:30:00 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Romain

  • New Member
  • *
  • Posts: 10
Re: Building FPC on OpenBSD 7.5
« Reply #6 on: January 30, 2026, 02:57:04 pm »
Are you talking about official fpc 3.2.2 source?

Yes, I was. We’ll see that later. Thanks!


 

TinyPortal © 2005-2018