Recent

Author Topic: FPC + Lazarus on FreeBSD  (Read 2749 times)

PascalDragon

  • Hero Member
  • *****
  • Posts: 716
  • Compiler Developer
Re: FPC + Lazarus on FreeBSD
« Reply #30 on: December 02, 2019, 09:40:21 am »
As I know now, fpc is ld.bfd only, without support for any other linker, which I think is a pity  :(
The gold linker simply does not support all features that FPC requires.

Thaddy

  • Hero Member
  • *****
  • Posts: 9285
Re: FPC + Lazarus on FreeBSD
« Reply #31 on: December 02, 2019, 10:18:14 am »
As I know now, fpc is ld.bfd only, without support for any other linker, which I think is a pity  :(
The gold linker simply does not support all features that FPC requires.
What features? Then I can test better. I had some results, I believe. But not recently and I could have been mistaken.
There are quite a few options in gold...... If I know what is "missing" at least I can make sense of my "successes".... :(
« Last Edit: December 02, 2019, 10:20:10 am by Thaddy »
also related to equus asinus.

trev

  • Sr. Member
  • ****
  • Posts: 254
  • Former Delphi 7 and Delphi 10.2 User
Re: FPC + Lazarus on FreeBSD
« Reply #32 on: December 03, 2019, 05:12:31 am »
It doesn't matter how old they are, just how long they were supported as main calls. So that seems to be up to FreeBSD10 if FreeBSD 11 introduced the new calls.

And since FreeBSD10 is not that long out support, if you support one set of system calls only, it is not that far off.

The mmap system call 197 was superseded (moved to COMPAT6) during the development of FreeBSD 8-CURRENT on 19 Apr 2015 is what I glean from https://github.com/freebsd/freebsd/commit/2254748ed0eebd8391a1bc331f3d54d0ddb1f69d#diff-05dd75694f9540a2575ae474ae31f6c4
o Lazarus v2.1.0 r61775, FPC v3.3.1 r42640, macOS 10.14.6 (with sup update), Xcode 10.3
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.0 (Parallels VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7613
Re: FPC + Lazarus on FreeBSD
« Reply #33 on: December 03, 2019, 01:45:34 pm »

The mmap system call 197 was superseded (moved to COMPAT6) during the development of FreeBSD 8-CURRENT on 19 Apr 2015 is what I glean from https://github.com/freebsd/freebsd/commit/2254748ed0eebd8391a1bc331f3d54d0ddb1f69d#diff-05dd75694f9540a2575ae474ae31f6c4
.

The last FreeBSD 8(.4) was released in june 2013, and the branch was EOL after that. The FreeBSD 10 series was also already "-STABLE"out by that date, and I doubt they would change something as fundamental as that.

So the first release version that would have changed would be FreeBSD11 in october 2016, about an year before FPC 3.0.4 (which was a fixed release).

FPK

  • Jr. Member
  • **
  • Posts: 61
Re: FPC + Lazarus on FreeBSD
« Reply #34 on: December 03, 2019, 10:55:19 pm »
As I know now, fpc is ld.bfd only, without support for any other linker, which I think is a pity  :(

For reasons. A few weeks ago I tried gold (from binutils 2.33.1):

/usr/local/bin/gold: internal error in read_script_file, at script.cc:1638

First, they need proper error messages so I know what to fix in the linker script, then we can talk about supporting them.

hunghung

  • Full Member
  • ***
  • Posts: 117
Re: FPC + Lazarus on FreeBSD
« Reply #35 on: December 04, 2019, 04:43:25 pm »
As I know now, fpc is ld.bfd only, without support for any other linker, which I think is a pity  :(

For reasons. A few weeks ago I tried gold (from binutils 2.33.1):

/usr/local/bin/gold: internal error in read_script_file, at script.cc:1638

First, they need proper error messages so I know what to fix in the linker script, then we can talk about supporting them.

I don't want to hijack this thread so I opened a new thread about DFBSD   :-*