Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Sometimes Compile Failure Using Berlin



Permlink Replies: 3 - Last Post: May 1, 2016 11:58 AM Last Post By: Remy Lebeau (Te...
Robert Penoyer

Posts: 24
Registered: 4/20/02
Sometimes Compile Failure Using Berlin
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 29, 2016 4:06 PM
I copied the files of an existing project into a new folder and
compiled with Berlin.

Sometimes the compile works. Sometimes I get a link error.

For example, I can use <Shift>F9 and get a good compile, then do it
again and get a link error:
[ilink32 Warning] Warning: unknown heap name : 0x08000000 /
0x08000000
[ilink32 Warning] Warning: Error detected (LME288)
[ilink32 Error] Error: Unable to perform link
Failed

Sometimes I can repeat the compile successfully and sometimes I can't.
The Win64 compiler seems to work with no problem.

Is this a known problem? Is there a fix?
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Sometimes Compile Failure Using Berlin
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 29, 2016 5:02 PM   in response to: Robert Penoyer in response to: Robert Penoyer
Robert wrote:

For example, I can use <Shift>F9 and get a good compile, then
do it again and get a link error:

[ilink32 Warning] Warning: unknown heap name : 0x08000000 / 0x08000000
[ilink32 Warning] Warning: Error detected (LME288)
[ilink32 Error] Error: Unable to perform link
Failed

This is a known problem, frequently asked about, several bug reports filed,
and discussed many times.

The short answer is that the linker uses a large contiguous memory blocks,
and sometimes those blocks fail to allocate. A proper solution requires
a major rewrite of the linker, which Embarcadero has been unwilling to do.
So instead they gave us a hack solution instead. A few versions back,
a new "-GH" option was added to the linker to allow customizing the heap
sizes (see http://stackoverflow.com/a/34670575/65863 for details). This
new switch is not documented for the 32bit linker, but is mentioned in the
documentation for the 64bit linker:

http://docwiki.embarcadero.com/RADStudio/Seattle/en/ILINK64.EXE,_the_64-bit_Incremental_Linker

--
Remy Lebeau (TeamB)
Robert Penoyer

Posts: 24
Registered: 4/20/02
Re: Sometimes Compile Failure Using Berlin
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 30, 2016 10:54 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
On Fri, 29 Apr 2016 17:02:22 -0700, Remy Lebeau (TeamB)
<no dot spam at no dot spam dot com> wrote:

Robert wrote:

For example, I can use <Shift>F9 and get a good compile, then
do it again and get a link error:

[ilink32 Warning] Warning: unknown heap name : 0x08000000 / 0x08000000
[ilink32 Warning] Warning: Error detected (LME288)
[ilink32 Error] Error: Unable to perform link
Failed

This is a known problem, frequently asked about, several bug reports filed,
and discussed many times.

The short answer is that the linker uses a large contiguous memory blocks,
and sometimes those blocks fail to allocate. A proper solution requires
a major rewrite of the linker, which Embarcadero has been unwilling to do.
So instead they gave us a hack solution instead. A few versions back,
a new "-GH" option was added to the linker to allow customizing the heap
sizes (see http://stackoverflow.com/a/34670575/65863 for details). This
new switch is not documented for the 32bit linker, but is mentioned in the
documentation for the 64bit linker:

http://docwiki.embarcadero.com/RADStudio/Seattle/en/ILINK64.EXE,_the_64-bit_Incremental_Linker

Thanks. How can the -GH option be invoked from the IDE?
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Sometimes Compile Failure Using Berlin
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 1, 2016 11:58 AM   in response to: Robert Penoyer in response to: Robert Penoyer
Robert wrote:

Thanks. How can the -GH option be invoked from the IDE?

In the Project Options, there is an "Additional options" field for the C++
linker.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02