[fpc-pascal] Segmentation fault with cthreads on FreeBSD

fredvs fiens at hotmail.com
Tue Jun 9 00:26:57 CEST 2020

> @fredvs yes I install from source code.

Hum, so, imho, the MakeFile provided by official FPC download source has
something wrong.
I did try to using fpmake to re-create it but the resulted MakeFile did not
fix the problem.

Maybe the creator of the fpc FreeBSD package could give some light what to
change in the MakeFile.

I used this script:

gmake clean
gmake all FPC=$COMPILER OPT="-Fl/usr/local/lib" 
gmake FPC=$COMPILER install INSTALL_PREFIX=/usr/local/

This compiles and install fpc 3.0.4 but, like explained, your application
compiles ok but crash while running.

A contrario the compiler installed via the official pkg of FreeBSD gives a
compiled program that runs ok:

$ sudo pkg update
$ sudo pkg install fpc
$ sudo pkg install lang/fpc-units

Sent from: http://free-pascal-general.1045716.n5.nabble.com/

More information about the fpc-pascal mailing list