This release was built with FPC 3.2.2.
Here is the list of changes for Lazarus and Free Pascal:
https://wiki.lazarus.freepascal.org/Lazarus_4.0_release_notes
https://wiki.lazarus.freepascal.org/User_Changes_3.2.2
Here is the list of fixes for Lazarus 4.x:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_4/
The release is available for download on SourceForge:
https://sourceforge.net/projects/lazarus/files/
Choose your CPU, OS, distro and then the "Lazarus 4.0" directory.
Checksums for the SourceForge files:
https://www.lazarus-ide.org/index.php?page=checksums#4_0
Minimum requirements:
Windows:
2k, 32 or 64bit, Qt, Qt5, Qt6 (64bit only)
FreeBSD/Linux:
gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, Qt6.2 for qt6, 32 or 64bit.
Mac OS X:
Cocoa (64bit) 10.12, Carbon (32bit) 10.5 to 10.14, Qt and Qt5 (32 or 64bit), Qt6 (64bit only).
The gitlab page:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_4_0
For people who are blocked by SF, the Lazarus releases from SourceForge
are mirrored at:
https://download.lazarus-ide.org/
ftp://ftp.freepascal.org/pub/lazarus/releases/