Operating System - HP-UX
1752795 Members
6126 Online
108789 Solutions
New Discussion юеВ

Re: Microfocus Generate Compile Error: ncgx

 
SOLVED
Go to solution
Scott Williams_5
Frequent Advisor

Microfocus Generate Compile Error: ncgx

Anyone ever seen MicroFocus puke while trying to generate from int to executable? Compiling to .int works OK. .gnt fails. Couldn't find any info on this. Here's the last few lines of the compile.

* Generating cross reference
* End of cross reference listing
* Micro Focus Server Express V2.2.00 Code generator
* Copyright (C) 1984-2003 Micro Focus International Ltd. All rights reserved.
* Accepted - verbose
* Accepted - anim
* Generating dvtxp003

Execution error : file 'ncgx'
error code: 114, pc=0, call=1, seg=0
114 Attempt to access item beyond bounds of memory (Signal 11)

Thanks
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Microfocus Generate Compile Error: ncgx

I think we fixed this with either an upgrade or a patch from Microfocus. We got ours from Microfocus and not HP so the experience might not be the same.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
susan gregory_1
Valued Contributor
Solution

Re: Microfocus Generate Compile Error: ncgx

There is a known problem with COBOL freeing up the same memory twice that seems to return this error. The workaround is to turn off the small block allocator.

export _M_SBA_OPTS=0:0:0

or stripping the executable:

cob +Z -s -cx source.cbl

It also seems to be related to an aC++ runtime library patch and uninstalling the patch may be a possible option.

Hope that helps.
Scott Williams_5
Frequent Advisor

Re: Microfocus Generate Compile Error: ncgx

Thanks for the input. I have opened call on this and have tried the export, but it didn't help. Interestingly, if we compile without the -g option, or if we strip the symbols with the -s option, it doen't die with this error any more.

Thanks again. I'll update when I get a final resolution.

Cheers,

Scott
Willaert Vincent
New Member

Re: Microfocus Generate Compile Error: ncgx

Hi, i had the same problem and finally found a syntax error. A PERFORM statement and a nested EVALUATE gave me the compilation error
PERFORM VARYING x FROM x BY 1
UNTIL
EVALUATE TRUE
WHEN ....
EXIT PERFORM
WHEN
....
END-EVALUATE
END-PERFORM.

This syntax gave me the ncgx error. Maybe this will help you out.

Malcolm Leckie_1
Occasional Advisor

Re: Microfocus Generate Compile Error: ncgx

Did you ever get an official solution to this problem?

I've a program that is having the same issue and I've tried compiling without the -g and with a -s and still not got it to compile.


Thanks
Malcolm
hugovd
New Member

Re: Microfocus Generate Compile Error: ncgx

Following coding caused this error in my case:

 

       01 WS-WEEK-DAYS                     VALUE "MOTUWETHFRSASU".

          03 WS-WEEK-DAY                   PIC XX OCCURS 7.

 

IF WS-WEEK-DAY(WC-DAY-OF-WEEK) = '--' OR INITIZIALIZED

.

 

Compiling to .int was not a problem, compiling to .gnt resulted in this ncgx error.

 

Solved after leaving out the OR INITIALIZED.

 

 

Hope it helps.