Recent

Author Topic: Problem R_X86_64_PC32  (Read 14155 times)

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 670
Re: Problem R_X86_64_PC32
« Reply #15 on: March 11, 2015, 10:24:13 am »
FPC only supports the small memory model on x86-64. That is fine as long as you don't have more 2GB of data, which is the case for the compiler.

krab22

  • New Member
  • *
  • Posts: 16
Re: Problem R_X86_64_PC32
« Reply #16 on: March 12, 2015, 04:10:06 am »
FPC only supports the small memory model on x86-64. That is fine as long as you don't have more 2GB of data, which is the case for the compiler.
It's all good! But why is not going to the compiler?

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 670
Re: Problem R_X86_64_PC32
« Reply #17 on: March 12, 2015, 10:02:03 am »
I don't know why it fails. As mentioned before, the only thing I can think of that explains the symptoms you've described is a hardware problem. It could also be a bug in the binutils version you are using, but the fact that removing memory from your computer fixed the problem makes this very unlikely.

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7503
Re: Problem R_X86_64_PC32
« Reply #18 on: March 12, 2015, 01:30:14 pm »
(Removed, problem seems to be code size, not datasize)

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 670
Re: Problem R_X86_64_PC32
« Reply #19 on: March 12, 2015, 01:34:37 pm »
The problem happens while compiling the compiler itself in his case. The compiler does not have a combined code+data size of more than 2GB (a reference to code from data can also be out of range if only the data section is >= 2GB).

krab22

  • New Member
  • *
  • Posts: 16
Re: Problem R_X86_64_PC32
« Reply #20 on: March 13, 2015, 03:18:53 am »
The problem happens while compiling the compiler itself in his case. The compiler does not have a combined code+data size of more than 2GB (a reference to code from data can also be out of range if only the data section is >= 2GB).
From your statements problem persists ... :)

krab22

  • New Member
  • *
  • Posts: 16
Re: Problem R_X86_64_PC32
« Reply #21 on: March 13, 2015, 03:20:59 am »
Removed, problem seems to be code size, not datasize
I think so too

Cyrax

  • Hero Member
  • *****
  • Posts: 758
Re: Problem R_X86_64_PC32
« Reply #22 on: March 13, 2015, 03:22:56 am »
Please try to build FPC via standard way, not using CodeTyphon files and their build scripts.

krab22

  • New Member
  • *
  • Posts: 16
Re: Problem R_X86_64_PC32
« Reply #23 on: March 13, 2015, 11:52:19 am »
Please try to build FPC via standard way, not using CodeTyphon files and their build scripts.
Tried to collect the resulting repository tag 2_6_4.
The same situation.

engkin

  • Hero Member
  • *****
  • Posts: 2513
Re: Problem R_X86_64_PC32
« Reply #24 on: March 13, 2015, 05:19:28 pm »
What compiler/binutils did you use this time to compile 2.6.4?

krab22

  • New Member
  • *
  • Posts: 16
Re: Problem R_X86_64_PC32
« Reply #25 on: March 16, 2015, 04:06:42 am »

engkin

  • Hero Member
  • *****
  • Posts: 2513
Re: Problem R_X86_64_PC32
« Reply #26 on: March 16, 2015, 04:35:47 am »
What compiler/binutils did you use this time to compile 2.6.4?

http://forum.lazarus.freepascal.org/index.php/topic,27615.msg170846.html#msg170846

I suspected that you did use CodeTyphon, again, while Cyrax advised:
Please try to build FPC via standard way, not using CodeTyphon files and their build scripts.

krab22

  • New Member
  • *
  • Posts: 16
Re: Problem R_X86_64_PC32
« Reply #27 on: March 18, 2015, 11:39:52 am »
"I suspected that you did use CodeTyphon, again, while Cyrax advised:"

The link is provided to clarify the compilers. When assembling FPC_2.6.4 standard methods the same error occurs.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 670
Re: Problem R_X86_64_PC32
« Reply #28 on: March 24, 2015, 08:03:09 pm »
Could you try with an older or a newer version of binutils?