Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2019-07

moved project from CentOS to a new install of CentOS...

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ozz Nixon

ld is complaining it cannot -ldl

I have read on reddit, this is a glibc update... is that all I need to yum so FPC can compile my project?

If I copy the binary from my old CentOS is runs. Just cannot recompile... and I assume this is because I use dynlib?

Ozz

Reply by email

Jonas Maebe
to Ozz Nixon
Ozz Nixon wrote
ld is complaining it cannot -ldl I have read on reddit, this is a glibc update... is that all I need to yum so FPC can compile my project?

You have to install the glibc-devel package.

Jonas

Reply by email

Ozz Nixon
to Jonas Maebe

Arg, did that (Thank you for the suggestion) and now I am back to:

/usr/bin/ld: warning: link.res contains output sections; did you forget -T? /usr/bin/ld: BFD version 2.20.51.0.2-5.42.el6 20100205 internal error, line 443 in bfd_get_reloc_size
/usr/bin/ld: Please report this bug.

From this point forward, nothing I do will fix ld. I had ran into this 2

weeks ago - thought it was from a yum update, but, obviously its binutil and glibc-2.12 are not compatible. Any ideas how to resolve this? Researching this for 2 weeks, everything always results in reinstall the OS. :-(

AM Jonas Maebe wrote 14 lines
On 28/07/2019 04:08, Ozz Nixon wrote: > ld is complaining it cannot -ldl > > I have read on reddit, this is a glibc update... is that all I need to > yum so FPC can compile my project? You have to install the glibc-devel package. Jonas _______________________________________________ fpc-devel maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Jonas Maebe
to Ozz Nixon
Ozz Nixon wrote 10 lines
Arg, did that (Thank you for the suggestion) and now I am back to: /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /usr/bin/ld: BFD version 2.20.51.0.2-5.42.el6 20100205 internal error, line 443 in bfd_get_reloc_size /usr/bin/ld: Please report this bug. From this point forward, nothing I do will fix ld. I had ran into this 2 weeks ago - thought it was from a yum update, but, obviously its binutil and glibc-2.12 are not compatible.

That would seem unlikely for a commercial product like RHEL. It seems more likely it's choking on a relocation from an FPC object file.

Any ideas how to resolve this?

Manually compile/install more recent binutils.

Jonas

Reply by email

Nikolai Zhubr
to Ozz Nixon: Arg, did that (Thank you for the suggestion) and now I am back to: /usr/bin/ld: warning:…

Hi Ozz,

28.07.2019 22:02, Ozz Nixon:

/usr/bin/ld: BFD version 2.20.51.0.2-5.42.el6 20100205 internal error,

This binutils version is likely too old, and because C6 is getting close to EOL, I'd not count on someone fixing this ld bug. I recently had to update 2.24 to 2.30 (on opensuse) to get rid of (another) ld error. And as Centos7 now uses binutils 2.27, maybe consider trying it? (I do compile on C7 with no issue, but still using FPC 2.6.4 there, so no promices w.r.t. your specific issue)

HTH,

Regards,
Nikolai

Show quoted text 33 lines
line 443 in bfd_get_reloc_size /usr/bin/ld: Please report this bug. From this point forward, nothing I do will fix ld. I had ran into this 2 weeks ago - thought it was from a yum update, but, obviously its binutil and glibc-2.12 are not compatible. Any ideas how to resolve this? Researching this for 2 weeks, everything always results in reinstall the OS. :-( On Sun, Jul 28, 2019 at 5:40 AM Jonas Maebe < > wrote: On 28/07/2019 04:08, Ozz Nixon wrote: > ld is complaining it cannot -ldl > > I have read on reddit, this is a glibc update... is that all I need to > yum so FPC can compile my project? You have to install the glibc-devel package. Jonas _______________________________________________ fpc-devel maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel _______________________________________________ fpc-devel maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Ozz Nixon
to Jonas Maebe: That would seem unlikely for a commercial product like RHEL. It seems more likely it's…

Out of experimentation ...

WORKS:
Free Pascal Compiler version 2.6.4 [2014/03/07] for x86_64 Copyright (c) 1993-2014 by Florian Klaempfl and others

BREAKS LD:
Free Pascal Compiler version 3.0.4 [2017/10/02] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others

So I am back in I can try installing 3.x again and try things if needed....

PM Jonas Maebe wrote 26 lines
On 28/07/2019 21:02, Ozz Nixon wrote: > Arg, did that (Thank you for the suggestion) and now I am back to: > > /usr/bin/ld: warning: link.res contains output sections; did you forget -T? > /usr/bin/ld: BFD version 2.20.51.0.2-5.42.el6 20100205 internal error, > line 443 in bfd_get_reloc_size > /usr/bin/ld: Please report this bug. > > From this point forward, nothing I do will fix ld. I had ran into this 2 > weeks ago - thought it was from a yum update, but, obviously its binutil > and glibc-2.12 are not compatible. That would seem unlikely for a commercial product like RHEL. It seems more likely it's choking on a relocation from an FPC object file. > Any ideas how to resolve this? Manually compile/install more recent binutils. Jonas _______________________________________________ fpc-devel maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email