View Issue Details

IDProjectCategoryView StatusLast Update
0037784FPCCompilerpublic2020-09-24 18:39
ReporterTrevor Roydhouse Assigned To 
Status newResolutionopen 
Product Version3.3.1 
Summary0037784: FPC does not build under FreeBSD 12
Descriptionbuild script:

cd ~/fpc-3.3.1
svnlite cleanup --remove-unversioned
gmake clean all FPC=/usr/local/lib/fpc/3.0.4/ppcx64 PS_TARGET=freebsd CPU_TARGET=x86_64
gmake install OS_TARGET=freebsd CPU_TARGET=x86_64

gmake rtl
gmake[5]: Entering directory '/usr/home/trev/fpc-3.3.1/compiler'
gmake -C /usr/home/trev/fpc-3.3.1/rtl 'OPT=' all
gmake[6]: Entering directory '/usr/home/trev/fpc-3.3.1/rtl'
gmake -C freebsd all
gmake[7]: Entering directory '/usr/home/trev/fpc-3.3.1/rtl/freebsd'
as --64 -o /usr/home/trev/fpc-3.3.1/rtl/units/x86_64-freebsd/prt0.o x86_64/
as --64 -o /usr/home/trev/fpc-3.3.1/rtl/units/x86_64-freebsd/cprt0.o x86_64/
as --64 -o /usr/home/trev/fpc-3.3.1/rtl/units/x86_64-freebsd/gprt0.o x86_64/
as --64 -o /usr/home/trev/fpc-3.3.1/rtl/units/x86_64-freebsd/dllprt0.o x86_64/
/usr/home/trev/fpc-3.3.1/compiler/ppc1 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fi../bsd -Fi../bsd/x86_64 -Fi../freebsd/x86_64 -FE. -FU/usr/home/trev/fpc-3.3.1/rtl/units/x86_64-freebsd -Cg -dx86_64 -dRELEASE -Us -Sg ../bsd/system.pp
Error: Path "./" does not exist <<<<--- it does exist <<<<<
gmake[7]: *** [Makefile:3540: system.ppu] Error 1
gmake[7]: Leaving directory '/usr/home/trev/fpc-3.3.1/rtl/freebsd'
gmake[6]: *** [Makefile:2399: freebsd_all] Error 2
gmake[6]: Leaving directory '/usr/home/trev/fpc-3.3.1/rtl'
gmake[5]: *** [Makefile:5071: rtl] Error 2
gmake[5]: Leaving directory '/usr/home/trev/fpc-3.3.1/compiler'
gmake[4]: *** [Makefile:4917: next] Error 2
Steps To Reproduce* Download trunk svn version
* Run build script
Additional InformationFreeBSD 12 has a new stat structure, complete with 64-bit inode numbers, link counts, and some field reorderings.

See version 1200031 and later here:
Tagsdev_t, dirent, freebsd, ino_t, nlink_t
Fixed in Revision
Attached Files


CudaText man_

2020-09-21 12:20

reporter   ~0125704

Confirmed- I cannot build FPC from fpcupdeluxe.

CudaText man_

2020-09-21 12:23

reporter   ~0125705

Linked issue 0037220


2020-09-22 11:57

reporter   ~0125753

The types were already updated to 64-bit a long time ago. (
I think that breaks compatibility with older FreeBSD? So should be updated as only FreeBSD 12 is supported.


2020-09-24 18:39

reporter   ~0125828

I can build on FreeBSD12 with -dFPC_USE_LIBC.
This might be used to solve this issue.


Issue History

Date Modified Username Field Change
2020-09-21 07:20 Trevor Roydhouse New Issue
2020-09-21 07:21 Trevor Roydhouse Tag Attached: freebsd
2020-09-21 07:21 Trevor Roydhouse Tag Attached: dirent
2020-09-21 07:21 Trevor Roydhouse Tag Attached: ino_t
2020-09-21 07:21 Trevor Roydhouse Tag Attached: dev_t
2020-09-21 07:21 Trevor Roydhouse Tag Attached: nlink_t
2020-09-21 12:20 CudaText man_ Note Added: 0125704
2020-09-21 12:23 CudaText man_ Note Added: 0125705
2020-09-22 11:57 Bi0T1N Note Added: 0125753
2020-09-24 18:39 Alfred Note Added: 0125828