Re: is there a 2GB limit on amd64 link?

2020-02-06 Thread j
Yes, that (-mcmodel=medium) is the solution. Thanks! John On 2020-02-05 22:03, Philip Guenther wrote: On Wed, Feb 5, 2020 at 7:38 PM wrote: I am encountering a linker error when compiling with ports-gcc Fortran: ld: error: lbug2.f90:(function MAIN__: .text+0x80): relocation R_X86_64_PC32

Re: is there a 2GB limit on amd64 link?

2020-02-05 Thread Philip Guenther
On Wed, Feb 5, 2020 at 7:38 PM wrote: > I am encountering a linker error when compiling with ports-gcc Fortran: > > ld: error: lbug2.f90:(function MAIN__: .text+0x80): relocation > R_X86_64_PC32 out o > f range: 2456507324 is not in [-2147483648, 2147483647] > > The code has several large

is there a 2GB limit on amd64 link?

2020-02-05 Thread j
I am encountering a linker error when compiling with ports-gcc Fortran: ld: error: lbug2.f90:(function MAIN__: .text+0x80): relocation R_X86_64_PC32 out o f range: 2456507324 is not in [-2147483648, 2147483647] The code has several large arrays, the total size of which exceeds 2GB. Is this a