"Segment too large" in large Photon project

Hi:
I have a fairly large Photon project that has been running for some time
under 4.25 and Photon 1.13. It has a large number of modules and widgets.
However, when I attempted to add another, relatively small, module with
about 50 named widgets, the compilation (with Watcom 10.6 - wcc386) of
abmain.c with debugging turned on gave me a “E1118 - FATAL - Segment
too large” error. Removing the names from the widgets and/or removing the
debugging flags caused the error to go away. The map file produced when it
does not fail does not give any indication of any segment reaching any
obvious limits. Presumably I’m reaching some type of limit in the compiler,
but I can’t seen any flag that’ll enable me to bypass this problem.

Any ideas ?

Thanks
Lionel

Lionel Johnson ljohnson**nospam**@sterling1.com wrote:

Hi:
I have a fairly large Photon project that has been running for some time
under 4.25 and Photon 1.13. It has a large number of modules and widgets.
However, when I attempted to add another, relatively small, module with
about 50 named widgets, the compilation (with Watcom 10.6 - wcc386) of
abmain.c with debugging turned on gave me a “E1118 - FATAL - Segment
too large” error. Removing the names from the widgets and/or removing the
debugging flags caused the error to go away. The map file produced when it
does not fail does not give any indication of any segment reaching any
obvious limits. Presumably I’m reaching some type of limit in the compiler,
but I can’t seen any flag that’ll enable me to bypass this problem.

Any ideas ?

:slight_smile: I just answered this in a previous thread. Check it for more details,
but basically it is a debug information problems.

Try: – subdividing the source file
– compiling the module -g1 instead of -g2
– recompiling the whole project -g2d rather than -g2

-David

QNX Training Services
dagibbs@qnx.com

David:

That fixed it

Thanks
Lionel

Lionel J Johnson
Sterling Computer Systems Inc.
19270 North Hills Drive
Brookfield, Wisconsin 53045
USA.
Telephone: +1 (262) 796-0063
Fax: +1 (262) 796-1225
email: ljohnson@sterling1.com

“David Gibbs” <dagibbs@qnx.com> wrote in message
news:942673$ell$2@nntp.qnx.com

Lionel Johnson ljohnson**nospam**@sterling1.com wrote:
Hi:
I have a fairly large Photon project that has been running for some
time
under 4.25 and Photon 1.13. It has a large number of modules and
widgets.
However, when I attempted to add another, relatively small, module with
about 50 named widgets, the compilation (with Watcom 10.6 - wcc386) of
abmain.c with debugging turned on gave me a “E1118 - FATAL -
Segment
too large” error. Removing the names from the widgets and/or removing
the
debugging flags caused the error to go away. The map file produced when
it
does not fail does not give any indication of any segment reaching any
obvious limits. Presumably I’m reaching some type of limit in the
compiler,
but I can’t seen any flag that’ll enable me to bypass this problem.

Any ideas ?

:slight_smile: > I just answered this in a previous thread. Check it for more
details,
but basically it is a debug information problems.

Try: – subdividing the source file
– compiling the module -g1 instead of -g2
– recompiling the whole project -g2d rather than -g2

-David

QNX Training Services
dagibbs@qnx.com