Recent

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

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1282
  • 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.
Lazarus 2.1 r64368 FPC 3.3.1 r48100 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r64455 3.3.1 r48840   macOS 11.2.2 aarch64 Xcode 12.4
Lazarus 2.1 r61574 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 3.2.0 Win10 Parallels VM

marcov

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

Usually, linux and *bsd crossbinutils build fairly easily.

 

TinyPortal © 2005-2018