Issue with install C++ compiler v8.5; xfm compile error

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jweir
Participant
Posts: 134
Joined: Wed Aug 04, 2010 12:31 pm

Issue with install C++ compiler v8.5; xfm compile error

Post by jweir »

Hi all,

I am having an annoying issue with installing my C++ compiler after I installed version 8.5. Any job with a transformer in it will not compile, but jobs without one will compile. At first, I realized I did not have a compiler installed, so i believe I installed one, but it is still not compiling, with same error. I mounted the Linux CD to my VM and I ran the 'yum install gcc' which seemed to produce some results. However, my question is if I need to install some rpm's (not exactly sure what those are) in order for my compiler to work? Or am I doing something else wrong? I have searched the forum but I couldnt find something that solves my problem exactly. Below is my compiler error message that I am getting. Also below that are my compiler options in my environment variables. Any help will be greatly apprecaited. Thanks.

Code: Select all

Output from transformer compilation follows:

##I IIS-DSEE-TFCN-00001 10:15:51(000) <main_program> 
IBM WebSphere DataStage Enterprise Edition 8.5.0.5746 
Copyright (c) 2001, 2005-2008 IBM Corporation. All rights reserved
 


##I IIS-DSEE-TFCN-00006 10:15:51(001) <main_program> conductor uname: -s=Linux; -r=2.6.18-194.el5; -v=#1 SMP Tue Mar 16 21:52:39 EDT 2010; -n=ohvslbi1001; -m=x86_64
##I IIS-DSEE-TOSH-00002 10:15:51(002) <main_program> orchgeneral: loaded
##I IIS-DSEE-TOSH-00002 10:15:51(003) <main_program> orchsort: loaded
##I IIS-DSEE-TOSH-00002 10:15:51(004) <main_program> orchstats: loaded
##W IIS-DSEE-TOSH-00049 10:15:51(007) <main_program> Parameter specified but not used in flow: DSPXWorkingDir
##E IIS-DSEE-TBLD-00076 10:15:51(009) <main_program> Error when checking composite operator: Subprocess command failed with exit status 32,512.
##E IIS-DSEE-TFSR-00019 10:15:51(010) <main_program> Could not check all operators because of previous error(s)
##W IIS-DSEE-TFTM-00012 10:15:51(011) <transform> Error when checking composite operator: The number of reject datasets "0" is less than the number of input datasets "1".
##W IIS-DSEE-TBLD-00000 10:15:51(012) <main_program> Error when checking composite operator: Output from subprocess: sh: g++: command not found

##I IIS-DSEE-TBLD-00079 10:15:51(013) <transform> Error when checking composite operator: g++ -fPIC -O   -I/opt/IBM/InformationServer/Server/PXEngine/include -c -O -fPIC -Wno-deprecated -m64 -mtune=generic -mcmodel=small /opt/IBM/InformationServer/Server/Projects/ICC_Training/RT_BP307.O/V0S19_test185_Transformer_19.C -o /opt/IBM/InformationServer/Server/Projects/ICC_Training/RT_BP307.O/V0S19_test185_Transformer_19.tmp.o.
##E IIS-DSEE-TCOS-00029 10:15:51(014) <main_program> Creation of a step finished with status = FAILED. (test185.Transformer_19)

*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V0S19_test185_Transformer_19 transform operator.
0003: //
0004: 
0005: // define our input/output link names
0006: inputname 0 DSLink3;
0007: outputname 0 DSLink10;
0008: 
0009: initialize {
0010: 	// define our control variables
0011: 	int8 RowRejected0;
0012: 	int8 NullSetVar0;
0013: 
0014: }
0015: 
0016: mainloop {
0017: 
0018: 	// initialise the rejected row variable
0019: 	RowRejected0 = 1;
0020: 
0021: 	// evaluate columns (no constraints) for link: DSLink10
0022: 	writerecord 0;
0023: 	RowRejected0 = 0;
0024: }
0025: 
0026: finish {
0027: }
0028: 
*** End of Internal Generated Transformer Code
Compiler Options:

Code: Select all

APT_COMPILEOPT = -c -O -fPIC -Wno-deprecated -m64 -mtune=generic -mcmodel=small
APT_COMPILER = g++
APT_LINKER = g++
APT_LINKOPT = -shared -m64
Jweir

--- If strength were all, tiger would not fear scorpion.
Brett
Participant
Posts: 12
Joined: Tue Sep 08, 2009 4:57 pm
Location: Sydney

Post by Brett »

As I understand it for Datastage, it is only jobs that have a Transformer that require the C++ compiler and that it needs to be installed before you install the datastage software so it can detect and set up the correct options to use your compiler. For windows the compiler option should not be G++. Not sure if you can change the settings manually or may be easier to re-install to pick up the correct compiler options.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

options are generally correct as it depends on the operating system, however try giving the complete path of the compiler. Also add that path in PATH Environment variable.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
jweir
Participant
Posts: 134
Joined: Wed Aug 04, 2010 12:31 pm

Post by jweir »

Issue resolved. I have only installed the C compiler, but also needed to install the C++ compiler, which I did by running the "yum install gcc-c++" command.

@Brett - I am using Unix, not Windows. And you can install compiler after you install DataStage, because it is working for me now.
Jweir

--- If strength were all, tiger would not fear scorpion.
Post Reply