Page 1 of 1

PB 6.20 Linker error in x86 compile

Posted: Mon Mar 03, 2025 12:36 am
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?

Re: PB 6.20 Linker error in x86 compile

Posted: Mon Mar 03, 2025 12:46 am
by miso
32 bit Windows/FAT32 limitation. Max file and RAM size 2^32 ~ 4GB.

Re: PB 6.20 Linker error in x86 compile

Posted: Mon Mar 03, 2025 6:04 am
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.

Re: PB 6.20 Linker error in x86 compile

Posted: Mon Mar 03, 2025 8:37 am
by Fred
How do you end up with more than 4GB of data section in x86 ?

Re: PB 6.20 Linker error in x86 compile

Posted: Mon Mar 03, 2025 9:03 am
by ozzie
No idea! And don't know how to check. The compiled executable (compiled with 6.04) is about 14Mb.

Re: PB 6.20 Linker error in x86 compile

Posted: Mon Mar 03, 2025 9:10 am
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 ?

Re: PB 6.20 Linker error in x86 compile

Posted: Mon Mar 03, 2025 9:25 am
by ozzie
I'll spend a bit of time on that later this week.