Recent

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

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1071
  • Former Delphi 1-7, 10.2 User
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 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

marcov

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

Usually, linux and *bsd crossbinutils build fairly easily.

 

TinyPortal © 2005-2018