Recent

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

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • 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: 14197
  • Probably until I exterminate Putin.
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 »
Specialize a type, not a var.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 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

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
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

  • Full Member
  • ***
  • Posts: 118
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.

guest64953

  • Guest
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   :-*

 

TinyPortal © 2005-2018