Recent

Author Topic: FreeBSD: system.pp(37,2) Fatal: Cannot open include file "sysunixh.inc"  (Read 461 times)

trev

  • Full Member
  • ***
  • Posts: 106
Now that I'm back home, I checked and yes, I can build the cross compiler on macOS, I just cannot build the required FreeBSD units. That is:

Code: [Select]
ls -l usr/local/share/fpc-3.1.1/rtl/units/
drwxr-xr-x  200 root  wheel  6400 10 Jul 16:31 x86_64-darwin <<-- OK
drwxr-xr-x    2 root  wheel    64 10 Jul 16:31 x86_64-freebsd   <<-- EMPTY :(

The problem is:

Code: [Select]
make[5]: x86_64-freebsd-as: No such file or directory

which seems to suggest to me that macOS is looking for a FreeBSD x86_64 (cross?) assembler that does not exist.
o Lazarus v2.1.0 r61574, FPC v3.3.1, macOS 10.14.5
o Lazarus v2.0.0, FPC v3.0.4, FreeBSD 12.0
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7224
When crosscompiling you need to provide crossbinutils, yes.

Usually, linux and *bsd crossbinutils build fairly easily.