4.10 - POLINK: fatal error: Internal error: write_executable

Just starting out? Need help? Post your questions and find answers here.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

4.10 - POLINK: fatal error: Internal error: write_executable

Post by Mistrel »

I've written an installer than includes a large data file (~65MB) in a DataSection. When I try to compile I get this error:

I can include a smaller 45MB file with no problems.
---------------------------
PureBasic - Linker error
---------------------------
POLINK: fatal error: Internal error: write_executable_image.


---------------------------
OK
---------------------------
Last edited by Mistrel on Sat Apr 12, 2008 2:03 am, edited 1 time in total.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Exes can't be bigger than 64 MB! Polink limitation...

There's no bug here.
Last edited by Inf0Byt3 on Sat Apr 12, 2008 2:45 am, edited 1 time in total.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Can you be more specific? I've seen plenty of exes larger than 64mb.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Mistrel wrote:Can you be more specific? I've seen plenty of exes larger than 64mb.
Exes without Resource-Section greater than 64 MB?
Use Resources for your Installer, so you have no problem with 700 MB or larger :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Of course exes can get big, but the data was not compiled inside for them. It was appended. Of course, even my installer can create 2GB sfx's but the data is appended, not compiled in the resource section.
Last edited by Inf0Byt3 on Sat Apr 12, 2008 2:45 am, edited 1 time in total.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

here is a 114 MB exe compiled with PB:
www.realsource.de/tmp/12.rar
is packed, so the download is only some kb :wink:
only manifest-resource and no append datas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Then I might be wrong... I read something about this for sure but i can't remember where. I could swear it was something.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

No good idea so big data is to be packed into a DataSection, the data must be loaded 2x
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

I knew something...

The creator of pelles C said:
The limit in this case, I think, is an artificial limit in the linker - the EXE file can't be larger than 64MB (I my opinion not that much of a limitation...)
Source:
http://www.purebasic.fr/english/viewtopic.php?t=24806

So it is just a Polink limit, not Windows'... Corrected my post...
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Post Reply