PB 6.20 Linker error in x86 compile

Windows specific forum
ozzie
Enthusiast
Enthusiast
Posts: 443
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

PB 6.20 Linker error in x86 compile

Post by ozzie »

In compiling the x86 version of my program I'm getting "Linker error. Section larger than 4GiB: .data".

X64 versions compile perfectly. Is this a bug in PB or something too large in my program?
miso
Enthusiast
Enthusiast
Posts: 462
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: PB 6.20 Linker error in x86 compile

Post by miso »

32 bit Windows/FAT32 limitation. Max file and RAM size 2^32 ~ 4GB.
ozzie
Enthusiast
Enthusiast
Posts: 443
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

Re: PB 6.20 Linker error in x86 compile

Post by ozzie »

Went back to PB 6.12 - same error. Went back to 6.04 (which we had used for our previous release) - compiles OK.

So for now we will use PB 6.20 for x64 and PB 6.04 for x86.
Fred
Administrator
Administrator
Posts: 18175
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.20 Linker error in x86 compile

Post by Fred »

How do you end up with more than 4GB of data section in x86 ?
ozzie
Enthusiast
Enthusiast
Posts: 443
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

Re: PB 6.20 Linker error in x86 compile

Post by ozzie »

No idea! And don't know how to check. The compiled executable (compiled with 6.04) is about 14Mb.
Fred
Administrator
Administrator
Posts: 18175
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.20 Linker error in x86 compile

Post by Fred »

Now that's wierd ! Some guys have the same issue on another language: https://community.intel.com/t5/Intel-Fo ... -p/1566027 may be it's an lld-link issue. Would be interesting to see what is the root cause of this though. Could you try to remove some code until it compiles to see if a specific line cause this ?
ozzie
Enthusiast
Enthusiast
Posts: 443
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

Re: PB 6.20 Linker error in x86 compile

Post by ozzie »

I'll spend a bit of time on that later this week.
Post Reply