Sign in Join

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

Mailing lists / fpc-devel / 2019-02

3.04.1 ld error

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Ozz Nixon

I am trying to do a fresh rebuild on a Centos 6.8 box - so I copied Modern Pascal over, installed 3.0.4.1 from freemirror... and I get:

Linking modernpascal_v2
/usr/bin/ld: warning: link.res contains output sections; did you forget -T? /usr/bin/ld: BFD version 2.20.51.0.2-5.44.el6 20100205 internal error, line 443 in bfd_get_reloc_size

/usr/bin/ld: Please report this bug.

Error: Error while linking
Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

Can someone help so I can get this build tested this weekend??

Regards
Ozz

Reply by email

Ralf Quint
to Ozz Nixon
Ozz Nixon wrote
I am trying to do a fresh rebuild on a Centos 6.8 box - so I copied Modern Pascal over, installed 3.0.4.1 from freemirror... and I get: Linking modernpascal_v2

Don't you think you  might be asking in the wrong place?

Ralf

---
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Reply by email

Ozz Nixon
to Ralf Quint

NOPE - FPC is the compiler for my Interpreter....

AM Ralf Quint wrote 20 lines
On 2/2/2019 11:11 PM, Ozz Nixon wrote: I am trying to do a fresh rebuild on a Centos 6.8 box - so I copied Modern Pascal over, installed 3.0.4.1 from freemirror... and I get: Linking modernpascal_v2 Don't you think you might be asking in the wrong place? Ralf <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link> <#m_-6055792720341136302_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Ozz Nixon
to Ozz Nixon

did a simple test:

"test.pp" [New] 9L, 94C written
mp3]# fpc test.pp
Free Pascal Compiler version 3.0.4 [2017/10/02] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others Target OS: Linux for x86-64
Compiling test.pp
Linking test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T? /usr/bin/ld: BFD version 2.20.51.0.2-5.44.el6 20100205 internal error, line 443 in bfd_get_reloc_size

/usr/bin/ld: Please report this bug.

test.pp(9,1) Error: Error while linking
test.pp(9,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
AM Ozz Nixon wrote 25 lines
NOPE - FPC is the compiler for my Interpreter.... On Sun, Feb 3, 2019 at 2:13 AM Ralf Quint wrote: > On 2/2/2019 11:11 PM, Ozz Nixon wrote: > > I am trying to do a fresh rebuild on a Centos 6.8 box - so I copied > Modern Pascal over, installed 3.0.4.1 from freemirror... and I get: > > Linking modernpascal_v2 > > Don't you think you might be asking in the wrong place? > > Ralf > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon> Virus-free. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link> > <#m_-8962622757590602507_m_-6055792720341136302_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel >

Reply by email

Tomas Hajny
to Ozz Nixon

On Sun, February 3, 2019 08:40, Ozz Nixon wrote:

Hi Ozz,

.
.

/usr/bin/ld: BFD version 2.20.51.0.2-5.44.el6 20100205 internal error, line 443 in bfd_get_reloc_size /usr/bin/ld: Please report this bug.

.
.

As correctly pointed out by Ralf, the messages above clearly say that you get an internal error in '/usr/bin/ld' and that you should report it to ld maintainers (or possibly maintainers of your distribution) together with information about the reported location in the C source of ld.

It's possible that this error is triggered by some incompatibility in FPC code, but eve if this is really the case (this may not be determined from the available information), we can't do much about it because ld fails miserably instead of providing any clue about what might possible be wrong in the file being processed by ld.

Tomas

Reply by email

Florian Klämpfl
to Tomas Hajny
Tomas Hajny wrote 19 lines
On Sun, February 3, 2019 08:40, Ozz Nixon wrote: Hi Ozz, . . > /usr/bin/ld: BFD version 2.20.51.0.2-5.44.el6 20100205 internal error, > line 443 in bfd_get_reloc_size > > /usr/bin/ld: Please report this bug. . . As correctly pointed out by Ralf, the messages above clearly say that you get an internal error in '/usr/bin/ld' and that you should report it to ld maintainers (or possibly maintainers of your distribution) together with information about the reported location in the C source of ld.

It might be worth to try first with newer binutils, 2.20 is almost 10 years old. Or try with the fpc which comes with the used CentOS. IIRC CentOS 6 is using some ancient kernel 2.6.xx even?

Reply by email

Ozz Nixon
to Florian Klämpfl

Thank you all. I did try yum update binutils, no luck. So I tried yum update, let it update 136 packets, no luck.

So, I will try you idea of dropping back to (I think 2.6.4) FPC that is prepacked for CentOS 6.8.

Forced an FTP download of 2.6.4 bin & src, and viola: # fpc test
Free Pascal Compiler version 2.6.4 [2014/03/07] for x86_64 Copyright (c) 1993-2014 by Florian Klaempfl and others Target OS: Linux for x86-64
Compiling test.pp
Linking test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T? 9 lines compiled, 0.1 sec

Just had to code around:
pascal.inc(1251,35) Error: Identifier not found "GetCPUCount"
pascal.inc(1256,37) Error: Identifier not found "AVXSupport"
pascal.inc(1260,38) Error: Identifier not found "AVX2Support"
pascal.inc(1264,37) Error: Identifier not found "FMASupport"

;-)
THANKS!

PS. Sorry Ralf, I did not realize you were saying "it's an LD issue" ;-)

AM Florian Klämpfl wrote 29 lines
Am 03.02.19 um 11:09 schrieb Tomas Hajny: > On Sun, February 3, 2019 08:40, Ozz Nixon wrote: > > > Hi Ozz, > > . > . >> /usr/bin/ld: BFD version 2.20.51.0.2-5.44.el6 20100205 internal error, >> line 443 in bfd_get_reloc_size >> >> /usr/bin/ld: Please report this bug. > . > . > > As correctly pointed out by Ralf, the messages above clearly say that you > get an internal error in '/usr/bin/ld' and that you should report it to ld > maintainers (or possibly maintainers of your distribution) together with > information about the reported location in the C source of ld. > It might be worth to try first with newer binutils, 2.20 is almost 10 years old. Or try with the fpc which comes with the used CentOS. IIRC CentOS 6 is using some ancient kernel 2.6.xx even? _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email