Bug 110882 - zOS: manual build of the piAgent/RAC fails - initial c89 compile exits with code 137
Summary: zOS: manual build of the piAgent/RAC fails - initial c89 compile exits with c...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: Other other
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Bob Duncan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 110369
  Show dependency tree
 
Reported: 2005-09-27 19:02 EDT by Bob Duncan CLA
Modified: 2016-05-05 10:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Duncan CLA 2005-09-27 19:02:38 EDT
The zOS manual build of the piAgent and RAC fails on the initial c89 compile 
(although the master build is still working). The initial compile ends with no 
output and just the make message: "make[1]: *** [framework/RACommon/RAComm.o] 
Killed". When running c89 directly (ie: same environment but outside of make), 
the compile exits with a return code of 137 (ENOTTY if that's an errno). 

This hit a couple of developers in the past two weeks but just hit the build 
team this afternoon (it had been working for them this morning). It can be 
reproduced in a CVS snapshot that had previously built successfully suggesting 
that the problem is environmental. The owner of the underlying build 
environment (upon which the TPTP zOS build depends) is looking into it now. 

The actual failing compile in the make is as follows:

Compile framework/RACommon/RAComm.c

c89 -W c,SO,SSCOMM,NOSEARCH,CSECT -W c,NOLOCALE,LANGLVL\(EXTENDED\) -W 
c,RENT,LONGNAME -W c,DLL,EXPORTALL -W c,TARGET\(OSV2R10\),XPL INK -O   -
D_OPEN_SYS -DENW -D_XOPEN_SOURCE_EXTENDED=1 -DSQLUNIX=1 -DMVS=1 -
D_OPEN_THREADS -D_ALL_SOURCE -I./framework/HCLauncher -
I. /framework/RABindings -I./framework/RACommon -I./framework/RADataTransfer -
I./framework/RAServer -I./framework/RAServerConfig -I./fr 
amework/RAServerTypes -I./framework/RASharedMemory -I./framework/RASocket -
I./../cbe/cImpl -I../../depends/java/include -I../../depe 
nds/java/include/os390 -I../../depends/xercesc/include -c 
framework/RACommon/RAComm.c  -o framework/RACommon/RAComm.o

make[1]: *** [framework/RACommon/RAComm.o] Killed

make: *** [all] Error 2
Comment 1 Bob Duncan CLA 2005-09-28 18:17:09 EDT
The cause of and fix for the problem has been identified.

Because of system changes made to /sys.profile on our zOS build machine a 
couple of weeks ago,  it's now necessary to explicitly specify the name of the 
compiler driver in the TPTP build setup script.   Specifically, the  
bin/configure-environment.sf script needs to be changed to add the following to 
the "# Compiler" section:

export _C89_CNAME="CBCDRVR"
export  _CC_CNAME="CBCDRVR"
export _CXX_CNAME="CBCDRVR"

The rationale for the change is as follows:

The system changes to /sys.profile a couple of weeks ago had explicitly 
specified the compiler driver name to be CCNDRVR (suitable for the zOS 1.6 
compiler) but this was incompatbile with the earlier OS390 V2R10 compiler which 
has a compiler driver named CBCDRVR and which fails if run under CCNDRVR. 
Therefore, the TPTP setup script (which explicitly steplibs to the V2R10 
compiler for historical/compatability reasons) must be changed to explicitly 
define/override the compiler driver name back to CBCDRVR.
Comment 2 Bob Duncan CLA 2005-10-03 18:22:10 EDT
The fix was made to configure-environment.sf 09/29/2005 11:25am (under module 
org.eclipse.hyades.releng.builder).
Comment 3 Bob Duncan CLA 2005-10-03 18:29:29 EDT
Verified using TPTP-4.1.0-200510031701 build.