View Issue Details

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

#!/bin/sh
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/prt0.as
as --64 -o /usr/home/trev/fpc-3.3.1/rtl/units/x86_64-freebsd/cprt0.o x86_64/cprt0.as
as --64 -o /usr/home/trev/fpc-3.3.1/rtl/units/x86_64-freebsd/gprt0.o x86_64/gprt0.as
as --64 -o /usr/home/trev/fpc-3.3.1/rtl/units/x86_64-freebsd/dllprt0.o x86_64/dllprt0.as
/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:
https://www.freebsd.org/doc/en/books/porters-handbook/versions-12.html
Tagsdev_t, dirent, freebsd, ino_t, nlink_t
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

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

Bi0T1N

2020-09-22 11:57

reporter   ~0125753

The types were already updated to 64-bit a long time ago. (https://github.com/graemeg/freepascal/commit/e00ca268b16caad76cbc1240a1388ed7880a1481#diff-adaa5175028edbdc411b2c68c8604357)
I think that breaks compatibility with older FreeBSD? So https://wiki.freepascal.org/FreeBSD should be updated as only FreeBSD 12 is supported.

Alfred

2020-09-24 18:39

reporter   ~0125828

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

See: https://bugs.freepascal.org/view.php?id=37168

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