Recent

Author Topic: FPC 3.2.0rc1 released!  (Read 15000 times)

zamronypj

  • Jr. Member
  • **
  • Posts: 96
    • Fano Framework, Free Pascal web application framework
Re: FPC 3.2.0rc1 released!
« Reply #90 on: June 17, 2020, 03:55:20 am »
@trev is correct, binutils still has ld.bfd

Before I install binutils
Code: Text  [Select][+][-]
  1. # freebsd-version
  2. 12.1-RELEASE-p5
  3. # cd /usr/local/bin
  4. # ls -la | grep ld
  5. # cd /usr/bin
  6. # ls -la | grep ld
  7. -r-xr-xr-x   1 root  wheel      44240 Nov  1  2019 colldef
  8. -r-xr-xr-x   1 root  wheel      15480 Nov  1  2019 fold
  9. lrwxr-xr-x   1 root  wheel          6 Nov  1  2019 ld -> ld.lld
  10. -r-xr-xr-x   1 root  wheel   37783520 Nov  1  2019 ld.lld
  11. -r-xr-xr-x   1 root  wheel      19488 Nov  1  2019 ldd
  12. -r-xr-xr-x   1 root  wheel      27024 Nov  1  2019 ldd32
  13. -r-xr-xr-x   1 root  wheel   58013080 Nov  1  2019 lldb
  14. # ld -v
  15. LLD 8.0.1 (FreeBSD 366581-1200008) (compatible with GNU linkers)
  16.  

After install binutils

Code: Text  [Select][+][-]
  1. #cd /usr/bin
  2. # ls -la | grep ld
  3. -r-xr-xr-x   1 root  wheel      44240 Nov  1  2019 colldef
  4. -r-xr-xr-x   1 root  wheel      15480 Nov  1  2019 fold
  5. lrwxr-xr-x   1 root  wheel          6 Nov  1  2019 ld -> ld.lld
  6. -r-xr-xr-x   1 root  wheel   37783520 Nov  1  2019 ld.lld
  7. -r-xr-xr-x   1 root  wheel      19488 Nov  1  2019 ldd
  8. -r-xr-xr-x   1 root  wheel      27024 Nov  1  2019 ldd32
  9. -r-xr-xr-x   1 root  wheel   58013080 Nov  1  2019 lldb
  10. # cd /usr/local/bin
  11. # ls -la | grep ld
  12. -r-xr-xr-x   4 root  wheel  11672576 Jun 11 01:44 ld
  13. -r-xr-xr-x   4 root  wheel  11672576 Jun 11 01:44 ld.bfd
  14. -r-xr-xr-x   2 root  wheel   4472288 Jun 11 01:44 ld.gold
  15. # which ld
  16. /usr/bin/ld
  17. # ld -v
  18. LLD 8.0.1 (FreeBSD 366581-1200008) (compatible with GNU linkers)
  19.  

So there are multiple ld binaries. /usr/local/bin/ld and /usr/local/bin/ld.bfd are same binaries.
Code: Text  [Select][+][-]
  1. # cd /usr/local/bin
  2. # md5 ld
  3. MD5 (ld) = 05314dfb9130039f3d473fd71e34186f
  4. # md5 ld.bfd
  5. MD5 (ld.bfd) = 05314dfb9130039f3d473fd71e34186f
  6.  

« Last Edit: June 17, 2020, 04:02:57 am by zamronypj »
Fano Framework, Free Pascal web application framework https://fanoframework.github.io
Personal Projects https://v3.juhara.com
Github https://github.com/zamronypj

Fred vS

  • Hero Member
  • *****
  • Posts: 1838
    • StrumPract is the musicians best friend
Re: FPC 3.2.0rc1 released!
« Reply #91 on: June 17, 2020, 11:56:17 am »
Quote
So there are multiple ld binaries. /usr/local/bin/ld and /usr/local/bin/ld.bfd are same binaries.

Hum, in my FreeBSD 12.0 there are also /usr/local/bin/ld and /usr/local/bin/ld.bfd, with exactly same size.

But using /usr/local/bin/ld for link with fpc crash the program, using /usr/local/bin/ld.bfd is ok.
So it is obvious that the 2 binaries are not the same.

So maybe that in the new binutils, /usr/local/bin/ld and /usr/local/bin/ld.bfd are in fact the same now.

If somebody knows the logical of the FreeBSD package, I am interested to have some explanation.
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8729
  • FPC developer.
Re: FPC 3.2.0rc1 released!
« Reply #92 on: June 17, 2020, 12:21:21 pm »
FreeBSD 12.1 does not have ld.bfd anymore

https://lists.freebsd.org/pipermail/freebsd-current/2018-November/072212.html

This mostly seems to be about ld.bfd in base, for us this doesn't matters that much if the binutils in ports works.

 

TinyPortal © 2005-2018